diff options
author | greg@kroah.com <greg@kroah.com> | 2003-12-25 00:33:56 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:11 -0700 |
commit | 64682333bb02d946c179bc729da687f6c85bf9e8 (patch) | |
tree | 611ef8460839acc5a9c0732b1646fa2025e00f03 /test | |
parent | 2ae1a0c6f33a2050346269588416e715ed8d4cfa (diff) |
[PATCH] add tests for LABEL rule with a device that has no bus.
Diffstat (limited to 'test')
-rw-r--r-- | test/udev-test.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl index 9538cba2d1..97c0094921 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -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 }, { |