linux and FreeRTOS Unit tests and some fixes #721

Closed
mohr wants to merge 12 commits from mohr/freeRTOS into development
2 changed files with 22 additions and 0 deletions
Showing only changes of commit 654de0f586 - Show all commits

View File

@ -174,6 +174,25 @@ 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")
message(
STATUS
"${MSG_PREFIX} Downloading FreeRTOS with FetchContent"
)
include(FetchContent)
FetchContent_Declare(
FreeRTOS
GIT_REPOSITORY https://egit.irs.uni-stuttgart.de/fsfw/FreeRTOS-LTS
GIT_TAG develop
GIT_SUBMODULES FreeRTOS/FreeRTOS-Kernel)
list(APPEND FSFW_FETCH_CONTENT_TARGETS FreeRTOS)
set(LIB_OS_NAME FreeRTOS)
target_include_directories(FreeRTOS PRIVATE unittests/FreeRTOS-Config)
endif()
project(${FSFW_TEST_TGT} CXX C)
add_executable(${FSFW_TEST_TGT})
if(IPO_SUPPORTED AND FSFW_ENABLE_IPO)
@ -226,6 +245,9 @@ if(FSFW_FETCH_CONTENT_TARGETS)
# GitHub issue: https://github.com/catchorg/Catch2/issues/2417
set_target_properties(Catch2 PROPERTIES DEBUG_POSTFIX "")
endif()
endif()
set(FSFW_CORE_INC_PATH "inc")