diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-19 21:37:07 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-19 21:37:07 +0000 |
commit | 3798db58cfa0e939d0fc1822c9864355c1422cd0 (patch) | |
tree | 99f44bad59ccf82f4c1defa3bd81f09078eea8a0 /testsuite | |
parent | f66fe9af89e3d0f8a92894c59b6808f9202c0e86 (diff) | |
download | busybox-3798db58cfa0e939d0fc1822c9864355c1422cd0.tar.gz |
mdev: support $ENVVAR=regex
Diffstat (limited to 'testsuite')
-rwxr-xr-x | testsuite/mdev.tests | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index 388c41d52..6d6a21d41 100755 --- a/testsuite/mdev.tests +++ b/testsuite/mdev.tests @@ -61,6 +61,19 @@ br--r--r-- 1 2 2 8,0 sda # continuing to use directory structure from prev test rm -rf mdev.testdir/dev/* +echo "\$MODALIAS=qw 1:1 666" >mdev.testdir/etc/mdev.conf +echo "\$MODALIAS=qw. 2:2 444" >>mdev.testdir/etc/mdev.conf +echo "\$MODALIAS=qw. 3:3 400" >>mdev.testdir/etc/mdev.conf +testing "mdev \$ENVVAR=regex match" \ + "env - PATH=$PATH ACTION=add DEVPATH=/block/sda MODALIAS=qwe chroot mdev.testdir /mdev 2>&1; + ls -ln mdev.testdir/dev | $FILTER_LS" \ +"\ +br--r--r-- 1 2 2 8,0 sda +" \ + "" "" + +# continuing to use directory structure from prev test +rm -rf mdev.testdir/dev/* echo "sda 0:0 444 >disk/scsiA" >mdev.testdir/etc/mdev.conf testing "mdev move/symlink rule '>bar/baz'" \ "env - PATH=$PATH ACTION=add DEVPATH=/block/sda chroot mdev.testdir /mdev 2>&1; |