Skip to content

Commit

Permalink
testing: Add both Serial and MPI python tests when possible
Browse files Browse the repository at this point in the history
Always add the python bindings Serial tests.  Add the MPI tests when
ADIOS2 is built with MPI.
  • Loading branch information
bradking committed May 14, 2020
1 parent 9ee6b97 commit fb54feb
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions testing/adios2/bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
#------------------------------------------------------------------------------#

function(add_python_mpi_test testname)
python_add_test(NAME Bindings.Python.${testname} SCRIPT Test${testname}.py
python_add_test(NAME Bindings.Python.${testname}.MPI SCRIPT Test${testname}.py
EXEC_WRAPPER ${MPIEXEC_COMMAND}
)
set_tests_properties(Bindings.Python.${testname} PROPERTIES
set_tests_properties(Bindings.Python.${testname}.MPI PROPERTIES
PROCESSORS "${MPIEXEC_MAX_NUMPROCS}"
)
endfunction()

python_add_test(NAME Bindings.Python.HighLevelAPI SCRIPT TestHighLevelAPI.py)
python_add_test(NAME Bindings.Python.HighLevelAPI.Serial SCRIPT TestHighLevelAPI.py)

if(NOT ADIOS2_HAVE_MPI)
python_add_test(NAME Bindings.Python.BPWriteReadTypes
SCRIPT TestBPWriteReadTypes_nompi.py
)
endif()
python_add_test(NAME Bindings.Python.BPWriteReadTypes.Serial SCRIPT TestBPWriteReadTypes_nompi.py)

if(ADIOS2_HAVE_MPI)
add_python_mpi_test(BPWriteReadTypes)
Expand Down

0 comments on commit fb54feb

Please sign in to comment.