X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=test%2Fudev-test.pl;h=38ea0181f6c42b05795a9ce660ea07f31f089d30;hb=d5f91372dd3241f8b4bbe2a99aaaeda541a76bad;hp=a3bf768fe3d1d71cd69c6a4781e62620c3150ff4;hpb=dde05ccb8d423fbc5c29f54b0c1b545938c8f151;p=elogind.git diff --git a/test/udev-test.pl b/test/udev-test.pl index a3bf768fe..38ea0181f 100644 --- a/test/udev-test.pl +++ b/test/udev-test.pl @@ -191,6 +191,15 @@ EOF expected => "Major:8:minor:3:kernelnumber:3:bus:0:0:0:0" , conf => < "test NAME substitution chars (with length limit)", + subsys => "block", + devpath => "block/sda/sda3", + expected => "M8-m3-n3-b0:0-sIBM" , + conf => < "foo9" , conf => < "characters before the %c{N} substitution", + subsys => "block", + devpath => "block/sda/sda3", + expected => "my-foo9" , + conf => < "substitute the second to last argument", + subsys => "block", + devpath => "block/sda/sda3", + expected => "my-foo8" , + conf => < < "ignore SYSFS attribute whitespace", + subsys => "block", + devpath => "block/sda", + expected => "ignored", + conf => < "do not ignore SYSFS attribute whitespace", + subsys => "block", + devpath => "block/sda", + expected => "matched-with-space", + conf => <