Skip to content
Snippets Groups Projects
Commit 5165b7de authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Add google test cases as CTest tests

parent 8bd63879
No related branches found
No related tags found
1 merge request!118Add gtests individually
......@@ -3,4 +3,6 @@
# accompanying file Copyright.txt for details.
#------------------------------------------------------------------------------#
include(GoogleTest)
add_subdirectory(adios2)
......@@ -10,5 +10,5 @@ if(NOT ADIOS_USE_MPI)
add_executable(TestADIOS1WriteRead TestADIOS1WriteRead.cpp)
target_link_libraries(TestADIOS1WriteRead adios2 gtest adios1::adios)
add_test(NAME adios2::engine::adios1::write_read COMMAND TestADIOS1WriteRead)
gtest_add_tests(TARGET TestADIOS1WriteRead)
endif()
......@@ -10,5 +10,5 @@ if(NOT ADIOS_USE_MPI)
add_executable(TestBPWriteRead TestBPWriteRead.cpp)
target_link_libraries(TestBPWriteRead adios2 gtest adios1::adios)
add_test(NAME adios2::engine::bp::write_read COMMAND TestBPWriteRead)
gtest_add_tests(TARGET TestBPWriteRead)
endif()
......@@ -9,4 +9,4 @@ add_executable(TestHDF5WriteRead TestHDF5WriteRead.cpp)
target_include_directories(TestHDF5WriteRead PRIVATE ${HDF5_C_INCLUDE_DIRS})
target_link_libraries(TestHDF5WriteRead adios2 gtest ${HDF5_C_LIBRARIES})
add_test(NAME adios2::engine::hdf5::write_read COMMAND TestHDF5WriteRead)
gtest_add_tests(TARGET TestHDF5WriteRead)
......@@ -5,4 +5,5 @@
add_executable(TestADIOSInterfaceWrite TestADIOSInterfaceWrite.cpp)
target_link_libraries(TestADIOSInterfaceWrite adios2 gtest gtest_main)
add_test(NAME adios2::interface::write COMMAND TestADIOSInterfaceWrite)
gtest_add_tests(TARGET TestADIOSInterfaceWrite)
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