summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-10-30 13:29:52 +0200
committerGreg KH <gregkh@suse.de>2005-04-26 22:08:27 -0700
commit2b0f835ccc67ae3209bc89be22cedfc8341ab5e3 (patch)
treefd29a37549ad29dd8003f44d8614a67c0669cc1b /test
parent6628a2ea38112451218fc21aec40db6ff7de8d63 (diff)
[PATCH] add test for format chars in multiple symlinks to replace
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index a7becf99df..2b9fa8a238 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -780,6 +780,16 @@ KERNEL="i2c-fake2", NAME="node"
EOF
},
{
+ desc => "multiple symlinks with format char",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "symlink2-ttyUSB0",
+ exp_target => "ttyUSB0",
+ conf => <<EOF
+KERNEL="ttyUSB[0-9]*", NAME="ttyUSB%n", SYMLINK="symlink1-%n symlink2-%k symlink3-%b"
+EOF
+ },
+ {
desc => "symlink creation (same directory)",
subsys => "tty",
devpath => "/class/tty/ttyUSB0",