Mercurial > hg > audiodb
changeset 42:08ae151398cb
Add status arg tests
author | mas01cr |
---|---|
date | Mon, 17 Sep 2007 12:13:22 +0000 |
parents | cb41fb97f7f3 |
children | cadab98092a2 |
files | tests/0002/run-test.sh |
diffstat | 1 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/0002/run-test.sh Mon Sep 17 12:13:22 2007 +0000 @@ -0,0 +1,17 @@ +#! /bin/sh + +trap "exit 1" ERR + +if [ -f testdb ]; then rm -f testdb; fi + +${AUDIODB} -N -d testdb + +# FIXME: at some point we will want to test that some relevant +# information is being printed +${AUDIODB} -S -d testdb +${AUDIODB} -d testdb -S + +# should fail (no db given) +${AUDIODB} -S && exit 1 + +exit 104