# HG changeset patch # User mas01cr # Date 1190030342 0 # Node ID 108bd28a8edeab6fb2ff4fd6412f56b3bb3119c0 # Parent 7cc3d60274584fd3013e1f761039b22666ed36ad Make the executable to be tested (vaguely) customizeable diff -r 7cc3d6027458 -r 108bd28a8ede tests/0001/run-test.sh --- 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 diff -r 7cc3d6027458 -r 108bd28a8ede tests/run-tests.sh --- 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