view tests/0002/run-test.sh @ 46:1853beeb0521

Script to clean up after running tests. Deletes all files matching */test*; You Have Been Warned.
author mas01cr
date Mon, 17 Sep 2007 16:10:44 +0000
parents 08ae151398cb
children a7aad4c50cb9
line wrap: on
line source
#! /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