now the unittest should run
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
#include <dummies/SusDummy.h>
|
||||
#include <fsfw/ipc/QueueFactory.h>
|
||||
#include <fsfw/power/DummyPowerSwitcher.h>
|
||||
#include <fsfw/tasks/PeriodicTaskIF.h>
|
||||
#include <fsfw/tasks/TaskFactory.h>
|
||||
#include <mission/controller/ThermalController.h>
|
||||
@ -8,18 +9,24 @@
|
||||
|
||||
#include "../../dummies/TemperatureSensorInserter.h"
|
||||
#include "../testEnvironment.h"
|
||||
#include "mission/core/GenericFactory.h"
|
||||
#include "test/gpio/DummyGpioIF.h"
|
||||
|
||||
TEST_CASE("Thermal Controller", "[ThermalController]") {
|
||||
const object_id_t THERMAL_CONTROLLER_ID = 0x123;
|
||||
|
||||
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER);
|
||||
auto dummyGpioIF = new DummyGpioIF();
|
||||
auto dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0);
|
||||
// TODO: Create dummy heater handler
|
||||
// new HeaterHandler()
|
||||
HeaterHandler* heaterHandler = nullptr;
|
||||
// new ThermalController(objects::THERMAL_CONTROLLER);
|
||||
ObjectFactory::createGenericHeaterComponents(*dummyGpioIF, *dummySwitcher, heaterHandler);
|
||||
new SusDummy();
|
||||
|
||||
// testEnvironment::initialize();
|
||||
|
||||
ThermalController controller(THERMAL_CONTROLLER_ID);
|
||||
ThermalController controller(THERMAL_CONTROLLER_ID, *heaterHandler);
|
||||
ReturnValue_t result = controller.initialize();
|
||||
REQUIRE(result == returnvalue::OK);
|
||||
|
||||
|
Reference in New Issue
Block a user