diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-05 21:37:12 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-05 21:37:12 +0200 |
commit | 9297dbc9d285e823af59c443e0123cb99577569a (patch) | |
tree | 134bb16eaaa4f0a7148aed3a78c7c797108e6568 /testsuite | |
parent | 08f0b784fd4351929090c877605762d664e70098 (diff) | |
download | busybox-9297dbc9d285e823af59c443e0123cb99577569a.tar.gz |
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh - test -f "$bindir/.config" && . "$bindir/.config" 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh - test -f "$bindir/.config" && . "$bindir/.config" # 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= # chown on a link was affecting file, dropping its suid/sgid bits rm -rf cpio.testdir -optional FEATURE_CPIO_O +optional FEATURE_CPIO_O FEATURE_STAT_FORMAT mkdir cpio.testdir touch cpio.testdir/file 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 @@ +unset LANG + dt=`busybox date -d 1:2 +%T` test x"$dt" = x"01:02:00" 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh +test -f "$bindir/.config" && . "$bindir/.config" # testing "test name" "options" "expected result" "file input" "stdin" @@ -12,13 +13,13 @@ testing "expand" \ "" \ "\t12345678\t12345678\n" -optional UNICODE_SUPPORT +test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ +&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ +&& test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \ testing "expand with unicode characher 0x394" \ "expand" \ "Δ 12345ΔΔΔ 12345678\n" \ "" \ "Δ\t12345ΔΔΔ\t12345678\n" -SKIP= - 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh +test -f "$bindir/.config" && . "$bindir/.config" # testing "test name" "options" "expected result" "file input" "stdin" @@ -28,9 +29,10 @@ be preserved is here:>\0< - they must be preserved " \ -optional UNICODE_SUPPORT # The text was taken from English and Ukrainian wikipedia pages -testing "fold -sw66 with unicode input" "fold -sw66" \ +test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ +&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ +&& testing "fold -sw66 with unicode input" "fold -sw66" \ "\ The Andromeda Galaxy (pronounced /ænˈdrɒmədə/, also known as \n\ Messier 31, M31, or NGC224; often referred to as the Great \n\ @@ -56,6 +58,5 @@ Way. спіральна галактика, що знаходиться на відстані приблизно у 2,5 \ мільйони світлових років від нашої планети у сузір'ї Андромеди. \ На початку ХХІ ст. в центрі галактики виявлено чорну дірку." -SKIP= 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh - test -f "$bindir/.config" && . "$bindir/.config" -rm -rf ls.testdir >/dev/null +rm -rf ls.testdir 2>/dev/null mkdir ls.testdir || exit 1 # testing "test name" "command" "expected result" "file input" "stdin" @@ -15,9 +14,10 @@ mkdir ls.testdir || exit 1 # I suspect we might fail to skip exactly correct number of bytes # over broked unicode sequences. test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ -&& test x"$CONFIG_LOCALE_SUPPORT" != x"y" \ +&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ && test x"$CONFIG_SUBST_WCHAR" = x"63" \ && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"767" \ +&& test x"$CONFIG_FEATURE_LS_SORTFILES" = x"y" \ && testing "ls unicode test with codepoints limited to 767" \ "(cd ls.testdir && sh ../ls.mk_uni_tests) && ls -1 ls.testdir" \ '0001_1__Some_correct_UTF-8_text___________________________________________| @@ -134,7 +134,7 @@ test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ # Currently fails on "0080_4.2.2__U-000007FF_=_e0_9f_bf" line test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ -&& test x"$CONFIG_LOCALE_SUPPORT" != x"y" \ +&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ && test x"$CONFIG_SUBST_WCHAR" = x"63" \ && test x"$CONFIG_LAST_SUPPORTED_WCHAR" = x"0" \ && 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh - test -f "$bindir/.config" && . "$bindir/.config" 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 @@ # Licensed under GPL v2, see file LICENSE for details. . ./testing.sh +test -f "$bindir/.config" && . "$bindir/.config" # testing "test name" "options" "expected result" "file input" "stdin" @@ -30,9 +31,10 @@ testing "unexpand case 7" "unexpand" \ testing "unexpand case 8" "unexpand" \ "a b\n" "" "a b\n" \ -optional UNICODE_SUPPORT +test x"$CONFIG_UNICODE_SUPPORT" = x"y" \ +&& test x"$CONFIG_UNICODE_USING_LOCALE" != x"y" \ +&& test "$CONFIG_LAST_SUPPORTED_WCHAR" -gt "916" \ testing "unexpand with unicode characher 0x394" "unexpand" \ "1ΔΔΔ5\t99999\n" "" "1ΔΔΔ5 99999\n" -SKIP= exit $FAILCOUNT |