chiark / gitweb /
hopefully fix up the symlinks in the test directory
[elogind.git] / test / udev-test.pl
index 91e91bb2ae34bd7ea6129ba94996cfb40aa29104..3172d3302fe8133a04d8a833f3e637414ee20142 100644 (file)
@@ -418,6 +418,7 @@ EOF
                subsys          => "block",
                devpath         => "/block/sda",
                exp_name        => "boot_disk15" ,
+               exp_majorminor  => "8:15",
                rules           => <<EOF
 BUS=="scsi", SYSFS{vendor}=="IBM-ESXS", NAME{all_partitions}="boot_disk"
 EOF
@@ -1278,6 +1279,19 @@ EOF
                rules           => <<EOF
 KERNEL=="sda", NAME="ok", RUN+="/bin/ln -s ok %r/testsymlink"
 KERNEL=="sda", NAME="not-ok"
+EOF
+       },
+       {
+               desc            => "test RUN key and DEVNAME",
+               subsys          => "block",
+               devpath         => "/block/sda",
+               exp_name        => "testsymlink",
+               exp_target      => "ok",
+               exp_rem_error   => "yes",
+               option          => "clean",
+               rules           => <<EOF
+KERNEL=="sda", NAME="ok", RUN+="/bin/sh -c 'ln -s `basename \$DEVNAME` %r/testsymlink'"
+KERNEL=="sda", NAME="not-ok"
 EOF
        },
        {