aboutsummaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/mdev.tests13
1 files changed, 12 insertions, 1 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests
index dad5bddb8..22855791a 100755
--- a/testsuite/mdev.tests
+++ b/testsuite/mdev.tests
@@ -98,7 +98,6 @@ brw-r--r-- 1 0 0 a_sda
98 98
99# continuing to use directory structure from prev test 99# continuing to use directory structure from prev test
100rm -rf mdev.testdir/dev/* 100rm -rf mdev.testdir/dev/*
101# here we complicate things by having non-matching group 1 and using %0
102echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf 101echo "sda 0:0 644 @echo @echo TEST" >mdev.testdir/etc/mdev.conf
103testing "mdev command" \ 102testing "mdev command" \
104 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; 103 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
@@ -110,6 +109,18 @@ brw-r--r-- 1 0 0 8,0 sda
110" \ 109" \
111 "" "" 110 "" ""
112 111
112# continuing to use directory structure from prev test
113rm -rf mdev.testdir/dev/*
114echo "@8,0 :1 644" >mdev.testdir/etc/mdev.conf
115testing "mdev #maj,min and no explicit uid" \
116 "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1;
117 ls -lnR mdev.testdir/dev | $FILTER_LS" \
118"\
119mdev.testdir/dev:
120brw-r--r-- 1 0 1 8,0 sda
121" \
122 "" ""
123
113# clean up 124# clean up
114rm -rf mdev.testdir 125rm -rf mdev.testdir
115 126