chiark / gitweb /
[PATCH] add test for checking the BUS value.
authorgreg@kroah.com <greg@kroah.com>
Thu, 27 Nov 2003 01:45:26 +0000 (17:45 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:04 +0000 (21:13 -0700)
test/udev-test.pl

index ee2f4e6..3f48de8 100644 (file)
@@ -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