summaryrefslogtreecommitdiffstats
path: root/testpar/testph5.sh.in
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-11-01 18:43:04 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-11-01 18:43:04 (GMT)
commita6add2ab923f20733a3dc866c6e2ec1c7b84eb64 (patch)
treecc1edd6e09354517a3388c77026caac08a79f54a /testpar/testph5.sh.in
parentba751a6a4c23bd0c53625e53f67562f5b4af00b4 (diff)
downloadhdf5-a6add2ab923f20733a3dc866c6e2ec1c7b84eb64.zip
hdf5-a6add2ab923f20733a3dc866c6e2ec1c7b84eb64.tar.gz
hdf5-a6add2ab923f20733a3dc866c6e2ec1c7b84eb64.tar.bz2
[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)
Diffstat (limited to 'testpar/testph5.sh.in')
-rw-r--r--testpar/testph5.sh.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/testpar/testph5.sh.in b/testpar/testph5.sh.in
index 409416b..f41639e 100644
--- a/testpar/testph5.sh.in
+++ b/testpar/testph5.sh.in
@@ -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