summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-12-20 07:38:33 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:19:09 -0700
commit9f8dfa19cfd2b502bf794f39a421cbb7c4cc0404 (patch)
treeb91b9ebebd7a08a722d60495af2a2b594dd50d0e /test
parenta07dc29e602440541ce531e03737bc1f926a0ef3 (diff)
[PATCH] allow multiline rules by backslash at the end of the line
On Sun, 2004-12-19 at 18:31 +0100, Marco d'Itri wrote: > > On Dec 19, Kay Sievers <kay.sievers@vrfy.org> wrote: > > > (Feature request: would it be possible to extend the rules files parser > > to support continuation lines? I'd like it to consider lines starting > > with white space as part of the previous line.) > > How about the usual backslash at the end of the line. Here is a simple > patch.
Diffstat (limited to 'test')
-rw-r--r--test/udev-test.pl30
1 files changed, 30 insertions, 0 deletions
diff --git a/test/udev-test.pl b/test/udev-test.pl
index 9a581ce527..53eee35457 100644
--- a/test/udev-test.pl
+++ b/test/udev-test.pl
@@ -190,6 +190,36 @@ KERNEL="ttyUSB0", NAME="visor"
EOF
},
{
+ desc => "Handle backslashed multi lines in config file (and replace kernel name)",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "visor" ,
+ conf => <<EOF
+KERNEL="ttyUSB0", \\
+NAME="visor"
+
+EOF
+ },
+ {
+ desc => "Handle stupid backslashed multi lines in config file (and replace kernel name)",
+ subsys => "tty",
+ devpath => "/class/tty/ttyUSB0",
+ exp_name => "visor" ,
+ conf => <<EOF
+
+#
+\\
+
+\\\\
+
+#\\
+
+KERNEL="ttyUSB0", \\
+NAME="visor"
+
+EOF
+ },
+ {
desc => "subdirectory handling",
subsys => "tty",
devpath => "/class/tty/ttyUSB0",