aboutsummaryrefslogtreecommitdiff
path: root/tests/name
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-09 12:47:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2018-08-09 12:47:27 +0200
commit8150086c0ef168f48193ddc03b8c75e96e96d581 (patch)
tree9599cdd5f721a55841b2d9d2739f7d6ba5495070 /tests/name
parent67b36b32e19e17db9b1e5c72deb8db7202a0f41b (diff)
Add support for name patterns without wildcard characters
In particular, this allows the "if-exists" specification of prerequisites, for example: for t: $tests exe{$t}: cxx{$t} test{+$t}
Diffstat (limited to 'tests/name')
-rw-r--r--tests/name/pattern.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/name/pattern.test b/tests/name/pattern.test
index fad8478..8d8840c 100644
--- a/tests/name/pattern.test
+++ b/tests/name/pattern.test
@@ -107,7 +107,7 @@ EOI
$* <'print d*/*.txt' >/'dir/foo.txt' : multi-pattern
touch foo.txt bar.txt;
- $* <'print {*.txt -bar.txt}' >'foo.txt' : exclude-match
+ $* <'print {*.txt -bar.txt}' >'foo.txt' : exclude-non-pattern
mkdir baz;
touch foo.txt bar.txt baz/fox.txt baz/box.txt;
@@ -117,7 +117,7 @@ EOI
$* <'print {*.txt -{*z.txt bar.txt}}' >'foo.txt' : exclude-group
touch bar.txt;
- $* <'print {f*.txt +bar.txt}' >'bar.txt' : include-match
+ $* <'print {f*.txt +bar.txt}' >'bar.txt' : include-non-wildcard
touch bar.txt;
$* <'print {f*.txt +b*.txt}' >'bar.txt' : include-pattern
@@ -127,6 +127,9 @@ EOI
touch foo.txt fox.txt;
$* <'print {*.txt -f*.txt +*x.txt}' >'fox.txt' : include-exclude-order
+
+ touch foo.txt;
+ $* <'print {+foo.txt} {+bar.txt}' >'foo.txt' : non-wildcard
}
: target-type