chiark / gitweb /
[PATCH] added ability to put format specifiers in the CALLOUT program string.
[elogind.git] / test / udev-test.pl
index 613aa792d433f8bbf6cb29ff608e9de5245eaa17..02f8ff6319218f1c9c5e464d537b994b96af81d2 100644 (file)
@@ -90,6 +90,15 @@ CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n special-device", ID="special--*", NAM
 CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n special-device", ID="special-device-", NAME="%c-3-%n"
 CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n special-device", ID="special-devic", NAME="%c-4-%n"
 CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n special-device", ID="special-*", NAME="%c-%n"
+EOF
+       },
+       {
+               desc     => "callout program subtitution",
+               subsys   => "block",
+               devpath  => "block/sda/sda3",
+               expected => "test-0:0:0:0" ,
+               conf     => <<EOF
+CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n test-%b", ID="test-*", NAME="%c"
 EOF
        },
 );