fsfw/unittest/core/CatchSetup.cpp

37 lines
864 B
C++
Raw Normal View History

2020-12-22 13:25:00 +01:00
#include <fsfw/unittest/core/CatchFactory.h>
2020-10-28 22:11:13 +01:00
#include "CatchDefinitions.h"
2020-10-29 15:12:05 +01:00
#include <testcfg/cdatapool/dataPoolInit.h>
2020-10-20 17:12:56 +02:00
#ifdef GCOV
#include <gcov.h>
#endif
2020-10-28 22:11:13 +01:00
#include "../../objectmanager/ObjectManager.h"
#include "../../objectmanager/ObjectManagerIF.h"
#include "../../storagemanager/StorageManagerIF.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
2020-10-20 17:12:56 +02:00
/* Global instantiations normally done in main.cpp */
/* Initialize Data Pool */
namespace sif {
/* Set up output streams */
ServiceInterfaceStream debug("DEBUG");
ServiceInterfaceStream info("INFO");
ServiceInterfaceStream error("ERROR");
ServiceInterfaceStream warning("WARNING");
}
/* Global object manager */
ObjectManagerIF *objectManager;
int customSetup() {
// global setup
objectManager = new ObjectManager(Factory::produce);
objectManager -> initialize();
return 0;
}