view tests/0001/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 1a4975d743a9
children a7aad4c50cb9
line wrap: on
line source
#! /bin/sh

trap "exit 1" ERR

if [ -f testdb ]; then rm -f testdb; fi

# creation
${AUDIODB} -N -d testdb

stat testdb

# should fail (testdb exists)
${AUDIODB} -N -d testdb && exit 1

# should fail (no db given)
${AUDIODB} -N && exit 1

exit 104