summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/ash.tests1
-rwxr-xr-xtestsuite/cal.tests1
-rwxr-xr-xtestsuite/cpio.tests2
-rw-r--r--testsuite/date/date-works-12
-rwxr-xr-xtestsuite/expand.tests7
-rwxr-xr-xtestsuite/fold.tests7
-rwxr-xr-xtestsuite/ls.tests8
-rwxr-xr-xtestsuite/mount.tests1
-rwxr-xr-xtestsuite/unexpand.tests6
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
10test -f "$bindir/.config" && . "$bindir/.config" 9test -f "$bindir/.config" && . "$bindir/.config"
11 10
12test x"CONFIG_SCRIPT" = x"y" || exit 0 11test 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
7test -f "$bindir/.config" && . "$bindir/.config" 6test -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
101rm -rf cpio.testdir 101rm -rf cpio.testdir
102optional FEATURE_CPIO_O 102optional FEATURE_CPIO_O FEATURE_STAT_FORMAT
103mkdir cpio.testdir 103mkdir cpio.testdir
104touch cpio.testdir/file 104touch cpio.testdir/file
105chmod 6755 cpio.testdir/file # sets suid/sgid bits 105chmod 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 @@
1unset LANG
2
1dt=`busybox date -d 1:2 +%T` 3dt=`busybox date -d 1:2 +%T`
2test x"$dt" = x"01:02:00" 4test 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
6test -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
15optional UNICODE_SUPPORT 16test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
17&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
18&& test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \
16testing "expand with unicode characher 0x394" \ 19testing "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"
21SKIP=
22
23 24
24exit $FAILCOUNT 25exit $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
6test -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
28is here:>\0< - they must be preserved 29is here:>\0< - they must be preserved
29" \ 30" \
30 31
31optional UNICODE_SUPPORT
32# The text was taken from English and Ukrainian wikipedia pages 32# The text was taken from English and Ukrainian wikipedia pages
33testing "fold -sw66 with unicode input" "fold -sw66" \ 33test 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 "\
35The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\ 37The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\
36Messier 31, M31, or NGC224; often referred to as the Great \n\ 38Messier 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На початку ХХІ ст. в центрі галактики виявлено чорну дірку."
59SKIP=
60 61
61exit $FAILCOUNT 62exit $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
7test -f "$bindir/.config" && . "$bindir/.config" 6test -f "$bindir/.config" && . "$bindir/.config"
8 7
9rm -rf ls.testdir >/dev/null 8rm -rf ls.testdir 2>/dev/null
10mkdir ls.testdir || exit 1 9mkdir 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.
17test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ 16test 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
136test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ 136test 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
7test -f "$bindir/.config" && . "$bindir/.config" 6test -f "$bindir/.config" && . "$bindir/.config"
8 7
9test "`id -u`" = 0 || { 8test "`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
6test -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" \
30testing "unexpand case 8" "unexpand" \ 31testing "unexpand case 8" "unexpand" \
31 "a b\n" "" "a b\n" \ 32 "a b\n" "" "a b\n" \
32 33
33optional UNICODE_SUPPORT 34test x"$CONFIG_UNICODE_SUPPORT" = x"y" \
35&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \
36&& test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \
34testing "unexpand with unicode characher 0x394" "unexpand" \ 37testing "unexpand with unicode characher 0x394" "unexpand" \
35 "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" 38 "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n"
36SKIP=
37 39
38exit $FAILCOUNT 40exit $FAILCOUNT