diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/lsrc-globs.t | 7 | ||||
-rw-r--r-- | test/lsrc-undotted-star.t | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/lsrc-globs.t b/test/lsrc-globs.t new file mode 100644 index 0000000..cf04385 --- /dev/null +++ b/test/lsrc-globs.t @@ -0,0 +1,7 @@ + $ . "$TESTDIR/helper.sh" + +Keeps globs as globs + + $ mkdir vimulator + > lsrc -vvv -x '*vim*' 2>&1 | grep exclude_file_globs + exclude_file_globs: *vim* diff --git a/test/lsrc-undotted-star.t b/test/lsrc-undotted-star.t new file mode 100644 index 0000000..04db053 --- /dev/null +++ b/test/lsrc-undotted-star.t @@ -0,0 +1,14 @@ + $ . "$TESTDIR/helper.sh" + +Should undot files with -U, with wildcard * expansion + + $ touch .dotfiles/example + > touch .dotfiles/undotted + + $ lsrc -v -U '*' + /*/example:/*/.dotfiles/example (glob) + /*/undotted:/*/.dotfiles/undotted (glob) + + $ lsrc -v -U '*:*' + /*/example:/*/.dotfiles/example (glob) + /*/undotted:/*/.dotfiles/undotted (glob) |