aboutsummaryrefslogtreecommitdiff
path: root/tests/name/pattern.testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-09-05 00:00:14 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-09-05 11:38:25 +0300
commit9c0dc1f4957420688cf2c1afe79fa2f53f2a6abf (patch)
tree04f37bc105817be5399b060c05afb63d6c7e5a28 /tests/name/pattern.testscript
parent58a05fc84029acdb711b40cf2cee09a0b2202bf7 (diff)
Create .buildignore file in testscript root working directory
Diffstat (limited to 'tests/name/pattern.testscript')
-rw-r--r--tests/name/pattern.testscript15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/name/pattern.testscript b/tests/name/pattern.testscript
index d40e3a4..1c9d6f5 100644
--- a/tests/name/pattern.testscript
+++ b/tests/name/pattern.testscript
@@ -181,6 +181,21 @@ EOI
$* <'print .*/*.txt' >/'.dir/foo.txt' : dir-interm-incl
}
+: buildignore
+:
+: Test filtering of a directory and its sub-entries if it contains the
+: .buildignore file.
+:
+{
+ mkdir dir1 dir2;
+ touch dir2/.buildignore;
+ $* <'print */' >/'dir1/' : self-excl
+
+ mkdir dir1 dir2;
+ touch dir1/foo dir2/foo dir2/.buildignore;
+ $* <'print f**' >/'dir1/foo' : sub-entry-excl
+}
+
: expansion
:
: Test interaction with expansion/concatenation/re-parse.