Skip to content

Commit

Permalink
fixed run test script to correctly detect failure
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jan 8, 2018
1 parent 5097578 commit 2158338
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/cunit/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,26 @@ PIO_TESTS='test_async_mpi test_spmd test_rearr test_intercomm2 test_async_simple
'test_darray_3d test_decomp_uneven test_decomps test_darray_async_simple '\
'test_darray_async test_darray_async_many test_darray_2sync test_async_multicomp '

success1=true
success2=true
for TEST in $PIO_TESTS
do
success=false
success1=false
echo "running ${TEST}"
mpiexec -n 4 ./${TEST} && success=true || break
mpiexec -n 4 ./${TEST} && success1=true || break
done

PIO_TESTS_8='test_async_multi2'

for TEST in $PIO_TESTS_8
do
success=false
success2=false
echo "running ${TEST}"
mpiexec -n 8 ./${TEST} && success=true || break
mpiexec -n 8 ./${TEST} && success2=true || break
done

# Did we succeed?
if test x$success = xtrue; then
if test x$success1 = xtrue -a x$success2 = xtrue; then
exit 0
fi
exit 1

0 comments on commit 2158338

Please sign in to comment.