]> err.no Git - systemd/commitdiff
[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 ee2f4e691eca25b20b8d897f18b6c838b70f2408..3f48de8f3eaa7624df7441e37ecfeca67fc096c3 100644 (file)
@@ -124,6 +124,17 @@ EOF
                expected => "lun0/part2" ,
                conf     => <<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
        },
 );