chiark / gitweb /
[PATCH] remove limit of the number of args passed to PROGRAM
[elogind.git] / test / udev-test.pl
index 6e031c4c2c3a7876478984a8d651d0afd4f31f72..a3bf768fe3d1d71cd69c6a4781e62620c3150ff4 100644 (file)
@@ -191,6 +191,15 @@ EOF
                expected => "Major:8:minor:3:kernelnumber:3:bus:0:0:0:0" ,
                conf     => <<EOF
 BUS="scsi", PLACE="0:0:0:0", NAME="Major:%M:minor:%m:kernelnumber:%n:bus:%b"
+EOF
+       },
+       {
+               desc     => "old style SYSFS_ attribute",
+               subsys   => "block",
+               devpath  => "block/sda",
+               expected => "good" ,
+               conf     => <<EOF
+BUS="scsi", SYSFS_vendor="IBM-ESXS", NAME="good"
 EOF
        },
        {
@@ -232,6 +241,15 @@ EOF
                expected => "escape-3" ,
                conf     => <<EOF
 BUS="scsi", PROGRAM="/bin/echo -n escape-%%n", KERNEL="sda3", NAME="%c"
+EOF
+       },
+       {
+               desc     => "program with lots of arguments",
+               subsys   => "block",
+               devpath  => "block/sda/sda3",
+               expected => "foo9" ,
+               conf     => <<EOF
+BUS="scsi", PROGRAM="/bin/echo -n foo3 foo4 foo5 foo6 foo7 foo8 foo9", KERNEL="sda3", NAME="%c{7}"
 EOF
        },
        {