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.
22 lines
416 B
C
22 lines
416 B
C
#ifndef FSFW_UNITTEST_CONFIG_TESTSCONFIG_H_
|
|
#define FSFW_UNITTEST_CONFIG_TESTSCONFIG_H_
|
|
|
|
#define FSFW_ADD_DEFAULT_FACTORY_FUNCTIONS 1
|
|
|
|
#ifdef __cplusplus
|
|
|
|
#include "objects/systemObjectList.h"
|
|
#include "events/subsystemIdRanges.h"
|
|
#include "returnvalues/classIds.h"
|
|
|
|
namespace config {
|
|
#endif
|
|
|
|
/* Add mission configuration flags here */
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* FSFW_UNITTEST_CONFIG_TESTSCONFIG_H_ */
|