robertsj / libdetran

deterministic transport utilities
MIT License
2 stars 2 forks source link

Convert all tests to Googletest framework #52

Open robertsj opened 1 year ago

robertsj commented 1 year ago

Googletest is incorporated in PR #51. With it in place, all existing tests should be switched to that format. This further simplifies the code base.

There should be a separate PR for each of these items:

At the top of each test directory CMakeLists.txt should be a block that looks like

macro(test)
  add_executable(${ARGV0} ${ARGV0}.cc)
  target_link_libraries(${ARGV0}
    geometry utilities angle
    GTest::gtest_main
  )
  gtest_discover_tests(${ARGV0})
endmacro()

Here, geometry utilities angle should be changed to the correct libraries for the tests.