diff options
Diffstat (limited to 'test/utils.bash')
-rw-r--r-- | test/utils.bash | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/test/utils.bash b/test/utils.bash index 03871f8..653aae4 100644 --- a/test/utils.bash +++ b/test/utils.bash @@ -30,6 +30,30 @@ mkzip() { } app() { - (set -x - run ./app "$@") + echo ./app $@ + run ./app $@ +} + +describe() { + echo "# " $@ >&3 +} + +can_read() { + if [ -r "$1" ] + then + return 0 + else + echo "Can't read $1" + return 1 + fi +} + +can_not_read() { + if [ ! -r "$1" ] + then + return 0 + else + echo "Can read $1" + return 1 + fi } |