diff options
Diffstat (limited to 'testsuite/mdev.tests')
-rwxr-xr-x | testsuite/mdev.tests | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index a1750076e..912785ece 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests | |||
@@ -162,6 +162,32 @@ brw-r--r-- 1 0 1 8,0 sda | |||
162 | " \ | 162 | " \ |
163 | "" "" | 163 | "" "" |
164 | 164 | ||
165 | # continuing to use directory structure from prev test | ||
166 | rm -rf mdev.testdir/dev/* | ||
167 | mkdir -p mdev.testdir/sys/class/tty/capi | ||
168 | echo "191:0" >mdev.testdir/sys/class/tty/capi/dev | ||
169 | mkdir -p mdev.testdir/sys/class/tty/capi1 | ||
170 | echo "191:1" >mdev.testdir/sys/class/tty/capi1/dev | ||
171 | mkdir -p mdev.testdir/sys/class/tty/capi20 | ||
172 | echo "191:20" >mdev.testdir/sys/class/tty/capi20/dev | ||
173 | echo "capi 0:0 0660 =capi20" >mdev.testdir/etc/mdev.conf | ||
174 | echo "capi([0-9]) 0:0 0660 =capi20.0%1" >>mdev.testdir/etc/mdev.conf | ||
175 | echo "capi([0-9]*) 0:0 0660 =capi20.%1" >>mdev.testdir/etc/mdev.conf | ||
176 | # mdev invocation with DEVPATH=/class/tty/capi20 was deleting /dev/capi20 | ||
177 | testing "move rule does not delete node with name == device_name" \ | ||
178 | "\ | ||
179 | env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi chroot mdev.testdir /mdev 2>&1; | ||
180 | env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi1 chroot mdev.testdir /mdev 2>&1; | ||
181 | env - PATH=$PATH ACTION=add DEVPATH=/class/tty/capi20 chroot mdev.testdir /mdev 2>&1; | ||
182 | ls -lnR mdev.testdir/dev | $FILTER_LS" \ | ||
183 | "\ | ||
184 | mdev.testdir/dev: | ||
185 | crw-rw---- 1 0 0 191,0 capi20 | ||
186 | crw-rw---- 1 0 0 191,1 capi20.01 | ||
187 | crw-rw---- 1 0 0 191,20 capi20.20 | ||
188 | " \ | ||
189 | "" "" | ||
190 | |||
165 | # clean up | 191 | # clean up |
166 | rm -rf mdev.testdir | 192 | rm -rf mdev.testdir |
167 | 193 | ||