diff options
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-x | test/udev-test.pl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 9225352130..c7a99e517d 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -259,6 +259,16 @@ BUS=="scsi", ID=="0:0:0:0", NAME="M%M-m%m-n%n-b%3b-s%3s{vendor}" EOF }, { + desc => "import of shellvalue file", + subsys => "block", + devpath => "/block/sda", + exp_name => "subdir/sys/node" , + rules => <<EOF +BUS=="scsi", IMPORT="test.all", NAME="subdir%E{SYSFSDIR}/node" +KERNEL=="ttyUSB0", NAME="visor" +EOF + }, + { desc => "sustitution of sysfs value (%s{file})", subsys => "block", devpath => "/block/sda", @@ -1375,6 +1385,15 @@ KERNEL=="sda", GROUP="not-ok", MODE="0666", NAME="ok" EOF }, { + desc => "env substitution", + subsys => "block", + devpath => "/block/sda", + exp_name => "node-add-me", + rules => <<EOF +KERNEL=="sda", MODE="0666", NAME="node-\$env{ACTION}-me" +EOF + }, + { desc => "reset list to current value", subsys => "tty", devpath => "/class/tty/ttyUSB0", |