chiark / gitweb /
remove udevstart
[elogind.git] / test / udev-test.pl
index 53499d8871ff49985b3c06518222e2d51305dc9b..fe1c6da4f9391ee4c0459081b1a5a87bb3ea9ec6 100755 (executable)
@@ -1568,6 +1568,34 @@ EOF
                exp_name        => "00:e0:00:fb:04:e1",
                rules           => <<EOF
 KERNEL=="sda", NAME="\$attr{[net/eth0]address}"
+EOF
+       },
+       {
+               desc            => "TEST absolute path",
+               subsys          => "block",
+               devpath         => "/block/sda",
+               exp_name        => "there",
+               rules           => <<EOF
+TEST=="/etc/hosts", NAME="there"
+NAME="notthere"
+EOF
+       },
+       {
+               desc            => "TEST subsys/kernel lookup",
+               subsys          => "block",
+               devpath         => "/block/sda",
+               exp_name        => "yes",
+               rules           => <<EOF
+KERNEL=="sda", TEST=="[net/eth0]", NAME="yes"
+EOF
+       },
+       {
+               desc            => "TEST relative path",
+               subsys          => "block",
+               devpath         => "/block/sda",
+               exp_name        => "relative",
+               rules           => <<EOF
+KERNEL=="sda", TEST=="size", NAME="relative"
 EOF
        },
 );