summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-03-11 01:39:53 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:35:09 -0700
commit0a5417a0ebe92f96fb103399c9aacdf39c719271 (patch)
tree2d87a638663e9d55e179ef9be0cc9f650877f659 /test
parent558f80ba649fb5b8c2ac2a51e464f1aa07aa791d (diff)
[PATCH] "symlink only" test
Here is a test for the "symlink only" rule. Any reason to do the apply_format() inside the loop? I've changed it.
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 7db92691d3..c12a21ee3d 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -513,6 +513,17 @@ BUS="scsi", SYSFS{whitespace_test}="WHITE SPACE ", NAME="wrong-to-ignore"
BUS="scsi", SYSFS{whitespace_test}="WHITE SPACE ", NAME="matched-with-space"
EOF
},
+ {
+ desc => "SYMLINK only rule",
+ subsys => "block",
+ devpath => "block/sda",
+ expected => "symlink-only2",
+ conf => <<EOF
+BUS="scsi", KERNEL="sda", SYMLINK="symlink-only1"
+BUS="scsi", KERNEL="sda", SYMLINK="symlink-only2"
+BUS="scsi", KERNEL="sda", NAME="link", SYMLINK="symlink0"
+EOF
+ },
);
# set env