]> err.no Git - systemd/commitdiff
[PATCH] add tests for LABEL rule with a device that has no bus.
authorgreg@kroah.com <greg@kroah.com>
Thu, 25 Dec 2003 08:33:56 +0000 (00:33 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:11 +0000 (21:13 -0700)
test/udev-test.pl

index 9538cba2d10d6bc28afdd6090ff66899ec3ff789..97c009492124005ae641c5c38fe4bf56b4df56f1 100644 (file)
@@ -231,6 +231,27 @@ EOF
                expected => "foo" ,
                conf     => <<EOF
 CALLOUT, PROGRAM="/bin/echo -n foo", ID="foo", NAME="foo"
+REPLACE, KERNEL="console", NAME="TTY"
+EOF
+       },
+       {
+               desc     => "invalid label for device with no bus",
+               subsys   => "tty",
+               devpath  => "class/tty/console",
+               expected => "TTY" ,
+               conf     => <<EOF
+LABEL, BUS="foo", SYSFS_dev="5:1", NAME="foo"
+REPLACE, KERNEL="console", NAME="TTY"
+EOF
+       },
+       {
+               desc     => "valid label for device with no bus",
+               subsys   => "tty",
+               devpath  => "class/tty/console",
+               expected => "foo" ,
+               conf     => <<EOF
+LABEL, SYSFS_dev="5:1", NAME="foo"
+REPLACE, KERNEL="console", NAME="TTY"
 EOF
        },
        {