[svn-r6048] Purpose:

Testing fix.

Description:
    Correctly detect when one of the parallel tests fails and stop the make
    from proceeding.

Platforms tested:
    modi4 (parallel), sleipnir (parallel)
This commit is contained in:
Quincey Koziol 2002-11-01 13:43:04 -05:00
parent ba751a6a4c
commit a6add2ab92

View File

@ -43,6 +43,11 @@ TOOLTEST() {
# Run test.
echo $RUNPARALLEL $TEST_APP_BIN "$@"
eval $RUNPARALLEL $TEST_APP_BIN "$@"
# Check if the command failed and increment nerrors if so.
if test $? -ne 0 ; then
nerrors="`expr $nerrors + 1`"
fi
}
##############################################################################
@ -56,3 +61,12 @@ TOOLTEST
# testphdf5 test using the MPI-POSIX VFL driver
TOOLTEST -p
# Emit message about testing status
if test $nerrors -eq 0 ; then
echo "All $TEST_APP tests passed."
else
echo "ERROR! One or more $TEST_APP tests failed."
fi
# Propagate a useful exit code
exit $nerrors