fsfw/unittest/user/unittest/core/CatchSetup.cpp

37 lines
864 B
C++
Raw Normal View History

2020-12-22 13:25:50 +01:00
#include <fsfw/unittest/core/CatchFactory.h>
2020-10-29 12:23:27 +01:00
#include "CatchDefinitions.h"
2020-10-29 12:42:29 +01:00
#include <testcfg/cdatapool/dataPoolInit.h>
2020-10-20 17:11:23 +02:00
#ifdef GCOV
#include <gcov.h>
#endif
2020-10-29 12:23:27 +01:00
#include "../../objectmanager/ObjectManager.h"
#include "../../objectmanager/ObjectManagerIF.h"
#include "../../storagemanager/StorageManagerIF.h"
#include "../../serviceinterface/ServiceInterfaceStream.h"
2020-10-20 17:11:23 +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;
}