summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-12-22 22:32:06 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:10 -0700
commit358c8c20239a314b4684c54485c526deaf36dd3b (patch)
treeefde6fed5d068505922e37977126d080f87d43d9 /test/udev-test.pl
parenta8b01705c6204c660062cb6abc8fe7dbb8a42197 (diff)
[PATCH] add tests for multi-file LABEL rules.
Diffstat (limited to 'test/udev-test.pl')
-rw-r--r--test/udev-test.pl20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 7afbd0d6fc..4773954b9c 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -64,6 +64,26 @@ LABEL, BUS="scsi", SYSFS_vendor="IBM-ESXSS", NAME="boot_disk%n-3"
EOF
},
{
+ desc => "label test of multiple sysfs files",
+ subsys => "block",
+ devpath => "block/sda/sda1",
+ expected => "boot_disk1" ,
+ conf => <<EOF
+LABEL, BUS="scsi", SYSFS_vendor="IBM-ESXS", SYSFS_model="ST336605LW !#", NAME="boot_diskX%n"
+LABEL, BUS="scsi", SYSFS_vendor="IBM-ESXS", SYSFS_model="ST336605LW !#", NAME="boot_disk%n"
+EOF
+ },
+ {
+ desc => "label test of max sysfs files",
+ subsys => "block",
+ devpath => "block/sda/sda1",
+ expected => "boot_disk1" ,
+ conf => <<EOF
+LABEL, BUS="scsi", SYSFS_vendor="IBM-ESXS", SYSFS_model="ST336605LW !#", SYSFS_scsi_level="4", SYSFS_rev="B245", SYSFS_type="2", SYSFS_queue_depth="32", NAME="boot_diskXX%n"
+LABEL, BUS="scsi", SYSFS_vendor="IBM-ESXS", SYSFS_model="ST336605LW !#", SYSFS_scsi_level="4", SYSFS_rev="B245", SYSFS_type="0", NAME="boot_disk%n"
+EOF
+ },
+ {
desc => "catch device by *",
subsys => "tty",
devpath => "class/tty/ttyUSB0",