Mercurial > hg > audiodb
view 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 source
#! /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 cd ${file} && sh ./run-test.sh > test.out 2> test.err EXIT_STATUS=$? if [ ${EXIT_STATUS} -ne 104 ]; then echo Test ${file} failed: exit status ${EXIT_STATUS} fi else echo Skipping test ${file} fi fi done