summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-08-16 12:45:31 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-16 12:45:31 +0200
commit03f65fe6a9cd32a5861b1a929cdf4f7eddbd593f (patch)
treeed5297ceae0511ba4a31bb92dd312da7c7136358 /test/udev-test.pl
parent88b74dc69226ff64e5ab7a80077f331729202083 (diff)
accept relative path for TEST
Diffstat (limited to 'test/udev-test.pl')
-rwxr-xr-xtest/udev-test.pl28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 53499d8871..fe1c6da4f9 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1570,6 +1570,34 @@ 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
+ },
);
# set env