summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGreg KH <greg@press.(none)>2005-07-14 14:13:34 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2005-07-14 14:13:34 -0700
commit39e54555a961fa6c4c8e7d260a0e208439dc0cfa (patch)
tree4e38039e46fd5505c6079f39d056c301b9be7074 /test
parentafd6b4acc8ce76f1187bf852b1404a82047d8f97 (diff)
parent7fe082a8a42baa45ef45d82edde4f893410ebeea (diff)
Merge gregkh@ehlo.org:/home/kay/public_html/pub/scm/linux/hotplug/udev-kay
Diffstat (limited to 'test')
-rwxr-xr-xtest/simple-build-check.sh1
-rwxr-xr-xtest/udev-test.pl42
2 files changed, 43 insertions, 0 deletions
diff --git a/test/simple-build-check.sh b/test/simple-build-check.sh
index c5b429d98d..7e9a940f85 100755
--- a/test/simple-build-check.sh
+++ b/test/simple-build-check.sh
@@ -6,6 +6,7 @@ EXTRAS="\
extras/ata_id \
extras/volume_id \
extras/usb_id \
+ extras/dasd_id \
extras/run_directory"
[ -z "$KERNEL_DIR" ] && KERNEL_DIR=/lib/modules/`uname -r`/build
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 873780d70a..1bb60bb76e 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1452,6 +1452,48 @@ 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
+ },
+ {
+ desc => "IMPORT parent test sequence 1/2 (keep)",
+ subsys => "block",
+ devpath => "/block/sda",
+ exp_name => "parent",
+ option => "keep",
+ rules => <<EOF
+KERNEL=="sda", IMPORT="/bin/echo -e \'PARENT_KEY=parent_right\\nWRONG_PARENT_KEY=parent_wrong'"
+KERNEL=="sda", NAME="parent"
+EOF
+ },
+ {
+ desc => "IMPORT parent test sequence 2/2 (keep)",
+ subsys => "block",
+ devpath => "/block/sda/sda1",
+ exp_name => "parentenv-parent_right",
+ option => "clean",
+ rules => <<EOF
+KERNEL=="sda1", IMPORT{parent}="PARENT*", NAME="parentenv-\$env{PARENT_KEY}\$env{WRONG_PARENT_KEY}"
+EOF
+ },
);
# set env