diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-15 06:49:32 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-09-15 16:09:26 +0200 |
commit | 5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e (patch) | |
tree | 726c2a179ea1dcbfa296be9348d7becceb9dd35d /test/units | |
parent | udev-rules: embed UdevRuleToken.attr_match_remove_trailing_whitespace flag in... (diff) | |
download | systemd-5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e.tar.xz systemd-5f5c5c48b9edd3f2aa634d0d8e40ff77e116879e.zip |
udev-rules: support case insensitive match
This introduces 'i' prefix for match string. When specified, string or
pattern will match case-insensitively.
Closes #34359.
Co-authored-by: Ryan Wilson <ryantimwilson@meta.com>
Diffstat (limited to 'test/units')
-rwxr-xr-x | test/units/TEST-17-UDEV.11.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/units/TEST-17-UDEV.11.sh b/test/units/TEST-17-UDEV.11.sh index 42b925f60b..8413d3c189 100755 --- a/test/units/TEST-17-UDEV.11.sh +++ b/test/units/TEST-17-UDEV.11.sh @@ -237,6 +237,8 @@ test_syntax_error 'ENV=="b"' 'Invalid attribute for ENV.' test_syntax_error 'ENV{a}-="b"' 'Invalid operator for ENV.' test_syntax_error 'ENV{a}:="b"' "ENV key takes '==', '!=', '=', or '+=' operator, assuming '='." test_syntax_error 'ENV{ACTION}="b"' "Invalid ENV attribute. 'ACTION' cannot be set." +test_syntax_error 'ENV{a}=i"b"' "Invalid prefix 'i' for 'ENV'. The 'i' prefix can be specified only for '==' or '!=' operator." +test_syntax_error 'ENV{a}+=i"b"' "Invalid prefix 'i' for 'ENV'. The 'i' prefix can be specified only for '==' or '!=' operator." test_syntax_error 'CONST=="b"' 'Invalid attribute for CONST.' test_syntax_error 'CONST{a}=="b"' 'Invalid attribute for CONST.' test_syntax_error 'CONST{arch}="b"' 'Invalid operator for CONST.' @@ -275,10 +277,12 @@ test_syntax_error 'TEST{0644}="b"' 'Invalid operator for TEST.' test_syntax_error 'PROGRAM{a}=="b"' 'Invalid attribute for PROGRAM.' test_syntax_error 'PROGRAM-="b"' 'Invalid operator for PROGRAM.' test_syntax_error 'PROGRAM=="%", NAME="b"' 'Invalid value "%" for PROGRAM (char 1: invalid substitution type), ignoring.' +test_syntax_error 'PROGRAM==i"b"' "Invalid prefix 'i' for PROGRAM." test_syntax_error 'IMPORT="b"' 'Invalid attribute for IMPORT.' test_syntax_error 'IMPORT{a}="b"' 'Invalid attribute for IMPORT.' test_syntax_error 'IMPORT{a}-="b"' 'Invalid operator for IMPORT.' test_syntax_error 'IMPORT{file}=="%", NAME="b"' 'Invalid value "%" for IMPORT (char 1: invalid substitution type), ignoring.' +test_syntax_error 'IMPORT{file}==i"a", NAME="b"' "Invalid prefix 'i' for IMPORT." test_syntax_error 'IMPORT{builtin}!="foo"' 'Unknown builtin command: foo' test_syntax_error 'RESULT{a}=="b"' 'Invalid attribute for RESULT.' test_syntax_error 'RESULT:="b"' 'Invalid operator for RESULT.' |