diff options
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/ash.tests | 1 | ||||
-rwxr-xr-x | testsuite/cal.tests | 1 | ||||
-rwxr-xr-x | testsuite/cpio.tests | 2 | ||||
-rw-r--r-- | testsuite/date/date-works-1 | 2 | ||||
-rwxr-xr-x | testsuite/expand.tests | 7 | ||||
-rwxr-xr-x | testsuite/fold.tests | 7 | ||||
-rwxr-xr-x | testsuite/ls.tests | 8 | ||||
-rwxr-xr-x | testsuite/mount.tests | 1 | ||||
-rwxr-xr-x | testsuite/unexpand.tests | 6 |
9 files changed, 19 insertions, 16 deletions
diff --git a/testsuite/ash.tests b/testsuite/ash.tests index dd626e6d1..2eeb746e4 100755 --- a/testsuite/ash.tests +++ b/testsuite/ash.tests | |||
@@ -6,7 +6,6 @@ | |||
6 | # Licensed under GPL v2, see file LICENSE for details. | 6 | # Licensed under GPL v2, see file LICENSE for details. |
7 | 7 | ||
8 | . ./testing.sh | 8 | . ./testing.sh |
9 | |||
10 | test -f "$bindir/.config" && . "$bindir/.config" | 9 | test -f "$bindir/.config" && . "$bindir/.config" |
11 | 10 | ||
12 | test x"CONFIG_SCRIPT" = x"y" || exit 0 | 11 | test x"CONFIG_SCRIPT" = x"y" || exit 0 |
diff --git a/testsuite/cal.tests b/testsuite/cal.tests index 30985688b..db693ee59 100755 --- a/testsuite/cal.tests +++ b/testsuite/cal.tests | |||
@@ -3,7 +3,6 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | |||
7 | test -f "$bindir/.config" && . "$bindir/.config" | 6 | test -f "$bindir/.config" && . "$bindir/.config" |
8 | 7 | ||
9 | # testing "test name" "command" "expected result" "file input" "stdin" | 8 | # testing "test name" "command" "expected result" "file input" "stdin" |
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 5b397b01c..7aee774a1 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -99,7 +99,7 @@ SKIP= | |||
99 | 99 | ||
100 | # chown on a link was affecting file, dropping its suid/sgid bits | 100 | # chown on a link was affecting file, dropping its suid/sgid bits |
101 | rm -rf cpio.testdir | 101 | rm -rf cpio.testdir |
102 | optional FEATURE_CPIO_O | 102 | optional FEATURE_CPIO_O FEATURE_STAT_FORMAT |
103 | mkdir cpio.testdir | 103 | mkdir cpio.testdir |
104 | touch cpio.testdir/file | 104 | touch cpio.testdir/file |
105 | chmod 6755 cpio.testdir/file # sets suid/sgid bits | 105 | chmod 6755 cpio.testdir/file # sets suid/sgid bits |
diff --git a/testsuite/date/date-works-1 b/testsuite/date/date-works-1 index 1b3e47ab0..e745d3841 100644 --- a/testsuite/date/date-works-1 +++ b/testsuite/date/date-works-1 | |||
@@ -1,3 +1,5 @@ | |||
1 | unset LANG | ||
2 | |||
1 | dt=`busybox date -d 1:2 +%T` | 3 | dt=`busybox date -d 1:2 +%T` |
2 | test x"$dt" = x"01:02:00" | 4 | test x"$dt" = x"01:02:00" |
3 | 5 | ||
diff --git a/testsuite/expand.tests b/testsuite/expand.tests index 357a9ad6b..2d92344d4 100755 --- a/testsuite/expand.tests +++ b/testsuite/expand.tests | |||
@@ -3,6 +3,7 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | test -f "$bindir/.config" && . "$bindir/.config" | ||
6 | 7 | ||
7 | # testing "test name" "options" "expected result" "file input" "stdin" | 8 | # testing "test name" "options" "expected result" "file input" "stdin" |
8 | 9 | ||
@@ -12,13 +13,13 @@ testing "expand" \ | |||
12 | "" \ | 13 | "" \ |
13 | "\t12345678\t12345678\n" | 14 | "\t12345678\t12345678\n" |
14 | 15 | ||
15 | optional UNICODE_SUPPORT | 16 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
17 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ | ||
18 | && test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \ | ||
16 | testing "expand with unicode characher 0x394" \ | 19 | testing "expand with unicode characher 0x394" \ |
17 | "expand" \ | 20 | "expand" \ |
18 | "Δ 12345ΔΔΔ 12345678\n" \ | 21 | "Δ 12345ΔΔΔ 12345678\n" \ |
19 | "" \ | 22 | "" \ |
20 | "Δ\t12345ΔΔΔ\t12345678\n" | 23 | "Δ\t12345ΔΔΔ\t12345678\n" |
21 | SKIP= | ||
22 | |||
23 | 24 | ||
24 | exit $FAILCOUNT | 25 | exit $FAILCOUNT |
diff --git a/testsuite/fold.tests b/testsuite/fold.tests index 0197d024d..e5700cc2b 100755 --- a/testsuite/fold.tests +++ b/testsuite/fold.tests | |||
@@ -3,6 +3,7 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | test -f "$bindir/.config" && . "$bindir/.config" | ||
6 | 7 | ||
7 | # testing "test name" "options" "expected result" "file input" "stdin" | 8 | # testing "test name" "options" "expected result" "file input" "stdin" |
8 | 9 | ||
@@ -28,9 +29,10 @@ be preserved | |||
28 | is here:>\0< - they must be preserved | 29 | is here:>\0< - they must be preserved |
29 | " \ | 30 | " \ |
30 | 31 | ||
31 | optional UNICODE_SUPPORT | ||
32 | # The text was taken from English and Ukrainian wikipedia pages | 32 | # The text was taken from English and Ukrainian wikipedia pages |
33 | testing "fold -sw66 with unicode input" "fold -sw66" \ | 33 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
34 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ | ||
35 | && testing "fold -sw66 with unicode input" "fold -sw66" \ | ||
34 | "\ | 36 | "\ |
35 | The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\ | 37 | The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\ |
36 | Messier 31, M31, or NGC224; often referred to as the Great \n\ | 38 | Messier 31, M31, or NGC224; often referred to as the Great \n\ |
@@ -56,6 +58,5 @@ Way. | |||
56 | спіральна галактика, що знаходиться на відстані приблизно у 2,5 \ | 58 | спіральна галактика, що знаходиться на відстані приблизно у 2,5 \ |
57 | мільйони світлових років від нашої планети у сузір'ї Андромеди. \ | 59 | мільйони світлових років від нашої планети у сузір'ї Андромеди. \ |
58 | На початку ХХІ ст. в центрі галактики виявлено чорну дірку." | 60 | На початку ХХІ ст. в центрі галактики виявлено чорну дірку." |
59 | SKIP= | ||
60 | 61 | ||
61 | exit $FAILCOUNT | 62 | exit $FAILCOUNT |
diff --git a/testsuite/ls.tests b/testsuite/ls.tests index 0680762fc..dc842123d 100755 --- a/testsuite/ls.tests +++ b/testsuite/ls.tests | |||
@@ -3,10 +3,9 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | |||
7 | test -f "$bindir/.config" && . "$bindir/.config" | 6 | test -f "$bindir/.config" && . "$bindir/.config" |
8 | 7 | ||
9 | rm -rf ls.testdir >/dev/null | 8 | rm -rf ls.testdir 2>/dev/null |
10 | mkdir ls.testdir || exit 1 | 9 | mkdir ls.testdir || exit 1 |
11 | 10 | ||
12 | # testing "test name" "command" "expected result" "file input" "stdin" | 11 | # testing "test name" "command" "expected result" "file input" "stdin" |
@@ -15,9 +14,10 @@ mkdir ls.testdir || exit 1 | |||
15 | # I suspect we might fail to skip exactly correct number of bytes | 14 | # I suspect we might fail to skip exactly correct number of bytes |
16 | # over broked unicode sequences. | 15 | # over broked unicode sequences. |
17 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ | 16 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
18 | && test x"$CONFIG_LOCALE_SUPPORT" != x"y" \ | 17 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ |
19 | && test x"$CONFIG_SUBST_WCHAR" = x"63" \ | 18 | && test x"$CONFIG_SUBST_WCHAR" = x"63" \ |
20 | && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"767" \ | 19 | && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"767" \ |
20 | && test x"$CONFIG_FEATURE_LS_SORTFILES" = x"y" \ | ||
21 | && testing "ls unicode test with codepoints limited to 767" \ | 21 | && testing "ls unicode test with codepoints limited to 767" \ |
22 | "(cd ls.testdir && sh ../ls.mk_uni_tests) && ls -1 ls.testdir" \ | 22 | "(cd ls.testdir && sh ../ls.mk_uni_tests) && ls -1 ls.testdir" \ |
23 | '0001_1__Some_correct_UTF-8_text___________________________________________| | 23 | '0001_1__Some_correct_UTF-8_text___________________________________________| |
@@ -134,7 +134,7 @@ test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ | |||
134 | 134 | ||
135 | # Currently fails on "0080_4.2.2__U-000007FF_=_e0_9f_bf" line | 135 | # Currently fails on "0080_4.2.2__U-000007FF_=_e0_9f_bf" line |
136 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ | 136 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
137 | && test x"$CONFIG_LOCALE_SUPPORT" != x"y" \ | 137 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ |
138 | && test x"$CONFIG_SUBST_WCHAR" = x"63" \ | 138 | && test x"$CONFIG_SUBST_WCHAR" = x"63" \ |
139 | && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"0" \ | 139 | && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"0" \ |
140 | && testing "ls unicode test with unlimited codepoints" \ | 140 | && testing "ls unicode test with unlimited codepoints" \ |
diff --git a/testsuite/mount.tests b/testsuite/mount.tests index 3c7405fbd..ce1a6006b 100755 --- a/testsuite/mount.tests +++ b/testsuite/mount.tests | |||
@@ -3,7 +3,6 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | |||
7 | test -f "$bindir/.config" && . "$bindir/.config" | 6 | test -f "$bindir/.config" && . "$bindir/.config" |
8 | 7 | ||
9 | test "`id -u`" = 0 || { | 8 | test "`id -u`" = 0 || { |
diff --git a/testsuite/unexpand.tests b/testsuite/unexpand.tests index a48e3214e..0727884f7 100755 --- a/testsuite/unexpand.tests +++ b/testsuite/unexpand.tests | |||
@@ -3,6 +3,7 @@ | |||
3 | # Licensed under GPL v2, see file LICENSE for details. | 3 | # Licensed under GPL v2, see file LICENSE for details. |
4 | 4 | ||
5 | . ./testing.sh | 5 | . ./testing.sh |
6 | test -f "$bindir/.config" && . "$bindir/.config" | ||
6 | 7 | ||
7 | # testing "test name" "options" "expected result" "file input" "stdin" | 8 | # testing "test name" "options" "expected result" "file input" "stdin" |
8 | 9 | ||
@@ -30,9 +31,10 @@ testing "unexpand case 7" "unexpand" \ | |||
30 | testing "unexpand case 8" "unexpand" \ | 31 | testing "unexpand case 8" "unexpand" \ |
31 | "a b\n" "" "a b\n" \ | 32 | "a b\n" "" "a b\n" \ |
32 | 33 | ||
33 | optional UNICODE_SUPPORT | 34 | test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ |
35 | && test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ | ||
36 | && test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \ | ||
34 | testing "unexpand with unicode characher 0x394" "unexpand" \ | 37 | testing "unexpand with unicode characher 0x394" "unexpand" \ |
35 | "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" | 38 | "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" |
36 | SKIP= | ||
37 | 39 | ||
38 | exit $FAILCOUNT | 40 | exit $FAILCOUNT |