Skip to content

Commit

Permalink
fixed outdated tests, improved linkage with catch2
Browse files Browse the repository at this point in the history
  • Loading branch information
JPenuchot committed Sep 26, 2024
1 parent 22addbd commit 7a00486
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions grapher/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
file(GLOB_RECURSE SOURCES grapher/*.cpp)

add_executable(grapher-tests ${SOURCES} main.cpp)
target_link_libraries(grapher-tests PRIVATE Catch2::Catch2 grapher)
add_executable(grapher-tests ${SOURCES})
target_link_libraries(grapher-tests PRIVATE Catch2::Catch2WithMain grapher)

add_custom_target(test-grapher grapher-tests)
add_dependencies(test-all test-grapher)
2 changes: 1 addition & 1 deletion grapher/tests/grapher/predicates.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <grapher/predicates.hpp>

Expand Down
2 changes: 1 addition & 1 deletion grapher/tests/grapher/utils/cli.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
2 changes: 1 addition & 1 deletion grapher/tests/grapher/utils/json.cpp
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>
2 changes: 1 addition & 1 deletion grapher/tests/grapher/utils/math.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include <catch2/catch.hpp>
#include <catch2/catch_test_macros.hpp>

#include <vector>

Expand Down
2 changes: 0 additions & 2 deletions grapher/tests/main.cpp

This file was deleted.

0 comments on commit 7a00486

Please sign in to comment.