aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-08-19 09:32:30 +0100
committerRon Yorston <rmy@pobox.com>2023-08-19 09:32:30 +0100
commit77aa74d151643ff2ec96156942e004fba19464a5 (patch)
treed1b3d644bf9166d2f33b0d6c48d6f5e743b10ee6
parent5c1a3b00e235da31b2c73bae18aa5622d820b68a (diff)
downloadbusybox-w32-77aa74d151643ff2ec96156942e004fba19464a5.tar.gz
busybox-w32-77aa74d151643ff2ec96156942e004fba19464a5.tar.bz2
busybox-w32-77aa74d151643ff2ec96156942e004fba19464a5.zip
testsuite: skip some tests in native build
The testsuite includes some Windows-specific tests. Exclude these when running a test on a native build to avoid upsetting the results.
-rwxr-xr-xtestsuite/env.tests4
-rwxr-xr-xtestsuite/sh.tests2
2 files changed, 6 insertions, 0 deletions
diff --git a/testsuite/env.tests b/testsuite/env.tests
index 456808728..8b810e44b 100755
--- a/testsuite/env.tests
+++ b/testsuite/env.tests
@@ -6,6 +6,7 @@
6 6
7# testing "test name" "commands" "expected result" "file input" "stdin" 7# testing "test name" "commands" "expected result" "file input" "stdin"
8 8
9optional PLATFORM_MINGW32
9# Not so much a test of 'env' as of whether environment variables 10# Not so much a test of 'env' as of whether environment variables
10# (or the lack thereof) are correctly passed to child processes. 11# (or the lack thereof) are correctly passed to child processes.
11testing "environment variables 1a" \ 12testing "environment variables 1a" \
@@ -65,3 +66,6 @@ testing "environment variables 4c" \
65 "sh -c 'echo \${V-unset}'" \ 66 "sh -c 'echo \${V-unset}'" \
66 "unset 67 "unset
67" "" "" 68" "" ""
69SKIP=
70
71exit $FAILCOUNT
diff --git a/testsuite/sh.tests b/testsuite/sh.tests
index 749d2dde2..0eccf20bc 100755
--- a/testsuite/sh.tests
+++ b/testsuite/sh.tests
@@ -11,6 +11,7 @@ test -f "$bindir/.config" && . "$bindir/.config"
11 11
12# testing "test name" "options" "expected result" "file input" "stdin" 12# testing "test name" "options" "expected result" "file input" "stdin"
13 13
14optional PLATFORM_MINGW32
14# Test case 15# Test case
15testing "shebang" \ 16testing "shebang" \
16 "uudecode; sh -c './shebang.sh'; echo \$?" \ 17 "uudecode; sh -c './shebang.sh'; echo \$?" \
@@ -112,5 +113,6 @@ testing "sh read with \\CRLF" \
112testing "sh read with \\CR" \ 113testing "sh read with \\CR" \
113 "printf '1\\\\\r2\\r\\n' | { read var; printf \"\${var}\\\\n\"; }" \ 114 "printf '1\\\\\r2\\r\\n' | { read var; printf \"\${var}\\\\n\"; }" \
114 "1\r2\n" "" "" 115 "1\r2\n" "" ""
116SKIP=
115 117
116exit $FAILCOUNT 118exit $FAILCOUNT