annotate 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
rev   line source
mas01cr@40 1 #! /bin/sh
mas01cr@38 2
mas01cr@38 3 trap "exit 1" ERR
mas01cr@38 4
mas01cr@38 5 if [ -f testdb ]; then rm -f testdb; fi
mas01cr@38 6
mas01cr@38 7 # creation
mas01cr@39 8 ${AUDIODB} -N -d testdb
mas01cr@38 9
mas01cr@38 10 stat testdb
mas01cr@38 11
mas01cr@40 12 # should fail (testdb exists)
mas01cr@39 13 ${AUDIODB} -N -d testdb && exit 1
mas01cr@38 14
mas01cr@40 15 # should fail (no db given)
mas01cr@40 16 ${AUDIODB} -N && exit 1
mas01cr@40 17
mas01cr@39 18 exit 104