Skip to content

Commit

Permalink
tests: initial upgrade to Catch2 version 3.3.2
Browse files Browse the repository at this point in the history
This only does the "amalgamated" migration approach, rather than a proper static library
See https://github.com/catchorg/Catch2/blob/devel/docs/migrate-v2-to-v3.md#how-to-migrate-projects-from-v2-to-v3
  • Loading branch information
bradh committed May 19, 2023
1 parent 6e396fc commit 3f5dfea
Show file tree
Hide file tree
Showing 8 changed files with 23,633 additions and 17,975 deletions.
3 changes: 2 additions & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ include_directories(${libheif_BINARY_DIR} ${libheif_SOURCE_DIR})

set(TESTING_DATA_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/data")
configure_file(test-config.cc.in ${CMAKE_BINARY_DIR}/generated/test-config.cc)
add_compile_options("-std=c++14")

macro(add_libheif_test TEST_FILE)
set(TEST_NAME ${TEST_FILE})
add_executable(${TEST_NAME} main.cc catch.hpp ${CMAKE_BINARY_DIR}/generated/test-config.cc ${TEST_FILE}.cc)
add_executable(${TEST_NAME} catch_amalgamated.cc ${CMAKE_BINARY_DIR}/generated/test-config.cc ${TEST_FILE}.cc)
target_link_libraries(${TEST_NAME} PRIVATE heif)
add_test(NAME ${TEST_NAME} COMMAND ./${TEST_NAME})
endmacro()
Expand Down
Loading

0 comments on commit 3f5dfea

Please sign in to comment.