Add testframework and start bash completion. Not functional yet
This commit is contained in:
11
test/CMakeLists.txt
Normal file
11
test/CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
project(patchelfcrc-test LANGUAGES CXX C)
|
||||
add_subdirectory(catch2 EXCLUDE_FROM_ALL)
|
||||
|
||||
add_custom_target(test "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}" "-r compact" "-s" DEPENDS ${PROJECT_NAME})
|
||||
aux_source_directory("src" TEST_SOURCES)
|
||||
set(DUT_SOURCES ${CMAKE_CURRENT_LIST_DIR}/../src/crc.c)
|
||||
|
||||
add_executable(${PROJECT_NAME} EXCLUDE_FROM_ALL ${TEST_SOURCES} ${DUT_SOURCES})
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE Catch2::Catch2WithMain)
|
1
test/catch2
Submodule
1
test/catch2
Submodule
Submodule test/catch2 added at 0631b607ee
Reference in New Issue
Block a user