Files
fsfw/tests/src/fsfw_tests/unit/CatchSetup.cpp
T

33 lines
792 B
C++
Raw Normal View History

2021-01-13 11:53:34 +01:00
#include "CatchFactory.h"
2020-10-29 12:23:27 +01:00
#include "CatchDefinitions.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/storagemanager/StorageManagerIF.h"
#include "fsfw/serviceinterface/ServiceInterface.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");
}
2021-01-13 11:53:34 +01:00
#endif
2020-10-20 17:11:23 +02:00
int customSetup() {
// global setup
2021-08-16 10:49:07 +02:00
ObjectManager* objMan = ObjectManager::instance();
objMan->setObjectFactoryFunction(Factory::produceFrameworkObjects, nullptr);
objMan->initialize();
2020-10-20 17:11:23 +02:00
return 0;
}