diff options
author | Ron Yorston <rmy@pobox.com> | 2023-08-19 09:32:30 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2023-08-19 09:32:30 +0100 |
commit | 77aa74d151643ff2ec96156942e004fba19464a5 (patch) | |
tree | d1b3d644bf9166d2f33b0d6c48d6f5e743b10ee6 | |
parent | 5c1a3b00e235da31b2c73bae18aa5622d820b68a (diff) | |
download | busybox-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-x | testsuite/env.tests | 4 | ||||
-rwxr-xr-x | testsuite/sh.tests | 2 |
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 | ||
9 | optional 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. |
11 | testing "environment variables 1a" \ | 12 | testing "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 | " "" "" |
69 | SKIP= | ||
70 | |||
71 | exit $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 | ||
14 | optional PLATFORM_MINGW32 | ||
14 | # Test case | 15 | # Test case |
15 | testing "shebang" \ | 16 | testing "shebang" \ |
16 | "uudecode; sh -c './shebang.sh'; echo \$?" \ | 17 | "uudecode; sh -c './shebang.sh'; echo \$?" \ |
@@ -112,5 +113,6 @@ testing "sh read with \\CRLF" \ | |||
112 | testing "sh read with \\CR" \ | 113 | testing "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" "" "" |
116 | SKIP= | ||
115 | 117 | ||
116 | exit $FAILCOUNT | 118 | exit $FAILCOUNT |