diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-07-12 12:52:56 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-07-12 12:52:56 +0200 |
commit | 0cd4ac473a51577e33e700beccb3479e5565d661 (patch) | |
tree | de636b6ac44f4f5a67156e3f8c80bb7d666565e7 /test | |
parent | cbbde2ba6c19d6515f09a2ed0955eb2808c91198 (diff) |
allow multiple values to be matched with KEY=="value1|value2"
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'test')
-rwxr-xr-x | 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 873780d70a..e8cb7c48a9 100755 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -1452,6 +1452,27 @@ KERNEL=="ttyUSB[0-9]*", NAME="" KERNEL=="ttyUSB[0-9]*", NAME="wrong" EOF }, + { + desc => "test multi matches", + subsys => "tty", + devpath => "/class/tty/ttyUSB0", + exp_name => "right", + rules => <<EOF +KERNEL=="ttyUSB*|nothing", NAME="right" +KERNEL=="ttyUSB*", NAME="wrong" +EOF + }, + { + desc => "test multi matches 2", + subsys => "tty", + devpath => "/class/tty/ttyUSB0", + exp_name => "right", + rules => <<EOF +KERNEL=="dontknow*|*nothing", NAME="nomatch" +KERNEL=="dontknow*|ttyUSB*|nothing*", NAME="right" +KERNEL=="ttyUSB*", NAME="wrong" +EOF + }, ); # set env |