diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-23 00:23:23 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2018-11-30 17:13:11 +0300 |
commit | abfee51c362cb1ed2e8eb62fec12b3eb5ca03fb0 (patch) | |
tree | 3f08e73ecc447a9d05d340eeab169affb9e517b6 /tests/wildcard/testscript | |
parent | b55143ecaa986aa3ba93dc6a078ed7d9cf495b1c (diff) |
Add match_absent flag for path_{search,match}() functions
Diffstat (limited to 'tests/wildcard/testscript')
-rw-r--r-- | tests/wildcard/testscript | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/tests/wildcard/testscript b/tests/wildcard/testscript index 0129809..885a7d5 100644 --- a/tests/wildcard/testscript +++ b/tests/wildcard/testscript @@ -1150,4 +1150,85 @@ } } } + + : ignorable-components + : + { + test.options += -i + + : middle + : + { + $* a/*/b a/b >/ a/b + $* a/*/b a/x/b >/ a/x/b + $* a/**/b a/b >/ a/b + $* a/**/b a/x/b >/ a/x/b + + $* a/***/b a/b >>/EOE + a/b + a/b + EOE + } + + : top-level + : + if ($cxx.target.class != 'windows') + { + $* -n /*/a /a > /a + $* -n /*/a /b/a > /b/a + } + + : leading + : + { + $* -n */a a >/ a + $* -n */a b/a >/ b/a + } + + : trailing + : + { + : file + : + { + $* -n a/* a >/ a + $* -n a/* a/b >/ a/b + + $* -n a/* a/ == 1 + $* -n a/* a/b/ == 1 + } + + : dir + : + { + $* -n a/*/ a/ >/ a/ + $* -n a/*/ a/b >/ a/ + + $* -n a/*/ a/b/ >>/EOE + a/b/ + a/ + EOE + + $* -n a/*/ a == 1 + } + } + + : leading-trailing + { + $* -n */* a >/ a + $* -n */* a/b >/ a/b + + $* -n */a/* a >/ a + $* -n */a/* a/b >/ a/b + $* -n */a/* b/a >/ b/a + $* -n */a/* c/a/b >/ c/a/b + + $* -n **/a/** a >/ a + $* -n **/a/** a/b/c/d >/ a/b/c/d + $* -n **/a/** d/c/b/a >/ d/c/b/a + $* -n **/a/** d/c/b/a/b/c/d >/ d/c/b/a/b/c/d + } + + + } } |