summaryrefslogtreecommitdiff
path: root/test/lsrc-excludes.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/lsrc-excludes.t')
-rw-r--r--test/lsrc-excludes.t15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/lsrc-excludes.t b/test/lsrc-excludes.t
index de63840..aa483f1 100644
--- a/test/lsrc-excludes.t
+++ b/test/lsrc-excludes.t
@@ -18,3 +18,18 @@ Should accept directory:file syntax
/*/.example:/*/.dotfiles/example (glob)
/*/.excluded:/*/.dotfiles/excluded (glob)
/*/.included:/*/.other-dotfiles/included (glob)
+
+Should handle excludes with globs
+
+ $ mkdir -p fresh/hola/chao
+ > touch fresh/hola/chao/wo
+ > touch fresh/hola/chao/nemo
+ > touch fresh/hola/tossala
+ > touch fresh/hola/s
+ > touch fresh/s
+
+ $ lsrc -d fresh -x 'hola/chao/*' -x s
+ /*/.hola/tossala:/*/fresh/hola/tossala (glob)
+
+ $ lsrc -d fresh -x 'hola/chao' -x s
+ /*/.hola/tossala:/*/fresh/hola/tossala (glob)