diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-17 10:55:23 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2012-10-17 10:55:23 +0200 |
commit | c5401a6d595a595ee16ee6aede55fb016b9cfdfd (patch) | |
tree | 93d9bb33837bc1cea44ba4ca3c8ce9f8882ab523 /test/utils.bash | |
parent | a3ce3f7eabbb746aa9ced430bcd55391742c738b (diff) | |
download | app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.gz app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.bz2 app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.tar.xz app.sh-c5401a6d595a595ee16ee6aede55fb016b9cfdfd.zip |
o Proper implementation of start, stop and status.
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 } |