aboutsummaryrefslogtreecommitdiff
path: root/testsuite/mdev.tests
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 14:40:58 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-08-04 14:40:58 +0000
commit5db861a9eb93c4562798654f53022088784f35eb (patch)
tree60572a6fe1df5b7079482ec4490fca559c58fbd2 /testsuite/mdev.tests
parent27842288b393e532e5693f2a2bab94fee73a326d (diff)
downloadbusybox-w32-5db861a9eb93c4562798654f53022088784f35eb.tar.gz
busybox-w32-5db861a9eb93c4562798654f53022088784f35eb.tar.bz2
busybox-w32-5db861a9eb93c4562798654f53022088784f35eb.zip
fix some testsuite false positives
Diffstat (limited to 'testsuite/mdev.tests')
-rwxr-xr-xtestsuite/mdev.tests14
1 files changed, 8 insertions, 6 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests
index 5c65ffc46..dad5bddb8 100755
--- a/testsuite/mdev.tests
+++ b/testsuite/mdev.tests
@@ -25,8 +25,10 @@ mkdir mdev.testdir/dev
25mkdir -p mdev.testdir/sys/block/sda 25mkdir -p mdev.testdir/sys/block/sda
26echo "8:0" >mdev.testdir/sys/block/sda/dev 26echo "8:0" >mdev.testdir/sys/block/sda/dev
27 27
28# env - PATH=$PATH: on some systems chroot binary won't otherwise be found
29
28testing "mdev add /block/sda" \ 30testing "mdev add /block/sda" \
29 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 31 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
30 ls -ln mdev.testdir/dev | $FILTER_LS" \ 32 ls -ln mdev.testdir/dev | $FILTER_LS" \
31"\ 33"\
32brw-rw---- 1 0 0 8,0 sda 34brw-rw---- 1 0 0 8,0 sda
@@ -38,7 +40,7 @@ rm -rf mdev.testdir/dev/*
38echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf 40echo ".* 1:1 666" >mdev.testdir/etc/mdev.conf
39echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf 41echo "sda 2:2 444" >>mdev.testdir/etc/mdev.conf
40testing "mdev stops on first rule" \ 42testing "mdev stops on first rule" \
41 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 43 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
42 ls -ln mdev.testdir/dev | $FILTER_LS" \ 44 ls -ln mdev.testdir/dev | $FILTER_LS" \
43"\ 45"\
44brw-rw-rw- 1 1 1 8,0 sda 46brw-rw-rw- 1 1 1 8,0 sda
@@ -49,7 +51,7 @@ brw-rw-rw- 1 1 1 8,0 sda
49rm -rf mdev.testdir/dev/* 51rm -rf mdev.testdir/dev/*
50echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf 52echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf
51testing "mdev move/symlink rule '>bar/baz'" \ 53testing "mdev move/symlink rule '>bar/baz'" \
52 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 54 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
53 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 55 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
54"\ 56"\
55mdev.testdir/dev: 57mdev.testdir/dev:
@@ -65,7 +67,7 @@ br--r--r-- 1 0 0 scsiA
65rm -rf mdev.testdir/dev/* 67rm -rf mdev.testdir/dev/*
66echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf 68echo "sda 0:0 444 >disk/" >mdev.testdir/etc/mdev.conf
67testing "mdev move/symlink rule '>bar/'" \ 69testing "mdev move/symlink rule '>bar/'" \
68 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 70 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
69 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 71 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
70"\ 72"\
71mdev.testdir/dev: 73mdev.testdir/dev:
@@ -82,7 +84,7 @@ rm -rf mdev.testdir/dev/*
82# here we complicate things by having non-matching group 1 and using %0 84# here we complicate things by having non-matching group 1 and using %0
83echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf 85echo "s([0-9])*d([a-z]+) 0:0 644 >sd/%2_%0" >mdev.testdir/etc/mdev.conf
84testing "mdev regexp substring match + replace" \ 86testing "mdev regexp substring match + replace" \
85 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 87 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
86 ls -lnR mdev.testdir/dev | $FILTER_LS2" \ 88 ls -lnR mdev.testdir/dev | $FILTER_LS2" \
87"\ 89"\
88mdev.testdir/dev: 90mdev.testdir/dev:
@@ -99,7 +101,7 @@ rm -rf mdev.testdir/dev/*
99# here we complicate things by having non-matching group 1 and using %0 101# here we complicate things by having non-matching group 1 and using %0
100echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf 102echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf
101testing "mdev command" \ 103testing "mdev command" \
102 "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 104 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
103 ls -lnR mdev.testdir/dev | $FILTER_LS" \ 105 ls -lnR mdev.testdir/dev | $FILTER_LS" \
104"\ 106"\
105@echo TEST 107@echo TEST