chiark / gitweb /
[PATCH] add test for format chars in multiple symlinks to replace
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>
Sat, 30 Oct 2004 11:29:52 +0000 (13:29 +0200)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 05:08:27 +0000 (22:08 -0700)
test/udev-test.pl

index a7becf9..2b9fa8a 100644 (file)
@@ -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",