summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-04 19:21:31 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:06 -0700
commit83be97ba211c4f69e7fd9f16f57ca7210a116a7d (patch)
tree252b685f9c616025d04b5981c66dda9e1e1187c1 /test
parent28d6536a0fff341bb3e307ad1abc30df57635f30 (diff)
[PATCH] pattern match for label method
switch LABEL search to pattern match add a test for pattern match in LABEL remove useless rule from udev.rules
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 97f75edc94..b1757ee1bb 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -52,6 +52,18 @@ LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="boot_disk%n"
EOF
},
{
+ desc => "label test of pattern match",
+ subsys => "block",
+ devpath => "block/sda/sda1",
+ expected => "boot_disk1" ,
+ conf => <<EOF
+LABEL, BUS="scsi", vendor="?IBM-ESXS", NAME="boot_disk%n-1"
+LABEL, BUS="scsi", vendor="IBM-ESXS?", NAME="boot_disk%n-2"
+LABEL, BUS="scsi", vendor="IBM-ES??", NAME="boot_disk%n"
+LABEL, BUS="scsi", vendor="IBM-ESXSS", NAME="boot_disk%n-3"
+EOF
+ },
+ {
desc => "catch device by *",
subsys => "tty",
devpath => "class/tty/ttyUSB0",