chiark / gitweb /
[PATCH] add test for callout rule with a device that has no bus.
[elogind.git] / test / udev-test.pl
index 3e7068faa6d84f0d3643b09a19ee7117375e2c22..ea1d8611efa6f377966c87d30dd7657d62e9d11e 100644 (file)
@@ -212,6 +212,16 @@ EOF
                expected => "link1" ,
                conf     => <<EOF
 CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n node link1 link2", ID="node *", NAME="%1c", SYMLINK="%2c %3c"
+EOF
+       },
+       {
+               desc     => "callout for device with no bus",
+               subsys   => "tty",
+               devpath  => "class/tty/console",
+               expected => "TTY" ,
+               conf     => <<EOF
+CALLOUT, BUS="scsi", PROGRAM="/bin/echo -n foo", ID="foo", NAME="foo"
+REPLACE, KERNEL="console", NAME="TTY"
 EOF
        },
        {