mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[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:
parent
ba751a6a4c
commit
a6add2ab92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user