Files
fsfw/tests/user/unittest/core/CatchSetup.cpp
T

36 lines
837 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-01-13 11:53:34 +01:00
#include <fsfw/objectmanager/ObjectManager.h>
#include <fsfw/objectmanager/ObjectManagerIF.h>
#include <fsfw/storagemanager/StorageManagerIF.h>
#include <fsfw/serviceinterface/ServiceInterfaceStream.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
/* Global object manager */
ObjectManagerIF *objectManager;
int customSetup() {
// global setup
objectManager = new ObjectManager(Factory::produce);
objectManager -> initialize();
return 0;
}