.idea
automation
cmake
contrib
docs
misc
scripts
src
unittests
action
cfdp
container
datapoollocal
devicehandler
globalfunctions
hal
internalerror
mocks
osal
power
pus
serialize
storagemanager
tcdistributor
testcfg
testtemplate
timemanager
tmtcpacket
tmtcservices
util
CMakeLists.txt
CatchDefinitions.cpp
CatchDefinitions.h
CatchFactory.cpp
CatchFactory.h
CatchRunner.cpp
CatchRunner.h
CatchSetup.cpp
lcov_epilog.html
printChar.cpp
printChar.h
testVersion.cpp
.clang-format
.gitignore
.gitmodules
CHANGELOG.md
CMakeLists.txt
FSFWVersion.h.in
LICENSE
NOTICE
README.md
38 lines
885 B
C++
38 lines
885 B
C++
#include "CatchDefinitions.h"
|
|
#include "CatchFactory.h"
|
|
#include "fsfw/FSFW.h"
|
|
|
|
#ifdef GCOV
|
|
#include <gcov.h>
|
|
#endif
|
|
|
|
#include "fsfw/objectmanager/ObjectManager.h"
|
|
#include "fsfw/serviceinterface/ServiceInterface.h"
|
|
#include "fsfw/storagemanager/StorageManagerIF.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");
|
|
} // namespace sif
|
|
#endif
|
|
|
|
int customSetup() {
|
|
// global setup
|
|
ObjectManager* objMan = ObjectManager::instance();
|
|
objMan->setObjectFactoryFunction(Factory::produceFrameworkObjects, nullptr);
|
|
objMan->initialize();
|
|
return 0;
|
|
}
|
|
|
|
int customTeardown() {
|
|
ObjectManager::clear();
|
|
return 0;
|
|
}
|