unittest now contained directly
This commit is contained in:
.gitmodulesunittest
unittest
Makefile-FSFW-TestsREADME.md
catch2
LICENSE.txtcatch.hppcatch_reporter_automake.hppcatch_reporter_sonarqube.hppcatch_reporter_tap.hppcatch_reporter_teamcity.hpp
config
FSFWConfig.hTestsConfig.h
cdatapool
config.mkdevices
events
ipc
objects
pollingsequence
returnvalues
tmtc
version.hcore
internal
lcov.shtests
action
container
RingBufferTest.cppTestArrayList.cppTestDynamicFifo.cppTestFifo.cppTestFixedArrayList.cppTestFixedMap.cppTestFixedOrderedMultimap.cppTestPlacementFactory.cpp
osal
serialize
storagemanager
tests.mktesttemplate
unlockRealtime.sh
41
unittest/core/CatchSetup.cpp
Normal file
41
unittest/core/CatchSetup.cpp
Normal file
@ -0,0 +1,41 @@
|
||||
#include "../config/cdatapool/dataPoolInit.h"
|
||||
#include <fsfw/unittest/config/cdatapool/dataPoolInit.h>
|
||||
#include <fsfw/unittest/config/objects/Factory.h>
|
||||
#include <fsfw/unittest/core/CatchDefinitions.h>
|
||||
|
||||
#ifdef GCOV
|
||||
#include <gcov.h>
|
||||
#endif
|
||||
|
||||
#include <fsfw/objectmanager/ObjectManager.h>
|
||||
#include <fsfw/objectmanager/ObjectManagerIF.h>
|
||||
#include <fsfw/storagemanager/StorageManagerIF.h>
|
||||
#include <fsfw/datapool/DataPool.h>
|
||||
#include <fsfw/serviceinterface/ServiceInterfaceStream.h>
|
||||
|
||||
|
||||
/* Global instantiations normally done in main.cpp */
|
||||
/* Initialize Data Pool */
|
||||
//namespace glob {
|
||||
DataPool dataPool(datapool::dataPoolInit);
|
||||
//}
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user