diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-10 11:00:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-05-10 11:00:11 +0200 |
commit | 8e3aff0ce03cbc44b2fa80fb62fa2378a5212a5a (patch) | |
tree | 844103368dc1723c860a0d11cc30b3540cea67e0 | |
parent | e3d90a90d43b857a5305808560d485b030a15c0a (diff) | |
download | busybox-w32-8e3aff0ce03cbc44b2fa80fb62fa2378a5212a5a.tar.gz busybox-w32-8e3aff0ce03cbc44b2fa80fb62fa2378a5212a5a.tar.bz2 busybox-w32-8e3aff0ce03cbc44b2fa80fb62fa2378a5212a5a.zip |
more randomconfig testsuite fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rwxr-xr-x | scripts/gen_build_files.sh | 80 | ||||
-rwxr-xr-x | testsuite/awk.tests | 2 | ||||
-rwxr-xr-x | testsuite/cpio.tests | 2 | ||||
-rwxr-xr-x | testsuite/makedevs.tests | 2 | ||||
-rwxr-xr-x | testsuite/mdev.tests | 22 | ||||
-rwxr-xr-x | testsuite/testing.sh | 16 |
6 files changed, 66 insertions, 58 deletions
diff --git a/scripts/gen_build_files.sh b/scripts/gen_build_files.sh index 3d757500c..2baefa2ee 100755 --- a/scripts/gen_build_files.sh +++ b/scripts/gen_build_files.sh | |||
@@ -3,52 +3,52 @@ | |||
3 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | 3 | test $# -ge 2 || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } |
4 | 4 | ||
5 | # cd to objtree | 5 | # cd to objtree |
6 | cd "$2" || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } | 6 | cd -- "$2" || { echo "Syntax: $0 SRCTREE OBJTREE"; exit 1; } |
7 | 7 | ||
8 | srctree="$1" | 8 | srctree="$1" |
9 | 9 | ||
10 | find -type d | while read; do | 10 | find -type d | while read; do |
11 | d="$REPLY" | 11 | d="$REPLY" |
12 | 12 | ||
13 | src="$srctree/$d/Kbuild.src" | 13 | src="$srctree/$d/Kbuild.src" |
14 | dst="$d/Kbuild" | 14 | dst="$d/Kbuild" |
15 | if test -f "$src"; then | 15 | if test -f "$src"; then |
16 | echo " CHK $dst" | 16 | echo " CHK $dst" |
17 | 17 | ||
18 | s=`sed -n 's@^//kbuild:@@p' "$srctree/$d"/*.c` | 18 | s=`sed -n 's@^//kbuild:@@p' -- "$srctree/$d"/*.c` |
19 | echo "# DO NOT EDIT. This file is generated from Kbuild.src" >"$dst.$$.tmp" | 19 | echo "# DO NOT EDIT. This file is generated from Kbuild.src" >"$dst.$$.tmp" |
20 | while read; do | 20 | while read; do |
21 | test x"$REPLY" = x"INSERT" && REPLY="$s" | 21 | test x"$REPLY" = x"INSERT" && REPLY="$s" |
22 | printf "%s\n" "$REPLY" | 22 | printf "%s\n" "$REPLY" |
23 | done <"$src" >>"$dst.$$.tmp" | 23 | done <"$src" >>"$dst.$$.tmp" |
24 | 24 | ||
25 | if test -f "$dst" && cmp -s "$dst.$$.tmp" "$dst"; then | 25 | if test -f "$dst" && cmp -s "$dst.$$.tmp" "$dst"; then |
26 | rm "$dst.$$.tmp" | 26 | rm -- "$dst.$$.tmp" |
27 | else | 27 | else |
28 | echo " GEN $dst" | 28 | echo " GEN $dst" |
29 | mv "$dst.$$.tmp" "$dst" | 29 | mv -- "$dst.$$.tmp" "$dst" |
30 | fi | ||
30 | fi | 31 | fi |
31 | fi | 32 | |
32 | 33 | src="$srctree/$d/Config.src" | |
33 | src="$srctree/$d/Config.src" | 34 | dst="$d/Config.in" |
34 | dst="$d/Config.in" | 35 | if test -f "$src"; then |
35 | if test -f "$src"; then | 36 | echo " CHK $dst" |
36 | echo " CHK $dst" | 37 | |
37 | 38 | s=`sed -n 's@^//config:@@p' -- "$srctree/$d"/*.c` | |
38 | s=`sed -n 's@^//config:@@p' "$srctree/$d"/*.c` | 39 | echo "# DO NOT EDIT. This file is generated from Config.src" >"$dst.$$.tmp" |
39 | echo "# DO NOT EDIT. This file is generated from Config.src" >"$dst.$$.tmp" | 40 | while read; do |
40 | while read; do | 41 | test x"$REPLY" = x"INSERT" && REPLY="$s" |
41 | test x"$REPLY" = x"INSERT" && REPLY="$s" | 42 | printf "%s\n" "$REPLY" |
42 | printf "%s\n" "$REPLY" | 43 | done <"$src" >>"$dst.$$.tmp" |
43 | done <"$src" >>"$dst.$$.tmp" | 44 | |
44 | 45 | if test -f "$dst" && cmp -s "$dst.$$.tmp" "$dst"; then | |
45 | if test -f "$dst" && cmp -s "$dst.$$.tmp" "$dst"; then | 46 | rm -- "$dst.$$.tmp" |
46 | rm "$dst.$$.tmp" | 47 | else |
47 | else | 48 | echo " GEN $dst" |
48 | echo " GEN $dst" | 49 | mv -- "$dst.$$.tmp" "$dst" |
49 | mv "$dst.$$.tmp" "$dst" | 50 | fi |
50 | fi | 51 | fi |
51 | fi | ||
52 | 52 | ||
53 | done | 53 | done |
54 | 54 | ||
diff --git a/testsuite/awk.tests b/testsuite/awk.tests index 5dea2e983..efa03a79a 100755 --- a/testsuite/awk.tests +++ b/testsuite/awk.tests | |||
@@ -33,7 +33,7 @@ testing "awk long field sep" "awk -F-- '{ print NF, length(\$NF), \$NF }'" \ | |||
33 | testing "awk gsub falls back to non-extended-regex" \ | 33 | testing "awk gsub falls back to non-extended-regex" \ |
34 | "awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n" | 34 | "awk 'gsub(\"@(samp|code|file)\{\",\"\");'; echo \$?" "0\n" "" "Hi\n" |
35 | 35 | ||
36 | optional FEATURE_SEAMLESS_BZ2 | 36 | optional TAR BUNZIP2 FEATURE_SEAMLESS_BZ2 |
37 | test x"$SKIP" != x"1" && tar xjf awk_t1.tar.bz2 | 37 | test x"$SKIP" != x"1" && tar xjf awk_t1.tar.bz2 |
38 | testing "awk 'gcc build bug'" \ | 38 | testing "awk 'gcc build bug'" \ |
39 | "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \ | 39 | "awk -f awk_t1_opt-functions.awk -f awk_t1_opth-gen.awk <awk_t1_input | md5sum" \ |
diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests index 2b8f0d030..b4c41dd9a 100755 --- a/testsuite/cpio.tests +++ b/testsuite/cpio.tests | |||
@@ -69,7 +69,7 @@ ln cpio.testdir/empty cpio.testdir/empty1 | |||
69 | ln cpio.testdir/nonempty cpio.testdir/nonempty1 | 69 | ln cpio.testdir/nonempty cpio.testdir/nonempty1 |
70 | mkdir cpio.testdir2 | 70 | mkdir cpio.testdir2 |
71 | 71 | ||
72 | optional FEATURE_CPIO_O | 72 | optional FEATURE_CPIO_O LONG_OPTS |
73 | testing "cpio extracts zero-sized hardlinks 2" \ | 73 | testing "cpio extracts zero-sized hardlinks 2" \ |
74 | "find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; | 74 | "find cpio.testdir | cpio -H newc --create | (cd cpio.testdir2 && cpio -i 2>&1); echo \$?; |
75 | ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ | 75 | ls -ln cpio.testdir2/cpio.testdir | $FILTER_LS" \ |
diff --git a/testsuite/makedevs.tests b/testsuite/makedevs.tests index 5d6b0f248..72fc933d3 100755 --- a/testsuite/makedevs.tests +++ b/testsuite/makedevs.tests | |||
@@ -16,7 +16,7 @@ FILTER_LS2="sed -e 's/, */,/g' -e 's/ */ /g' | cut -d' ' -f 1-4,9-" | |||
16 | rm -rf makedevs.testdir | 16 | rm -rf makedevs.testdir |
17 | mkdir makedevs.testdir | 17 | mkdir makedevs.testdir |
18 | 18 | ||
19 | optional FEATURE_LS_RECURSIVE | 19 | optional FEATURE_MAKEDEVS_TABLE FEATURE_FIND_NOT FEATURE_FIND_TYPE FEATURE_LS_RECURSIVE |
20 | testing "makedevs -d ../makedevs.device_table.txt ." \ | 20 | testing "makedevs -d ../makedevs.device_table.txt ." \ |
21 | "(cd makedevs.testdir && makedevs -d ../makedevs.device_table.txt . 2>&1); | 21 | "(cd makedevs.testdir && makedevs -d ../makedevs.device_table.txt . 2>&1); |
22 | find makedevs.testdir ! -type d | sort | xargs ls -lnR | $FILTER_LS" \ | 22 | find makedevs.testdir ! -type d | sort | xargs ls -lnR | $FILTER_LS" \ |
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index a21d9bd0c..270f6292e 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests | |||
@@ -27,6 +27,7 @@ echo "8:0" >mdev.testdir/sys/block/sda/dev | |||
27 | 27 | ||
28 | # env - PATH=$PATH: on some systems chroot binary won't otherwise be found | 28 | # env - PATH=$PATH: on some systems chroot binary won't otherwise be found |
29 | 29 | ||
30 | optional STATIC | ||
30 | testing "mdev add /block/sda" \ | 31 | testing "mdev add /block/sda" \ |
31 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 32 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
32 | ls -ln mdev.testdir/dev | $FILTER_LS" \ | 33 | ls -ln mdev.testdir/dev | $FILTER_LS" \ |
@@ -34,11 +35,13 @@ testing "mdev add /block/sda" \ | |||
34 | brw-rw---- 1 0 0 8,0 sda | 35 | brw-rw---- 1 0 0 8,0 sda |
35 | " \ | 36 | " \ |
36 | "" "" | 37 | "" "" |
38 | SKIP= | ||
37 | 39 | ||
38 | # continuing to use directory structure from prev test | 40 | # continuing to use directory structure from prev test |
39 | rm -rf mdev.testdir/dev/* | 41 | rm -rf mdev.testdir/dev/* |
40 | echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf | 42 | echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf |
41 | echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf | 43 | echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf |
44 | optional STATIC FEATURE_MDEV_CONF | ||
42 | testing "mdev stops on first rule" \ | 45 | testing "mdev stops on first rule" \ |
43 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 46 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
44 | ls -ln mdev.testdir/dev | $FILTER_LS" \ | 47 | ls -ln mdev.testdir/dev | $FILTER_LS" \ |
@@ -46,11 +49,13 @@ testing "mdev stops on first rule" \ | |||
46 | brw-rw-rw- 1 1 1 8,0 sda | 49 | brw-rw-rw- 1 1 1 8,0 sda |
47 | " \ | 50 | " \ |
48 | "" "" | 51 | "" "" |
52 | SKIP= | ||
49 | 53 | ||
50 | # continuing to use directory structure from prev test | 54 | # continuing to use directory structure from prev test |
51 | rm -rf mdev.testdir/dev/* | 55 | rm -rf mdev.testdir/dev/* |
52 | echo "-.* 1:1 666" >mdev.testdir/etc/mdev.conf | 56 | echo "-.* 1:1 666" >mdev.testdir/etc/mdev.conf |
53 | echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf | 57 | echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf |
58 | optional STATIC FEATURE_MDEV_CONF | ||
54 | testing "mdev does not stop on dash-rule" \ | 59 | testing "mdev does not stop on dash-rule" \ |
55 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 60 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
56 | ls -ln mdev.testdir/dev | $FILTER_LS" \ | 61 | ls -ln mdev.testdir/dev | $FILTER_LS" \ |
@@ -58,12 +63,14 @@ testing "mdev does not stop on dash-rule" \ | |||
58 | br--r--r-- 1 2 2 8,0 sda | 63 | br--r--r-- 1 2 2 8,0 sda |
59 | " \ | 64 | " \ |
60 | "" "" | 65 | "" "" |
66 | SKIP= | ||
61 | 67 | ||
62 | # continuing to use directory structure from prev test | 68 | # continuing to use directory structure from prev test |
63 | rm -rf mdev.testdir/dev/* | 69 | rm -rf mdev.testdir/dev/* |
64 | echo "\$MODALIAS=qw 1:1 666" >mdev.testdir/etc/mdev.conf | 70 | echo "\$MODALIAS=qw 1:1 666" >mdev.testdir/etc/mdev.conf |
65 | echo "\$MODALIAS=qw. 2:2 444" >>mdev.testdir/etc/mdev.conf | 71 | echo "\$MODALIAS=qw. 2:2 444" >>mdev.testdir/etc/mdev.conf |
66 | echo "\$MODALIAS=qw. 3:3 400" >>mdev.testdir/etc/mdev.conf | 72 | echo "\$MODALIAS=qw. 3:3 400" >>mdev.testdir/etc/mdev.conf |
73 | optional STATIC FEATURE_MDEV_CONF | ||
67 | testing "mdev \$ENVVAR=regex match" \ | 74 | testing "mdev \$ENVVAR=regex match" \ |
68 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda MODALIAS=qwe chroot mdev.testdir /mdev 2>&1; | 75 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda MODALIAS=qwe chroot mdev.testdir /mdev 2>&1; |
69 | ls -ln mdev.testdir/dev | $FILTER_LS" \ | 76 | ls -ln mdev.testdir/dev | $FILTER_LS" \ |
@@ -71,11 +78,12 @@ testing "mdev \$ENVVAR=regex match" \ | |||
71 | br--r--r-- 1 2 2 8,0 sda | 78 | br--r--r-- 1 2 2 8,0 sda |
72 | " \ | 79 | " \ |
73 | "" "" | 80 | "" "" |
81 | SKIP= | ||
74 | 82 | ||
75 | # continuing to use directory structure from prev test | 83 | # continuing to use directory structure from prev test |
76 | rm -rf mdev.testdir/dev/* | 84 | rm -rf mdev.testdir/dev/* |
77 | echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf | 85 | echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf |
78 | optional FEATURE_LS_RECURSIVE | 86 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_LS_RECURSIVE |
79 | testing "mdev move/symlink rule '>bar/baz'" \ | 87 | testing "mdev move/symlink rule '>bar/baz'" \ |
80 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 88 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
81 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ | 89 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ |
@@ -93,7 +101,7 @@ SKIP= | |||
93 | # continuing to use directory structure from prev test | 101 | # continuing to use directory structure from prev test |
94 | rm -rf mdev.testdir/dev/* | 102 | rm -rf mdev.testdir/dev/* |
95 | echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf | 103 | echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf |
96 | optional FEATURE_LS_RECURSIVE | 104 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_LS_RECURSIVE |
97 | testing "mdev move/symlink rule '>bar/'" \ | 105 | testing "mdev move/symlink rule '>bar/'" \ |
98 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 106 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
99 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ | 107 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ |
@@ -112,7 +120,7 @@ SKIP= | |||
112 | rm -rf mdev.testdir/dev/* | 120 | rm -rf mdev.testdir/dev/* |
113 | # here we complicate things by having non-matching group 1 and using %0 | 121 | # here we complicate things by having non-matching group 1 and using %0 |
114 | echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf | 122 | echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf |
115 | optional FEATURE_LS_RECURSIVE | 123 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_RENAME_REGEXP FEATURE_LS_RECURSIVE |
116 | testing "mdev regexp substring match + replace" \ | 124 | testing "mdev regexp substring match + replace" \ |
117 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 125 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
118 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ | 126 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ |
@@ -130,7 +138,7 @@ SKIP= | |||
130 | # continuing to use directory structure from prev test | 138 | # continuing to use directory structure from prev test |
131 | rm -rf mdev.testdir/dev/* | 139 | rm -rf mdev.testdir/dev/* |
132 | 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 |
133 | optional FEATURE_LS_RECURSIVE | 141 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE |
134 | testing "mdev command" \ | 142 | testing "mdev command" \ |
135 | "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; |
136 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ | 144 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ |
@@ -145,7 +153,7 @@ SKIP= | |||
145 | # continuing to use directory structure from prev test | 153 | # continuing to use directory structure from prev test |
146 | rm -rf mdev.testdir/dev/* | 154 | rm -rf mdev.testdir/dev/* |
147 | 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 |
148 | optional FEATURE_LS_RECURSIVE | 156 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_EXEC FEATURE_LS_RECURSIVE |
149 | testing "mdev move and command" \ | 157 | testing "mdev move and command" \ |
150 | "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; |
151 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ | 159 | ls -lnR mdev.testdir/dev | $FILTER_LS2" \ |
@@ -163,7 +171,7 @@ SKIP= | |||
163 | # continuing to use directory structure from prev test | 171 | # continuing to use directory structure from prev test |
164 | rm -rf mdev.testdir/dev/* | 172 | rm -rf mdev.testdir/dev/* |
165 | echo "@8,0 0:1 644" >mdev.testdir/etc/mdev.conf | 173 | echo "@8,0 0:1 644" >mdev.testdir/etc/mdev.conf |
166 | optional FEATURE_LS_RECURSIVE | 174 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_RENAME_REGEXP FEATURE_LS_RECURSIVE |
167 | testing "mdev #maj,min and no explicit uid" \ | 175 | testing "mdev #maj,min and no explicit uid" \ |
168 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | 176 | "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |
169 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ | 177 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ |
@@ -186,7 +194,7 @@ echo "capi 0:0 0660 =capi20" >mdev.testdir/etc/mdev.conf | |||
186 | echo "capi([0-9]) 0:0 0660 =capi20.0%1" >>mdev.testdir/etc/mdev.conf | 194 | echo "capi([0-9]) 0:0 0660 =capi20.0%1" >>mdev.testdir/etc/mdev.conf |
187 | echo "capi([0-9]*) 0:0 0660 =capi20.%1" >>mdev.testdir/etc/mdev.conf | 195 | echo "capi([0-9]*) 0:0 0660 =capi20.%1" >>mdev.testdir/etc/mdev.conf |
188 | # mdev invocation with DEVPATH=/class/tty/capi20 was deleting /dev/capi20 | 196 | # mdev invocation with DEVPATH=/class/tty/capi20 was deleting /dev/capi20 |
189 | optional FEATURE_LS_RECURSIVE | 197 | optional STATIC FEATURE_MDEV_CONF FEATURE_MDEV_RENAME FEATURE_MDEV_RENAME_REGEXP FEATURE_LS_RECURSIVE |
190 | testing "move rule does not delete node with name == device_name" \ | 198 | testing "move rule does not delete node with name == device_name" \ |
191 | "\ | 199 | "\ |
192 | env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi chroot mdev.testdir /mdev 2>&1; | 200 | env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi chroot mdev.testdir /mdev 2>&1; |
diff --git a/testsuite/testing.sh b/testsuite/testing.sh index 22c640faf..65a0f6529 100755 --- a/testsuite/testing.sh +++ b/testsuite/testing.sh | |||
@@ -54,14 +54,14 @@ test x"$ECHO" != x"" || { | |||
54 | 54 | ||
55 | optional() | 55 | optional() |
56 | { | 56 | { |
57 | option=`echo ":$OPTIONFLAGS:" | grep ":$1:"` | 57 | SKIP= |
58 | # Not set? | 58 | while test "$1"; do |
59 | if [ -z "$1" ] || [ -z "$OPTIONFLAGS" ] || [ ${#option} -ne 0 ] | 59 | if test x"${OPTIONFLAGS/*:$1:*/y}" != x"y"; then |
60 | then | 60 | SKIP=1 |
61 | SKIP= | 61 | return |
62 | return | 62 | fi |
63 | fi | 63 | shift |
64 | SKIP=1 | 64 | done |
65 | } | 65 | } |
66 | 66 | ||
67 | # The testing function | 67 | # The testing function |