summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Feblot <devnull@localhost>2015-04-29 22:58:22 +0200
committerAlexandre Feblot <devnull@localhost>2015-04-29 22:58:22 +0200
commitba877dc6c931b63344bf0b0b9648eb911fb3ae00 (patch)
tree7fccdc4b87ddffb341f16469c53125c373c3b4cf
parent991d41d0113e550df938205cfa210ceebeb107d6 (diff)
downloadscons-ba877dc6c931b63344bf0b0b9648eb911fb3ae00.tar.gz
Additional Glob exlude tests
-rw-r--r--test/Glob/exclude.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Glob/exclude.py b/test/Glob/exclude.py
index 7ef06dfa..2348cc29 100644
--- a/test/Glob/exclude.py
+++ b/test/Glob/exclude.py
@@ -50,6 +50,8 @@ env.Concatenate('fa.out', sorted(Glob('f*.in' , exclude=['f2.in', 'f4.*'] ,
env.Concatenate('fb.out', sorted(Glob('f*.in' , exclude=['f2.in', 'f4.*'] , strings=True)))
env.Concatenate('fc.out', sorted(Glob('d?/f*.in', exclude=['d?/f1.*', 'f2.in'], strings=False), key=lambda t: t.path))
env.Concatenate('fd.out', sorted(Glob('d?/f*.in', exclude=['d?/f1.*', 'f2.in'], strings=True)))
+env.Concatenate('fe.out', sorted(Glob('f*.in', exclude=['f1.in'] , strings=True)))
+env.Concatenate('ff.out', sorted(Glob('f*.in', exclude=['other'] , strings=True)))
""")
test.write('f1.in', "f1.in\n")
@@ -72,6 +74,8 @@ test.must_match('fa.out', "f1.in\nf3.in\nf5.in\n")
test.must_match('fb.out', "f1.in\nf3.in\nf5.in\n")
test.must_match('fc.out', "d1/f2.in\nd1/f3.in\nd2/f2.in\nd2/f3.in\n")
test.must_match('fd.out', "d1/f2.in\nd1/f3.in\nd2/f2.in\nd2/f3.in\n")
+test.must_match('fe.out', "f2.in\nf3.in\nf4.in\nf5.in\n")
+test.must_match('ff.out', "f1.in\nf2.in\nf3.in\nf4.in\nf5.in\n")
test.pass_test()