From b34d11cb20c1114f51547e03ef7055e431bb6e98 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 13 May 2020 13:45:13 -0400 Subject: [PATCH] testing: Add both Serial and MPI python tests when possible Always add the python bindings Serial tests. Add the MPI tests when ADIOS2 is built with MPI. --- testing/adios2/bindings/python/CMakeLists.txt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/testing/adios2/bindings/python/CMakeLists.txt b/testing/adios2/bindings/python/CMakeLists.txt index bb3fe667bd..8f3bf44888 100644 --- a/testing/adios2/bindings/python/CMakeLists.txt +++ b/testing/adios2/bindings/python/CMakeLists.txt @@ -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)