Skip to content
Snippets Groups Projects
Commit c1703977 authored by Haocheng Liu's avatar Haocheng Liu
Browse files

Testing: Make BPWriteRead test able to run in parallel

parent 63521144
No related branches found
No related tags found
1 merge request!252Make all Bp engine tests able to run in parallel
......@@ -32,3 +32,17 @@ if(NOT ADIOS2_HAVE_MPI)
gtest_add_tests(TARGET TestBPWriteProfilingJSON)
endif()
# Testing CMake code
add_executable(TestBPWriteRead TestBPWriteRead.cpp)
target_link_libraries(TestBPWriteRead adios2 gtest adios1::adios)
if(ADIOS2_HAVE_MPI)
target_include_directories(TestBPWriteRead PRIVATE ${MPI_C_INCLUDE_PATH})
target_link_libraries(TestBPWriteRead ${MPI_C_LIBRARIES})
set(extra_test_args
EXEC_WRAPPER
${MPIEXEC} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS}
)
endif()
gtest_add_tests(TARGET TestBPWriteRead ${extra_test_args})
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment