diff options
-rw-r--r-- | ChangeLog-97b | 8 | ||||
-rwxr-xr-x | tests/run_tests.check | 2 | ||||
-rwxr-xr-x | tests/run_tests.sh | 8 |
3 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog-97b b/ChangeLog-97b index c86c6a5a95b..1d92de95f4a 100644 --- a/ChangeLog-97b +++ b/ChangeLog-97b @@ -1,3 +1,11 @@ +Fri Oct 10 11:08:02 1997 Carlos O'Ryan <coryan@macarena.cs.wustl.edu> + + * tests/run_tests.sh: + We remove the log file before running a test, we also check for + the log file existance before running run_test.check on + it. Thanks to Dean Clamons <dean@n5170a.nrl.navy.mil> for + helping us with this. + Fri Oct 10 01:46:07 1997 Douglas C. Schmidt <schmidt@cs.wustl.edu> * ACE version 4.3.13, released Fri Oct 10 01:46:07 1997. diff --git a/tests/run_tests.check b/tests/run_tests.check index 2485ea7bc4b..8b33cf979a5 100755 --- a/tests/run_tests.check +++ b/tests/run_tests.check @@ -16,7 +16,7 @@ status=0 for arg do for i in $SUCCESS_MSGS; do - egrep -q $i $arg + egrep $i $arg >/dev/null 2>&1 if [ $? -eq 1 ]; then echo Error in $arg: no line with $i status=1 diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 0c9b3149590..52e46337720 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -8,7 +8,7 @@ tmp=/tmp run() { echo running $1 - /bin/rm -f core + /bin/rm -f core log/$1.log ./$1 status=$? @@ -21,7 +21,11 @@ run() echo \"$1\" dumped core!!!! fi - ./run_tests.check log/$1.log + if [ -f log/$1.log ]; then + ./run_tests.check log/$1.log + else + echo No log file (log/$1.log) is present + fi } echo "Starting tests..." |