Robin Mueller
ade15ad16d
This PR refactores the tests so they are built as part of the FSFW. This is done by adding Catch2 with the FetchContent directive. A future implementation might also use a system installation of Catch2 by first checking whether Catch2 can already be found as a package The custom configuration folder testcfg was moved from the user folder to the actual unittest folder. The tests can be built by setting the CMake FSFW_BUILD_UNITTESTS option to TRUE/ON. They are built with the static library and dropped inside the build folders fsfw directory.
24 lines
537 B
CMake
24 lines
537 B
CMake
target_sources(${FSFW_TEST_TGT} PRIVATE
|
|
CatchDefinitions.cpp
|
|
CatchFactory.cpp
|
|
printChar.cpp
|
|
)
|
|
|
|
# if(FSFW_CUSTOM_UNITTEST_RUNNER)
|
|
target_sources(${FSFW_TEST_TGT} PRIVATE
|
|
CatchRunner.cpp
|
|
CatchSetup.cpp
|
|
)
|
|
# endif()
|
|
|
|
add_subdirectory(testcfg)
|
|
add_subdirectory(action)
|
|
add_subdirectory(container)
|
|
add_subdirectory(osal)
|
|
add_subdirectory(serialize)
|
|
add_subdirectory(datapoollocal)
|
|
add_subdirectory(storagemanager)
|
|
add_subdirectory(globalfunctions)
|
|
add_subdirectory(timemanager)
|
|
add_subdirectory(tmtcpacket)
|