mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-26 06:30:08 +01:00
src/tests: add test for except match spec
This commit is contained in:
parent
1bff602c46
commit
d48904c9a9
1 changed files with 4 additions and 0 deletions
|
|
@ -1235,6 +1235,10 @@ test_match_spec_device (void)
|
|||
NM_MAKE_STRV ("em", "em\\", "em\\*", "em\\1", "em\\11", "em\\2", "em1", "em11", "em2", "em3"),
|
||||
NULL,
|
||||
NM_MAKE_STRV ("em*"));
|
||||
_do_test_match_spec_device ("except:interface-name:em*",
|
||||
NULL,
|
||||
NM_MAKE_STRV ("", "eth", "eth1", "e1"),
|
||||
NM_MAKE_STRV ("em", "em\\", "em\\*", "em\\1", "em\\11", "em\\2", "em1", "em11", "em2", "em3"));
|
||||
_do_test_match_spec_device ("aa,bb,cc\\,dd,e,,",
|
||||
NM_MAKE_STRV ("aa", "bb", "cc,dd", "e"),
|
||||
NULL,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue