Mercurial > hg > audiodb
comparison tests/run-tests.sh @ 277:abfb26e08d9c audiodb-debian
Merge trunk changes -r326:386 into audiodb-debian branch.
Plus new debian/changelog version. (Should have used an epoch really,
but couldn't be bothered; TODO: work out a sane version numbering
policy).
author | mas01cr |
---|---|
date | Tue, 01 Jul 2008 09:12:40 +0000 |
parents | 15b8ff55ea5b |
children |
comparison
equal
deleted
inserted
replaced
246:cbf51690c78c | 277:abfb26e08d9c |
---|---|
1 #! /bin/sh | 1 #! /bin/bash |
2 | 2 |
3 AUDIODB=../../${EXECUTABLE:-audioDB} | 3 AUDIODB=../../${EXECUTABLE:-audioDB} |
4 export AUDIODB | 4 export AUDIODB |
5 | 5 |
6 if [ -x ${AUDIODB:3} ]; then | 6 if [ -x ${AUDIODB#../} ]; then |
7 : | 7 : |
8 else | 8 else |
9 echo Cannot execute audioDB: ${AUDIODB:3} | 9 echo Cannot execute audioDB: ${AUDIODB#../} |
10 exit 1 | 10 exit 1 |
11 fi | 11 fi |
12 | 12 |
13 if [ "$1" = "--full" ]; then | 13 if [ "$1" = "--full" ]; then |
14 pattern="[0-9][0-9][0-9][0-9]*" | 14 pattern="[0-9][0-9][0-9][0-9]*" |
22 echo -n Running test ${file} | 22 echo -n Running test ${file} |
23 if [ -f ${file}/short-description ]; then | 23 if [ -f ${file}/short-description ]; then |
24 awk '{ printf(" (%s)",$0) }' < ${file}/short-description | 24 awk '{ printf(" (%s)",$0) }' < ${file}/short-description |
25 fi | 25 fi |
26 echo -n : | 26 echo -n : |
27 (cd ${file} && sh ./run-test.sh > test.out 2> test.err) | 27 (cd ${file} && /bin/bash ./run-test.sh > test.out 2> test.err) |
28 EXIT_STATUS=$? | 28 EXIT_STATUS=$? |
29 if [ ${EXIT_STATUS} -eq 14 ]; then | 29 if [ ${EXIT_STATUS} -eq 14 ]; then |
30 echo " n/a." | 30 echo " n/a." |
31 elif [ ${EXIT_STATUS} -ne 104 ]; then | 31 elif [ ${EXIT_STATUS} -ne 104 ]; then |
32 echo " failed (exit status ${EXIT_STATUS})." | 32 echo " failed (exit status ${EXIT_STATUS})." |