unittests running but failing

This commit is contained in:
2023-01-13 12:48:14 +01:00
parent a993c4e0d4
commit 39dad5f45b
5 changed files with 49 additions and 5 deletions

View File

@ -174,7 +174,7 @@ if(FSFW_BUILD_TESTS)
configure_file(unittests/testcfg/FSFWConfig.h.in FSFWConfig.h)
configure_file(unittests/testcfg/TestsConfig.h.in tests/TestsConfig.h)
if(FSFW_OSAL MATCHES "freertos")
if(FSFW_OSAL MATCHES "freertos")
message(
STATUS
"${MSG_PREFIX} Downloading FreeRTOS with FetchContent"
@ -193,7 +193,6 @@ if(FSFW_BUILD_TESTS)
set(LIB_OS_NAME FreeRTOS)
target_include_directories(FreeRTOS PUBLIC unittests/testcfg/freertos)
endif()
project(${FSFW_TEST_TGT} CXX C)
@ -385,6 +384,9 @@ if(FSFW_BUILD_TESTS)
endif()
target_link_libraries(${FSFW_TEST_TGT} PRIVATE Catch2::Catch2
${LIB_FSFW_NAME})
if(FSFW_OSAL MATCHES "freertos")
target_link_libraries(${FSFW_TEST_TGT} PRIVATE FreeRTOS)
endif()
endif()
# The project CMakeLists file has to set the FSFW_CONFIG_PATH and add it. If