Robin Mueller
a18706ec53
1. Further reduces the amount of code the user needs to copy and paste 2. Makes FSFW tests more accessible. This can be used to simplify moving mission unit tests to the FSFW 3. A lot of include improvements
34 lines
792 B
C++
34 lines
792 B
C++
#include "CatchFactory.h"
|
|
#include "CatchDefinitions.h"
|
|
|
|
#ifdef GCOV
|
|
#include <gcov.h>
|
|
#endif
|
|
|
|
#include "fsfw/objectmanager/ObjectManager.h"
|
|
#include "fsfw/storagemanager/StorageManagerIF.h"
|
|
#include "fsfw/serviceinterface/ServiceInterface.h"
|
|
|
|
|
|
/* Global instantiations normally done in main.cpp */
|
|
/* Initialize Data Pool */
|
|
|
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
|
namespace sif {
|
|
/* Set up output streams */
|
|
ServiceInterfaceStream debug("DEBUG");
|
|
ServiceInterfaceStream info("INFO");
|
|
ServiceInterfaceStream error("ERROR");
|
|
ServiceInterfaceStream warning("WARNING");
|
|
}
|
|
#endif
|
|
|
|
int customSetup() {
|
|
// global setup
|
|
ObjectManager* objMan = ObjectManager::instance();
|
|
objMan->setObjectFactoryFunction(Factory::produceFrameworkObjects, nullptr);
|
|
objMan->initialize();
|
|
return 0;
|
|
}
|
|
|