diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 13:21:24 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-05-02 13:21:24 +0000 |
commit | 32dcc53b7162406148203b8222c3f5c5056f70f2 (patch) | |
tree | dcae696c5a80b3f5b51e4926d2e985a2dfcdb21c /testsuite | |
parent | 6da9b00f4fb54b3deba1c2636d69950fdbcc0d67 (diff) | |
download | busybox-w32-32dcc53b7162406148203b8222c3f5c5056f70f2.tar.gz busybox-w32-32dcc53b7162406148203b8222c3f5c5056f70f2.tar.bz2 busybox-w32-32dcc53b7162406148203b8222c3f5c5056f70f2.zip |
mdev: fix a bug where we were eating argv[0] of helper
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/mdev.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index 81c440d1f..572609e11 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests | |||
@@ -18,6 +18,8 @@ mkdir mdev.testdir | |||
18 | # We need mdev executable to be in chroot jail! | 18 | # We need mdev executable to be in chroot jail! |
19 | # (will still fail with dynamically linked one, though...) | 19 | # (will still fail with dynamically linked one, though...) |
20 | cp ../busybox mdev.testdir/mdev | 20 | cp ../busybox mdev.testdir/mdev |
21 | mkdir mdev.testdir/bin | ||
22 | cp ../busybox mdev.testdir/bin/sh 2>/dev/null # for testing cmd feature | ||
21 | mkdir mdev.testdir/etc | 23 | mkdir mdev.testdir/etc |
22 | mkdir mdev.testdir/dev | 24 | mkdir mdev.testdir/dev |
23 | mkdir -p mdev.testdir/sys/block/sda | 25 | mkdir -p mdev.testdir/sys/block/sda |
@@ -93,6 +95,20 @@ brw-r--r-- 1 0 0 a_sda | |||
93 | " \ | 95 | " \ |
94 | "" "" | 96 | "" "" |
95 | 97 | ||
98 | # continuing to use directory structure from prev test | ||
99 | rm -rf mdev.testdir/dev/* | ||
100 | # here we complicate things by having non-matching group 1 and using %0 | ||
101 | echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf | ||
102 | testing "mdev command" \ | ||
103 | "env - ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; | ||
104 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ | ||
105 | "\ | ||
106 | @echo TEST | ||
107 | mdev.testdir/dev: | ||
108 | brw-r--r-- 1 0 0 8,0 sda | ||
109 | " \ | ||
110 | "" "" | ||
111 | |||
96 | # clean up | 112 | # clean up |
97 | rm -rf mdev.testdir | 113 | rm -rf mdev.testdir |
98 | 114 | ||