Skip to content

Commit

Permalink
migrate to catch3
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored and Be-ing committed Sep 27, 2023
1 parent 7bd073b commit cc20868
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 27 deletions.
5 changes: 2 additions & 3 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
add_executable(keyfinder-tests
main.cpp
_testhelpers.cpp
audiodatatest.cpp
binodetest.cpp
Expand Down Expand Up @@ -27,10 +26,10 @@ if(NOT TARGET Catch2::Catch2)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v2.13.4)
GIT_TAG v3.3.2)
FetchContent_MakeAvailable(Catch2)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/contrib)
endif()
target_link_libraries(keyfinder-tests PRIVATE Catch2::Catch2)
target_link_libraries(keyfinder-tests PRIVATE Catch2::Catch2WithMain)
include(Catch)
catch_discover_tests(keyfinder-tests)
2 changes: 1 addition & 1 deletion tests/_testhelpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#define TESTHELPERS_H

#include <cmath>
#include <catch2/catch.hpp>
#include <catch2/catch_all.hpp>
#include "keyfinder.h"

// all of this is a bit weak.
Expand Down
23 changes: 0 additions & 23 deletions tests/main.cpp

This file was deleted.

0 comments on commit cc20868

Please sign in to comment.