chiark / gitweb /
create_floppy_devices: add tool to create floppy nodes based on sysfs info
[elogind.git] / test / udev-test.pl
index 1bb60bb76e522f57929bf0b818885afbdbb48cb4..94cffeab07d9a2bb9dd77887812dcd5bae5afd55 100755 (executable)
@@ -1492,6 +1492,19 @@ EOF
                option          => "clean",
                rules           => <<EOF
 KERNEL=="sda1", IMPORT{parent}="PARENT*", NAME="parentenv-\$env{PARENT_KEY}\$env{WRONG_PARENT_KEY}"
+EOF
+       },
+       {
+               desc            => "GOTO test",
+               subsys          => "block",
+               devpath         => "/block/sda/sda1",
+               exp_name        => "right",
+               rules           => <<EOF
+KERNEL=="sda1", GOTO="TEST"
+KERNEL=="sda1", NAME="wrong"
+KERNEL=="sda1", NAME="", LABEL="NO"
+KERNEL=="sda1", NAME="right", LABEL="TEST"
+KERNEL=="sda1", NAME="wrong2"
 EOF
        },
 );