summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-02 17:52:26 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:05 -0700
commit0db6d4cc61523ee7f3f627f807c01f86ee2d36ab (patch)
treecfe68f7e66bbc143b35bc6b822e5c6ff605f1a78 /test
parent8cf7ebe8cdf9cb39ca9a60e23c735ab62cd15928 (diff)
[PATCH] catch replace device by wildcard
catch device name by wildcard to support a whole class of devices by just one config line like: REPLACE, KERNEL="tty*", NAME="vc/%n"
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 3f48de8f3e..8b967c353c 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -51,6 +51,15 @@ LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="boot_disk%n"
EOF
},
{
+ desc => "catch device by wildcard",
+ subsys => "tty",
+ devpath => "class/tty/ttyUSB0",
+ expected => "visor/0" ,
+ conf => <<EOF
+REPLACE, KERNEL="ttyUSB*", NAME="visor/%n"
+EOF
+ },
+ {
desc => "replace kernel name",
subsys => "tty",
devpath => "class/tty/ttyUSB0",