summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-12 06:52:55 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:25:38 -0700
commit6818c51d7abeab9914eb7193968b1efa9459a853 (patch)
treef05af9087f42f67bff00f71778cf3f9dc80323b1 /test/udev-test.pl
parent02fa9ae58920b431bc37182716dd863f1c482651 (diff)
[PATCH] support SUBSYSTEM as a rule key
This should make it easier to catch e.g all block or net devices with a single rule.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 2ba63fe83f..5f6f864df2 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1104,6 +1104,17 @@ EOF
KERNEL="sda", NAME="cdrom%e"
EOF
},
+ {
+ desc => "SUBSYSTEM test",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "node",
+ conf => <<EOF
+BUS="scsi", KERNEL="sda", NAME="should_not_match", SUBSYSTEM="vc"
+BUS="scsi", KERNEL="sda", NAME="node", SUBSYSTEM="block"
+BUS="scsi", KERNEL="sda", NAME="should_not_match2", SUBSYSTEM="vc"
+EOF
+ },
);
# set env