Mercurial > hg > audiodb
comparison tests/run-tests.sh @ 41:cb41fb97f7f3
Make run-tests work with more than one test directory
author | mas01cr |
---|---|
date | Mon, 17 Sep 2007 12:12:30 +0000 |
parents | 108bd28a8ede |
children | e13b4f62b4f5 |
comparison
equal
deleted
inserted
replaced
40:1a4975d743a9 | 41:cb41fb97f7f3 |
---|---|
11 fi | 11 fi |
12 | 12 |
13 for file in [0-9][0-9][0-9][0-9]*; do | 13 for file in [0-9][0-9][0-9][0-9]*; do |
14 if [ -d ${file} ]; then | 14 if [ -d ${file} ]; then |
15 if [ -f ${file}/run-test.sh ]; then | 15 if [ -f ${file}/run-test.sh ]; then |
16 cd ${file} && sh ./run-test.sh > test.out 2> test.err | 16 echo Running test ${file} |
17 (cd ${file} && sh ./run-test.sh > test.out 2> test.err) | |
17 EXIT_STATUS=$? | 18 EXIT_STATUS=$? |
18 if [ ${EXIT_STATUS} -ne 104 ]; then | 19 if [ ${EXIT_STATUS} -ne 104 ]; then |
19 echo Test ${file} failed: exit status ${EXIT_STATUS} | 20 echo Test ${file} failed: exit status ${EXIT_STATUS} |
20 fi | 21 fi |
21 else | 22 else |