chiark / gitweb /
add test for an attribute which contains an operator char
authorKay Sievers <kay.sievers@suse.de>
Sun, 25 Feb 2007 00:06:20 +0000 (01:06 +0100)
committerKay Sievers <kay.sievers@suse.de>
Sun, 25 Feb 2007 00:06:20 +0000 (01:06 +0100)
TODO
test/sys/block/sda/test:colon+plus [new file with mode: 0644]
test/udev-test.pl

diff --git a/TODO b/TODO
index 7afef5fe9d082e8027686f80dc4f549731245ffe..5d5a058e98bbf98119f36a257ccde4c966f457a6 100644 (file)
--- a/TODO
+++ b/TODO
@@ -3,10 +3,12 @@ These things would be nice to have:
     to syslog, so any error logged from the kernel can be associated with
     any of the links at that time
 
     to syslog, so any error logged from the kernel can be associated with
     any of the links at that time
 
+
 These things will change in future udev versions:
   o warn if BUS, ID, SYSFS are used as keys
     (they are SUBSYSTEMS, KERNELS, ATTRS now)
 
 These things will change in future udev versions:
   o warn if BUS, ID, SYSFS are used as keys
     (they are SUBSYSTEMS, KERNELS, ATTRS now)
 
+
 These things are deprecated and scheduled for removal in a future
 udev version:
   o remove old udevdb dump 'udevinfo -d'
 These things are deprecated and scheduled for removal in a future
 udev version:
   o remove old udevdb dump 'udevinfo -d'
diff --git a/test/sys/block/sda/test:colon+plus b/test/sys/block/sda/test:colon+plus
new file mode 100644 (file)
index 0000000..0fed9a5
--- /dev/null
@@ -0,0 +1 @@
+colon
index 73d99297d2d7de09b04869da7336c6848d5387ef..36cbe8ac75ff76d5d920a22ed93bba9315079ae0 100755 (executable)
@@ -1556,8 +1556,17 @@ EOF
                devpath         => "/block/sda/sda1",
                exp_name        => "yes",
                rules           => <<EOF
                devpath         => "/block/sda/sda1",
                exp_name        => "yes",
                rules           => <<EOF
-KERNEL="sda1", NAME=="no"
+KERNEL="sda1", NAME="no"
 KERNEL=="sda1", NAME="yes"
 KERNEL=="sda1", NAME="yes"
+EOF
+       },
+       {
+               desc            => "operator chars in attribute",
+               subsys          => "block",
+               devpath         => "/block/sda",
+               exp_name        => "yes",
+               rules           => <<EOF
+KERNEL=="sda", ATTR{test:colon+plus}=="?*", NAME="yes"
 EOF
        },
        {
 EOF
        },
        {