action
container
contrib
controller
coordinates
datalinklayer
datapool
datapoollocal
defaultcfg
devicehandlers
doc
events
fdir
globalfunctions
health
housekeeping
internalError
ipc
logo
memory
modes
monitoring
objectmanager
osal
parameters
power
pus
returnvalues
rmap
serialize
serviceinterface
storagemanager
subsystem
tasks
tcdistribution
thermal
timemanager
tmstorage
tmtcpacket
tmtcservices
unittest
internal
globalfunctions
osal
serialize
CMakeLists.txt
InternalUnitTester.cpp
InternalUnitTester.h
UnittDefinitions.cpp
UnittDefinitions.h
internal.mk
tests
user
CMakeLists.txt
README.md
lcov.sh
.gitignore
.gitmodules
CHANGELOG
CMakeLists.txt
FSFWVersion.h
LICENSE
NOTICE
README.md
fsfw.mk
35 lines
941 B
C++
35 lines
941 B
C++
#ifndef FRAMEWORK_TEST_UNITTESTCLASS_H_
|
|
#define FRAMEWORK_TEST_UNITTESTCLASS_H_
|
|
|
|
#include "UnittDefinitions.h"
|
|
#include "../../returnvalues/HasReturnvaluesIF.h"
|
|
|
|
|
|
/**
|
|
* @brief Can be used for internal testing, for example for hardware specific
|
|
* tests which can not be run on a host-machine.
|
|
*
|
|
* TODO: A lot of ways to improve this class. A way for tests to subscribe
|
|
* in this central class would be nice. Right now, this is the class
|
|
* which simply calls all other tests from other files manually.
|
|
* Maybe there is a better way..
|
|
*/
|
|
class InternalUnitTester: public HasReturnvaluesIF {
|
|
public:
|
|
struct TestConfig {
|
|
bool testArrayPrinter;
|
|
};
|
|
|
|
InternalUnitTester();
|
|
virtual~ InternalUnitTester();
|
|
|
|
/**
|
|
* Some function which calls all other tests
|
|
* @return
|
|
*/
|
|
virtual ReturnValue_t performTests(struct InternalUnitTester::TestConfig& testConfig);
|
|
};
|
|
|
|
|
|
#endif /* FRAMEWORK_TEST_UNITTESTCLASS_H_ */
|