changeset 41:cb41fb97f7f3

Make run-tests work with more than one test directory
author mas01cr
date Mon, 17 Sep 2007 12:12:30 +0000
parents 1a4975d743a9
children 08ae151398cb
files tests/run-tests.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.sh	Mon Sep 17 12:12:10 2007 +0000
+++ b/tests/run-tests.sh	Mon Sep 17 12:12:30 2007 +0000
@@ -13,7 +13,8 @@
 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
+      echo Running test ${file}
+      (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}