chiark / gitweb /
[PATCH] add devfs like tty rules as an example in the default config file.
[elogind.git] / test / udev-test.pl
index 3f48de8f3eaa7624df7441e37ecfeca67fc096c3..8b967c353c6e5c0364433dc786ffd702498e75dd 100644 (file)
@@ -48,6 +48,15 @@ EOF
                expected => "boot_disk1" ,
                conf     => <<EOF
 LABEL, BUS="scsi", vendor="IBM-ESXS", NAME="boot_disk%n"
+EOF
+       },
+       {
+               desc     => "catch device by wildcard",
+               subsys   => "tty",
+               devpath  => "class/tty/ttyUSB0",
+               expected => "visor/0" ,
+               conf     => <<EOF
+REPLACE, KERNEL="ttyUSB*", NAME="visor/%n"
 EOF
        },
        {