diff options
Diffstat (limited to 'test/app-common.bats')
-rwxr-xr-x | test/app-common.bats | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/app-common.bats b/test/app-common.bats new file mode 100755 index 0000000..d2173f5 --- /dev/null +++ b/test/app-common.bats @@ -0,0 +1,14 @@ +#!/usr/bin/env bats +# vim: set filetype=sh: + +load utils + +@test "grep_path" { + . $APPSH_HOME/lib/common + + x=`grep_path "app-.*" "$APPSH_HOME/test/data/app-common:/does-not-exist"|sort|sed s,$APPSH_HOME/,,|xargs` + [[ $x == "test/data/app-common/app-bar test/data/app-common/app-faz test/data/app-common/app-foo" ]] + + x=`grep_path "app-f.*" "$APPSH_HOME/test/data/app-common:/does-not-exist"|sort|sed s,$APPSH_HOME/,,|xargs` + [[ $x == "test/data/app-common/app-faz test/data/app-common/app-foo" ]] +} |