Files
fsfw/unittests/CatchSetup.cpp
T

36 lines
836 B
C++
Raw Normal View History

2020-10-29 12:23:27 +01:00
#include "CatchDefinitions.h"
2022-02-02 10:29:30 +01:00
#include "CatchFactory.h"
2020-10-20 17:11:23 +02:00
#ifdef GCOV
#include <gcov.h>
#endif
2021-08-16 10:49:07 +02:00
#include "fsfw/objectmanager/ObjectManager.h"
#include "fsfw/serviceinterface/ServiceInterface.h"
2022-02-02 10:29:30 +01:00
#include "fsfw/storagemanager/StorageManagerIF.h"
2020-10-20 17:11:23 +02:00
/* Global instantiations normally done in main.cpp */
/* Initialize Data Pool */
2021-01-13 11:53:34 +01:00
#if FSFW_CPP_OSTREAM_ENABLED == 1
2020-10-20 17:11:23 +02:00
namespace sif {
/* Set up output streams */
ServiceInterfaceStream debug("DEBUG");
ServiceInterfaceStream info("INFO");
ServiceInterfaceStream error("ERROR");
ServiceInterfaceStream warning("WARNING");
2022-02-02 10:29:30 +01:00
} // namespace sif
2021-01-13 11:53:34 +01:00
#endif
2020-10-20 17:11:23 +02:00
int customSetup() {
2022-02-02 10:29:30 +01:00
// global setup
ObjectManager* objMan = ObjectManager::instance();
objMan->setObjectFactoryFunction(Factory::produceFrameworkObjects, nullptr);
objMan->initialize();
return 0;
2020-10-20 17:11:23 +02:00
}
2022-07-25 22:22:08 +02:00
int customTeardown() {
return 0;
}