From b68b8c3045d3905ce1b0d90d2536e232d8809639 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 2 Oct 2022 21:40:19 +0200 Subject: [PATCH] updates catch2 taest --- CMakeLists.txt | 3 +++ tests/axi4_pin_level/CMakeLists.txt | 3 ++- tests/ordered_semaphore/CMakeLists.txt | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e20921d..b442017 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required(VERSION 3.16) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/scc/cmake) +cmake_policy(SET CMP0110 NEW) project(SCC_Test) @@ -72,6 +73,8 @@ find_package(fmt) find_package(Catch2) include(SystemCPackage) +include(CTest) +include(Catch) enable_testing() diff --git a/tests/axi4_pin_level/CMakeLists.txt b/tests/axi4_pin_level/CMakeLists.txt index ae8d9b6..936623f 100644 --- a/tests/axi4_pin_level/CMakeLists.txt +++ b/tests/axi4_pin_level/CMakeLists.txt @@ -6,4 +6,5 @@ add_executable(${PROJECT_NAME} ) target_link_libraries (${PROJECT_NAME} PUBLIC test_util) -add_test(NAME narrow_burst COMMAND ${PROJECT_NAME}) \ No newline at end of file +add_test(NAME narrow_burst COMMAND ${PROJECT_NAME}) +#catch_discover_tests(${PROJECT_NAME}) diff --git a/tests/ordered_semaphore/CMakeLists.txt b/tests/ordered_semaphore/CMakeLists.txt index fa09858..7c4f73c 100644 --- a/tests/ordered_semaphore/CMakeLists.txt +++ b/tests/ordered_semaphore/CMakeLists.txt @@ -7,3 +7,4 @@ add_executable(${PROJECT_NAME} target_link_libraries (${PROJECT_NAME} PUBLIC test_util) add_test(NAME ${PROJECT_NAME} COMMAND ${PROJECT_NAME}) +#catch_discover_tests(${PROJECT_NAME})