chiark / gitweb /
[PATCH] add support for figuring out which device on the sysfs "chain" the rule appli...
[elogind.git] / test / udev-test.pl
index 5e5756b6606d20e2a37d76ee7e4057b287c4ab82..0700e535767ef79d9115bede4e9d0a9405b8d1c5 100644 (file)
@@ -261,24 +261,6 @@ EOF
                conf     => <<EOF
 SYSFS_dev="5:1", NAME="foo"
 KERNEL="console", NAME="TTY"
-EOF
-       },
-       {
-               desc     => "devfs disk naming substitution",
-               subsys   => "block",
-               devpath  => "block/sda",
-               expected => "lun0/disc" ,
-               conf     => <<EOF
-BUS="scsi", SYSFS_vendor="IBM-ESXS", NAME="lun0/%D"
-EOF
-       },
-       {
-               desc     => "devfs disk naming substitution",
-               subsys   => "block",
-               devpath  => "block/sda/sda2",
-               expected => "lun0/part2" ,
-               conf     => <<EOF
-BUS="scsi", SYSFS_vendor="IBM-ESXS", NAME="lun0/%D"
 EOF
        },
        {
@@ -335,6 +317,15 @@ EOF
                expected => "second-0" ,
                conf     => <<EOF
 KERNEL="ttyUSB0", NAME="visor", SYMLINK="first-%n second-%n third-%n"
+EOF
+       },
+       {
+               desc     => "sysfs parent heirachy",
+               subsys   => "tty",
+               devpath  => "class/tty/ttyUSB0",
+               expected => "visor" ,
+               conf     => <<EOF
+SYSFS_idProduct="2008", NAME="visor"
 EOF
        },
 );