Mercurial > hg > audiodb
diff tests/run-tests.sh @ 39:108bd28a8ede
Make the executable to be tested (vaguely) customizeable
author | mas01cr |
---|---|
date | Mon, 17 Sep 2007 11:59:02 +0000 |
parents | 7cc3d6027458 |
children | cb41fb97f7f3 |
line wrap: on
line diff
--- 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