summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyent Automation <releng@joyent.com>2019-11-11 06:45:29 -0800
committerJohn Levon <levon@movementarian.org>2019-11-11 14:45:29 +0000
commit0a695497aef591f5c00620a61dffd4a0e4a5d47c (patch)
tree48a8fd849310bf835391dba7044d11712ae56d08
parent4351df24a18fd73b1e6cc2591e622883e502167c (diff)
downloadillumos-joyent-0a695497aef591f5c00620a61dffd4a0e4a5d47c.tar.gz
OS-8022 enable os-tests in smartos-test
Reviewed by: Tim Foster <tim.foster@joyent.com> Approved by: Tim Foster <tim.foster@joyent.com>
-rw-r--r--manifest2
-rwxr-xr-xusr/src/test/smartos-test/smartos-test.sh4
-rw-r--r--usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.awk2
-rw-r--r--usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.ok2
-rwxr-xr-xusr/src/test/util-tests/tests/awk/tests/T.misc4
5 files changed, 9 insertions, 5 deletions
diff --git a/manifest b/manifest
index 39e3c26ec4..bd07e59fd1 100644
--- a/manifest
+++ b/manifest
@@ -5342,7 +5342,6 @@ f usr/lib/amd64/libsoftcrypto.so.1 0755 root bin
s usr/lib/amd64/libsoftcrypto.so=libsoftcrypto.so.1
f usr/lib/amd64/libsrpt.so.1 0755 root bin
s usr/lib/amd64/libsrpt.so=libsrpt.so.1
-f usr/lib/amd64/libstanddisasm.so 0644 root bin
f usr/lib/amd64/libstmf.so.1 0755 root bin
s usr/lib/amd64/libstmf.so=libstmf.so.1
f usr/lib/amd64/libstmfproxy.so.1 0755 root bin
@@ -6856,7 +6855,6 @@ f usr/lib/libsoftcrypto.so.1 0755 root bin
s usr/lib/libsoftcrypto.so=libsoftcrypto.so.1
f usr/lib/libsrpt.so.1 0755 root bin
s usr/lib/libsrpt.so=libsrpt.so.1
-f usr/lib/libstanddisasm.so 0644 root bin
f usr/lib/libstmf.so.1 0755 root bin
s usr/lib/libstmf.so=libstmf.so.1
f usr/lib/libstmfproxy.so.1 0755 root bin
diff --git a/usr/src/test/smartos-test/smartos-test.sh b/usr/src/test/smartos-test/smartos-test.sh
index 7cc32db76d..d3bc4d1840 100755
--- a/usr/src/test/smartos-test/smartos-test.sh
+++ b/usr/src/test/smartos-test/smartos-test.sh
@@ -264,6 +264,9 @@ function add_test_accounts {
# By using log_test or log_testrunner, we accumulate the exit codes from each
# test run to $RESULT.
#
+# We don't - yet - run net-tests, smbclient-tests, zfs-tests, or the dtrace
+# suite.
+#
function execute_tests {
log "Starting test runs"
@@ -273,6 +276,7 @@ function execute_tests {
log_testrunner libc-tests /opt/libc-tests/runfiles/default.run
log_test vndtest /opt/vndtest/bin/vndtest -a
log_testrunner util-tests /opt/util-tests/runfiles/default.run
+ log_testrunner os-tests /opt/os-tests/runfiles/default.run
if [[ -n "$FAILED_TESTS" ]]; then
echo ""
diff --git a/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.awk b/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.awk
index 25b92c0492..8c84ff6cfe 100644
--- a/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.awk
+++ b/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.awk
@@ -9,7 +9,7 @@ BEGIN {
status = system("exit 42")
print "normal status", status
- status = system("kill -HUP $$")
+ status = system("kill -KILL $$")
print "death by signal status", status
status = system("cd $WORKDIR && kill -ABRT $$")
diff --git a/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.ok b/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.ok
index 737828f5ed..afc0788ce8 100644
--- a/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.ok
+++ b/usr/src/test/util-tests/tests/awk/bugs-fixed/system-status.ok
@@ -1,3 +1,3 @@
normal status 42
-death by signal status 257
+death by signal status 265
death by signal with core dump status 518
diff --git a/usr/src/test/util-tests/tests/awk/tests/T.misc b/usr/src/test/util-tests/tests/awk/tests/T.misc
index 50978e0048..ee603014e2 100755
--- a/usr/src/test/util-tests/tests/awk/tests/T.misc
+++ b/usr/src/test/util-tests/tests/awk/tests/T.misc
@@ -1,5 +1,7 @@
#!/bin/bash
+# Copyright 2019 Joyent, Inc.
+
if [[ -z "$AWK" || -z "$WORKDIR" ]]; then
printf '$AWK and $WORKDIR must be set\n' >&2
exit 1
@@ -483,7 +485,7 @@ awk '{ print NF, $0 }' $TEMP0| tail -1 > $TEMP2
cmp -s $TEMP1 $TEMP2 || fail 'BAD: T.misc END must preserve $0'
-LC_NUMERIC=ru_RU.ISO8859-5 $AWK 'BEGIN {
+LC_ALL= LC_NUMERIC=ru_RU.ISO8859-5 $AWK 'BEGIN {
"echo 1,200" | getline;
if ($1 == 1.2) {
printf "good ";