view tests/0001/run-test.sh @ 40:1a4975d743a9

Fix shebang line; add minor comments.
author mas01cr
date Mon, 17 Sep 2007 12:12:10 +0000
parents 108bd28a8ede
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