From a7a6139bef6f659d47bc1015be1903a922b26c30 Mon Sep 17 00:00:00 2001 From: Raymond Lu Date: Thu, 9 Jun 2005 11:32:23 -0500 Subject: [svn-r10884] Purpose: A minor feature Description: Let this short script file check whether the tests pass and report pass or fail. Platforms tested: fuss only - a simple change to the script file. --- tools/misc/testh5repart.sh.in | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/tools/misc/testh5repart.sh.in b/tools/misc/testh5repart.sh.in index 0889c92..2fb90ea 100644 --- a/tools/misc/testh5repart.sh.in +++ b/tools/misc/testh5repart.sh.in @@ -41,21 +41,23 @@ TESTING() { } # Run a test and print PASS or *FAIL*. If a test fails then increment -# the `nerrors' global variable and (if $verbose is set) display the -# difference between the actual output and the expected output. The -# expected output is given as the first argument to this function and -# the actual output file is calculated by replacing the `.ddl' with -# `.out'. The actual output is not removed if $HDF5_NOCLEANUP has a -# non-zero value. +# the `nerrors' global variable. # TOOLTEST() { # Run tool test. TESTING $REPART $@ ( - echo +# echo cd $srcdir/../testfiles $RUNSERIAL $REPART_BIN $@ ) + + if test $? -eq 0; then + echo " PASSED" + else + echo " FAILED" + nerrors=`expr $nerrors + 1` + fi } OUTPUTTEST() { @@ -65,6 +67,13 @@ OUTPUTTEST() { cd $actual_dir $RUNSERIAL $REPARTED_FAM_BIN $@ ) + + if test $? -eq 0; then + echo " PASSED" + else + echo " FAILED" + nerrors=`expr $nerrors + 1` + fi } # Print a "SKIP" message -- cgit v0.12