diff options
Diffstat (limited to 'test/lsrc-excludes.t')
-rw-r--r-- | test/lsrc-excludes.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lsrc-excludes.t b/test/lsrc-excludes.t new file mode 100644 index 0000000..de63840 --- /dev/null +++ b/test/lsrc-excludes.t @@ -0,0 +1,20 @@ + $ . "$TESTDIR/helper.sh" + +Should exclude items with -x + + $ touch .dotfiles/example + > touch .dotfiles/excluded + + $ lsrc -x excluded + /*/.example:/*/.dotfiles/example (glob) + +Should accept directory:file syntax + + $ mkdir .other-dotfiles + > touch .other-dotfiles/included + > touch .other-dotfiles/excluded + + $ lsrc -d .dotfiles -d .other-dotfiles -x other-dotfiles:excluded + /*/.example:/*/.dotfiles/example (glob) + /*/.excluded:/*/.dotfiles/excluded (glob) + /*/.included:/*/.other-dotfiles/included (glob) |