Mercurial > hg > audiodb
changeset 39:108bd28a8ede
Make the executable to be tested (vaguely) customizeable
author | mas01cr |
---|---|
date | Mon, 17 Sep 2007 11:59:02 +0000 |
parents | 7cc3d6027458 |
children | 1a4975d743a9 |
files | tests/0001/run-test.sh tests/run-tests.sh |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/0001/run-test.sh Mon Sep 17 11:37:46 2007 +0000 +++ b/tests/0001/run-test.sh Mon Sep 17 11:59:02 2007 +0000 @@ -5,11 +5,11 @@ if [ -f testdb ]; then rm -f testdb; fi # creation -../../audioDB -N -d testdb +${AUDIODB} -N -d testdb stat testdb # should fail -../../audioDB -N -d testdb && exit 1 +${AUDIODB} -N -d testdb && exit 1 -exit 104 \ No newline at end of file +exit 104
--- a/tests/run-tests.sh Mon Sep 17 11:37:46 2007 +0000 +++ b/tests/run-tests.sh Mon Sep 17 11:59:02 2007 +0000 @@ -1,5 +1,15 @@ #! /bin/sh +AUDIODB=../../${EXECUTABLE:-audioDB} +export AUDIODB + +if [ -x ${AUDIODB:3} ]; then + : +else + echo Cannot execute audioDB: ${AUDIODB:3} + exit 1 +fi + for file in [0-9][0-9][0-9][0-9]*; do if [ -d ${file} ]; then if [ -f ${file}/run-test.sh ]; then