summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-16 07:46:31 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-16 07:46:31 +0200
commit594dd610252923591ed0f310695e82d3fb87e581 (patch)
tree7dc290f161526aca177dfac7934842e6a6d281c1 /test
parentc609f627fae97bef5f163eb2eb993d3c8211f768 (diff)
allow rules to have labels and skip to next label
This will allow us to have whole blocks of rules to skip conditionally. The following section creates the node "yes": GOTO="TEST" NAME="no" NAME="no2", LABEL="NO" NAME="yes", LABEL="TEST" NAME="no3"
Diffstat (limited to 'test')
-rwxr-xr-xtest/udev-test.pl13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 1bb60bb76e..94cffeab07 100755
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -1494,6 +1494,19 @@ EOF
KERNEL=="sda1", IMPORT{parent}="PARENT*", NAME="parentenv-\$env{PARENT_KEY}\$env{WRONG_PARENT_KEY}"
EOF
},
+ {
+ desc => "GOTO test",
+ subsys => "block",
+ devpath => "/block/sda/sda1",
+ exp_name => "right",
+ rules => <<EOF
+KERNEL=="sda1", GOTO="TEST"
+KERNEL=="sda1", NAME="wrong"
+KERNEL=="sda1", NAME="", LABEL="NO"
+KERNEL=="sda1", NAME="right", LABEL="TEST"
+KERNEL=="sda1", NAME="wrong2"
+EOF
+ },
);
# set env