summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-04-04 15:20:48 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 23:55:00 -0700
commitf040a4a271dd093413303158efb027fe9e891e80 (patch)
tree52e32553619dfacd30ece3e424e0e36a96693d33 /test/udev-test.pl
parent5165d1dcb71899aca01783e9edc4ad11528acab9 (diff)
[PATCH] udev-test.pl: add test for DEVNAME export to RUN environment
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 91e91bb2ae..c1dc8b2f1b 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1281,6 +1281,19 @@ 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
+ },
+ {
desc => "test RUN key remove",
subsys => "block",
devpath => "/block/sda",