summaryrefslogtreecommitdiff
path: root/test/udev-test.pl
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2003-11-26 17:45:26 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:04 -0700
commit772558f4e9e981ca8f68026457589784028c730b (patch)
treef47843241fec0c65149c26ea21a5e8f2968da87d /test/udev-test.pl
parent137af0cc47a387b91f1216e7a888db54257d51e3 (diff)
[PATCH] add test for checking the BUS value.
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 ee2f4e691e..3f48de8f3e 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -126,6 +126,17 @@ EOF
LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="lun0/%D"
EOF
},
+ {
+ desc => "callout bus type",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "scsi-0:0:0:0" ,
+ conf => <<EOF
+CALLOUT, BUS="usb", PROGRAM="/bin/echo -n usb-%b", ID="*", NAME="%c"
+CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n scsi-%b", ID="*", NAME="%c"
+CALLOUT, BUS="foo", PROGRAM="/bin/echo -n foo-%b", ID="*", NAME="%c"
+EOF
+ },
);
# set env