Skip to content

Commit

Permalink
Add google test
Browse files Browse the repository at this point in the history
Add separate tests for different pairs, tuples and structs

Based on code by Cody
Signed-off-by: Cody W. Eilar <Cody.Eilar@Gmail.com>
Signed-off-by: James Sharpe <mail@jsharpe.net>
  • Loading branch information
jsharpe committed Nov 25, 2015
1 parent 676523c commit 72f9ba4
Show file tree
Hide file tree
Showing 2 changed files with 236 additions and 176 deletions.
23 changes: 16 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,28 @@ use_cxx11()
find_package(HDF5 REQUIRED COMPONENTS C HL)
find_package(Boost REQUIRED COMPONENTS system)
find_package(MPI REQUIRED)
find_package(GTest REQUIRED)

enable_testing()

include_directories(
${MPI_INCLUDE_PATH}
${HDF5_INCLUDE_DIRS}
${boost_INCLUDE_DIRS}
)
${GTEST_INCLUDE_DIRS}
${HDF5_INCLUDE_DIRS}
${MPI_INCLUDE_PATH}
${boost_INCLUDE_DIRS}
)

include_directories(..)

add_executable(hdf5_tests test-hdf.cpp )
target_link_libraries(hdf5_tests ${HDF5_LIBRARIES} ${Boost_LIBRARIES} ${HDF5_LIBRARIES} ${MPI_C_LIBRARIES})

target_link_libraries(hdf5_tests
${Boost_LIBRARIES}
${GTEST_BOTH_LIBRARIES}
${HDF5_LIBRARIES}
${HDF5_LIBRARIES}
${MPI_C_LIBRARIES}
)

add_test(NAME hdf5
COMMAND hdf5_tests)

enable_testing()
Loading

0 comments on commit 72f9ba4

Please sign in to comment.