summaryrefslogtreecommitdiff
path: root/testsuite/mdev.tests
diff options
context:
space:
mode:
authorDenis Vlasenko2009-01-12 07:57:52 +0000
committerDenis Vlasenko2009-01-12 07:57:52 +0000
commit319fe129a15278193625eeb05752511d576c5588 (patch)
tree4587f23bff0fa8e5604a411f038dec5b7436b9a5 /testsuite/mdev.tests
parentf0dc2c1d5c01cffd2e60c964df95a3bdecffe141 (diff)
downloadbusybox-319fe129a15278193625eeb05752511d576c5588.zip
busybox-319fe129a15278193625eeb05752511d576c5588.tar.gz
mdev: fix breakage caused by unified parser usage
Diffstat (limited to 'testsuite/mdev.tests')
-rwxr-xr-xtestsuite/mdev.tests16
1 files changed, 16 insertions, 0 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests
index 2285579..90379e6 100755
--- a/testsuite/mdev.tests
+++ b/testsuite/mdev.tests
@@ -111,6 +111,22 @@ brw-r--r-- 1 0 0 8,0 sda
# continuing to use directory structure from prev test
rm -rf mdev.testdir/dev/*
+echo "sda 0:0 644 =block/ @echo @echo TEST" >mdev.testdir/etc/mdev.conf
+testing "mdev move and command" \
+ "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
+ ls -lnR mdev.testdir/dev | $FILTER_LS2" \
+"\
+@echo TEST
+mdev.testdir/dev:
+drwxr-xr-x 2 0 0 block
+
+mdev.testdir/dev/block:
+brw-r--r-- 1 0 0 sda
+" \
+ "" ""
+
+# continuing to use directory structure from prev test
+rm -rf mdev.testdir/dev/*
echo "@8,0 :1 644" >mdev.testdir/etc/mdev.conf
testing "mdev #maj,min and no explicit uid" \
"env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;