From 3798db58cfa0e939d0fc1822c9864355c1422cd0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 19 Apr 2009 21:37:07 +0000 Subject: mdev: support $ENVVAR=regex --- testsuite/mdev.tests | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'testsuite') diff --git a/testsuite/mdev.tests b/testsuite/mdev.tests index 388c41d..6d6a21d 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; -- cgit v1.1