aboutsummaryrefslogtreecommitdiff
path: root/tests/wildcard/testscript
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-03-10 00:14:00 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-03-13 14:45:32 +0300
commitdc2c25e3f3182e8181a15487de4befca74a1ffec (patch)
treeb83cfb83188abd2c361f9eb839cc3600fb1f8f44 /tests/wildcard/testscript
parent870da718e38555352343a46ce02fb46d5eb3a365 (diff)
Add flexibility to path search callback function
Diffstat (limited to 'tests/wildcard/testscript')
-rw-r--r--tests/wildcard/testscript178
1 files changed, 178 insertions, 0 deletions
diff --git a/tests/wildcard/testscript b/tests/wildcard/testscript
index 4a6c532..48159e2 100644
--- a/tests/wildcard/testscript
+++ b/tests/wildcard/testscript
@@ -388,4 +388,182 @@
}
}
}
+
+ : dot-started
+ :
+ {
+ +mkdir -p z/.z/.z z/z a/.z .a/.z
+ +touch z/.z.cxx z/z.cxx z/.z/.z.cxx z/.z/z.cxx z/z/.z.cxx z/z/z.cxx \
+ a/z.cxx a/.z.cxx .a/z.cxx .a/.z.cxx
+
+ wd=../../..
+
+ : recursive
+ :
+ {
+ : simple
+ :
+ {
+ : file
+ :
+ $* *z**.cxx $wd >>/EOO
+ a/z.cxx
+ z/z.cxx
+ z/z/z.cxx
+ EOO
+
+ : dot-leading-file
+ :
+ $* .z**.cxx $wd >>/EOO
+ a/.z.cxx
+ z/.z.cxx
+ z/z/.z.cxx
+ EOO
+
+ : dir
+ :
+ $* **z/ $wd >>/EOO
+ z/
+ z/z/
+ EOO
+
+ : dot-leading-dir
+ :
+ $* .**z/ $wd >>/EOO
+ a/.z/
+ z/.z/
+ EOO
+ }
+
+ : z-compound
+ :
+ {
+ : not-dot-leading
+ :
+ $* **z/*z.cxx $wd >>/EOO
+ z/z.cxx
+ z/z/z.cxx
+ EOO
+
+ : dot-leading
+ :
+ $* .z**/*z.cxx $wd >>/EOO
+ z/.z/z.cxx
+ EOO
+ }
+
+ : compound
+ :
+ {
+ : not-dot-leading
+ :
+ $* **/*z.cxx $wd >>/EOO
+ a/z.cxx
+ z/z.cxx
+ z/z/z.cxx
+ EOO
+
+ : dot-leading
+ :
+ $* .**/*z.cxx $wd >>/EOO
+ .a/z.cxx
+ z/.z/z.cxx
+ EOO
+ }
+
+ : self
+ :
+ {
+ : not-dot-leading
+ :
+ $* *z***/*z.cxx $wd/z >>/EOO
+ z.cxx
+ z/z.cxx
+ EOO
+
+ : dot-leading
+ :
+ $* .z***/*z.cxx $wd/z >>/EOO
+ .z/z.cxx
+ EOO
+ }
+ }
+
+ : immediate
+ :
+ {
+ : simple
+ :
+ {
+ : file
+ :
+ $* *z*.cxx $wd/z >>/EOO
+ z.cxx
+ EOO
+
+ : dot-leading-file
+ :
+ $* .z*.cxx $wd/z >>/EOO
+ .z.cxx
+ EOO
+
+ : file-dot-leading-start
+ :
+ $* *z*.cxx $wd/z/.z >>/EOO
+ z.cxx
+ EOO
+
+ : dot-leading-file-dot-leading-start
+ :
+ $* .z*.cxx $wd/z/.z >>/EOO
+ .z.cxx
+ EOO
+
+ : dir
+ :
+ $* *z/ $wd/ >>/EOO
+ z/
+ EOO
+
+ : dot-leading-dir
+ :
+ $* .*z/ $wd/z >>/EOO
+ .z/
+ EOO
+ }
+
+ : z-compound
+ :
+ {
+ : not-dot-leading
+ :
+ $* *z/*z.cxx $wd/z >>/EOO
+ z/z.cxx
+ EOO
+
+ : dot-leading
+ :
+ $* .z*/*z.cxx $wd/z >>/EOO
+ .z/z.cxx
+ EOO
+ }
+
+ : compound
+ :
+ {
+ : not-dot-leading
+ :
+ $* */*z.cxx $wd >>/EOO
+ a/z.cxx
+ z/z.cxx
+ EOO
+
+ : dot-leading
+ :
+ $* .*/*z.cxx $wd >>/EOO
+ .a/z.cxx
+ EOO
+ }
+ }
+ }
}