Skip to content

Commit

Permalink
Fix MPI run, report errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jhenin committed Jan 3, 2024
1 parent addf6a4 commit 9d9760a
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gromacs/tests/interface/010_MPI_multi-sim/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if [ "$1" ]
then
COMMAND=$1
else
COMMAND="mpirun -np 16 gmx_mpi_d"
COMMAND="mpirun -np 16 -oversubscribe mpirun gmx_mpi_d"
fi

$COMMAND -multidir a b c d -s test.tpr -deffnm test -replex 10 -reseed 376 2>&1 | tee test.out
Expand Down
21 changes: 21 additions & 0 deletions gromacs/tests/interface/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,33 @@ fi
tests=([0-9][0-9][0-9]_*)
tests=(${tests[@]/010_MPI_multi-sim})

ALL_SUCCESS=1

../library/run_tests.sh ${tests[@]}

if [ $? -ne 0 ]
then
ALL_SUCCESS=0
fi

# Run tests that depend on an MPI build
if source ${TOPDIR}/devel-tools/load-openmpi.sh ; then
if cd 010_MPI_multi-sim ; then
./run.sh
if [ $? -ne 0 ]
then
ALL_SUCCESS=0
fi
cd -
fi
fi


if [ $ALL_SUCCESS -eq 1 ]
then
echo "$(${TPUT_GREEN})All tests succeeded.$(${TPUT_CLEAR})"
exit 0
else
echo "$(${TPUT_RED})There were failed tests.$(${TPUT_CLEAR})"
exit 1
fi

0 comments on commit 9d9760a

Please sign in to comment.