diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-11 04:32:04 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-11 04:32:04 +0200 |
commit | c0211e907ba0db44adab2c210caa284e49241ba5 (patch) | |
tree | c89d73c3e3664bf3aad27ff72adbdab446fe41a7 | |
parent | bfa1b2e8e8aaddcf849011a12cb2ac634b27f339 (diff) | |
download | busybox-w32-c0211e907ba0db44adab2c210caa284e49241ba5.tar.gz busybox-w32-c0211e907ba0db44adab2c210caa284e49241ba5.tar.bz2 busybox-w32-c0211e907ba0db44adab2c210caa284e49241ba5.zip |
randomtest fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | testsuite/busybox.tests | 4 | ||||
-rwxr-xr-x | testsuite/cpio.tests | 4 | ||||
-rwxr-xr-x | testsuite/mdev.tests | 4 | ||||
-rwxr-xr-x | testsuite/mount.tests | 1 |
4 files changed, 7 insertions, 6 deletions
diff --git a/testsuite/busybox.tests b/testsuite/busybox.tests index 18ac36fc4..0c740530d 100755 --- a/testsuite/busybox.tests +++ b/testsuite/busybox.tests | |||
@@ -10,7 +10,7 @@ HELPDUMP=`true | busybox 2>&1 | cat` | |||
10 | 10 | ||
11 | # We need to test under calling the binary under other names. | 11 | # We need to test under calling the binary under other names. |
12 | 12 | ||
13 | optional SHOW_USAGE | 13 | optional FEATURE_VERBOSE_USAGE |
14 | testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" | 14 | testing "busybox --help busybox" "true | busybox --help busybox 2>&1 | cat" "$HELPDUMP\n\n" "" "" |
15 | SKIP= | 15 | SKIP= |
16 | 16 | ||
@@ -27,7 +27,7 @@ do | |||
27 | 27 | ||
28 | testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n\n" "" "" | 28 | testing "$i --help" "$i --help 2>&1" "$HELPDUMP\n\n" "" "" |
29 | 29 | ||
30 | optional SHOW_USAGE CAT | 30 | optional FEATURE_VERBOSE_USAGE CAT |
31 | testing "" "$i cat" "moo" "" "moo" | 31 | testing "" "$i cat" "moo" "" "moo" |
32 | testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ | 32 | testing "$i --help cat" "$i --help cat 2>&1 | grep print" \ |
33 | "Concatenate FILEs and print them to stdout\n" "" "" | 33 | "Concatenate FILEs and print them to stdout\n" "" "" |
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 8cb8b787b..725e70eab 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -31,7 +31,7 @@ rm -rf cpio.testdir cpio.testdir2 2>/dev/null | |||
31 | 31 | ||
32 | # testing "test name" "command" "expected result" "file input" "stdin" | 32 | # testing "test name" "command" "expected result" "file input" "stdin" |
33 | 33 | ||
34 | optional FEATURE_LS_SORTFILES | 34 | optional FEATURE_LS_SORTFILES FEATURE_LS_TIMESTAMPS |
35 | testing "cpio extracts zero-sized hardlinks" \ | 35 | testing "cpio extracts zero-sized hardlinks" \ |
36 | "$ECHO -ne '$hexdump' | bzcat | cpio -i 2>&1; echo \$?; | 36 | "$ECHO -ne '$hexdump' | bzcat | cpio -i 2>&1; echo \$?; |
37 | ls -ln cpio.testdir | $FILTER_LS" \ | 37 | ls -ln cpio.testdir | $FILTER_LS" \ |
@@ -71,7 +71,7 @@ ln cpio.testdir/empty cpio.testdir/empty1 | |||
71 | ln cpio.testdir/nonempty cpio.testdir/nonempty1 | 71 | ln cpio.testdir/nonempty cpio.testdir/nonempty1 |
72 | mkdir cpio.testdir2 | 72 | mkdir cpio.testdir2 |
73 | 73 | ||
74 | optional FEATURE_CPIO_O LONG_OPTS | 74 | optional FEATURE_CPIO_O LONG_OPTS FEATURE_LS_SORTFILES FEATURE_LS_TIMESTAMPS |
75 | testing "cpio extracts zero-sized hardlinks 2" \ | 75 | testing "cpio extracts zero-sized hardlinks 2" \ |
76 | "find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; | 76 | "find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; |
77 | ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ | 77 | ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ |
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index 0b4525483..5bd720b9a 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests | |||
@@ -138,7 +138,7 @@ SKIP= | |||
138 | # continuing to use directory structure from prev test | 138 | # continuing to use directory structure from prev test |
139 | rm -rf mdev.testdir/dev/* | 139 | rm -rf mdev.testdir/dev/* |
140 | echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf | 140 | echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf |
141 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME | 141 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME FEATURE_SH_IS_ASH |
142 | testing "mdev command" \ | 142 | testing "mdev command" \ |
143 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 143 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
144 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ | 144 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ |
@@ -153,7 +153,7 @@ SKIP= | |||
153 | # continuing to use directory structure from prev test | 153 | # continuing to use directory structure from prev test |
154 | rm -rf mdev.testdir/dev/* | 154 | rm -rf mdev.testdir/dev/* |
155 | echo "sda 0:0 644 =block/ @echo @echo TEST:\$MDEV" >mdev.testdir/etc/mdev.conf | 155 | echo "sda 0:0 644 =block/ @echo @echo TEST:\$MDEV" >mdev.testdir/etc/mdev.conf |
156 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME | 156 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE FEATURE_LS_TIMESTAMPS FEATURE_LS_USERNAME FEATURE_SH_IS_ASH |
157 | testing "mdev move and command" \ | 157 | testing "mdev move and command" \ |
158 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 158 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
159 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ | 159 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ |
diff --git a/testsuite/mount.tests b/testsuite/mount.tests index ee13ec285..34988867d 100755 --- a/testsuite/mount.tests +++ b/testsuite/mount.tests | |||
@@ -13,6 +13,7 @@ test "`id -u`" = 0 || { | |||
13 | 13 | ||
14 | if test x"$CONFIG_MKFS_MINIX" != x"y" \ | 14 | if test x"$CONFIG_MKFS_MINIX" != x"y" \ |
15 | || test x"$CONFIG_FEATURE_MINIX2" != x"y" \ | 15 | || test x"$CONFIG_FEATURE_MINIX2" != x"y" \ |
16 | || test x"$CONFIG_FEATURE_MOUNT_LOOP" != x"y" \ | ||
16 | || test x"$CONFIG_FEATURE_DEVFS" = x"y" \ | 17 | || test x"$CONFIG_FEATURE_DEVFS" = x"y" \ |
17 | ; then | 18 | ; then |
18 | echo "SKIPPED: mount" | 19 | echo "SKIPPED: mount" |