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:
parent
32cda0f58b
commit
ad5ee7fa44
2
fsfw
2
fsfw
@ -1 +1 @@
|
|||||||
Subproject commit 160ff799ace61e24708dcf1fdeaf5fafdf23a4ca
|
Subproject commit 46a1c2bacea142994666b2201acf0246ba0fd0b4
|
@ -1,3 +1 @@
|
|||||||
target_sources(${OBSW_NAME} PUBLIC DummyGpioIF.cpp)
|
target_sources(${LIB_EIVE_MISSION} PUBLIC DummyGpioIF.cpp)
|
||||||
|
|
||||||
target_include_directories(${OBSW_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
@ -1,3 +1 @@
|
|||||||
target_sources(${OBSW_NAME} PUBLIC TestTask.cpp)
|
target_sources(${LIB_EIVE_MISSION} PUBLIC TestTask.cpp)
|
||||||
|
|
||||||
target_include_directories(${OBSW_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include <dummies/SusDummy.h>
|
#include <dummies/SusDummy.h>
|
||||||
#include <fsfw/ipc/QueueFactory.h>
|
#include <fsfw/ipc/QueueFactory.h>
|
||||||
|
#include <fsfw/power/DummyPowerSwitcher.h>
|
||||||
#include <fsfw/tasks/PeriodicTaskIF.h>
|
#include <fsfw/tasks/PeriodicTaskIF.h>
|
||||||
#include <fsfw/tasks/TaskFactory.h>
|
#include <fsfw/tasks/TaskFactory.h>
|
||||||
#include <mission/controller/ThermalController.h>
|
#include <mission/controller/ThermalController.h>
|
||||||
@ -8,18 +9,24 @@
|
|||||||
|
|
||||||
#include "../../dummies/TemperatureSensorInserter.h"
|
#include "../../dummies/TemperatureSensorInserter.h"
|
||||||
#include "../testEnvironment.h"
|
#include "../testEnvironment.h"
|
||||||
|
#include "mission/core/GenericFactory.h"
|
||||||
|
#include "test/gpio/DummyGpioIF.h"
|
||||||
|
|
||||||
TEST_CASE("Thermal Controller", "[ThermalController]") {
|
TEST_CASE("Thermal Controller", "[ThermalController]") {
|
||||||
const object_id_t THERMAL_CONTROLLER_ID = 0x123;
|
const object_id_t THERMAL_CONTROLLER_ID = 0x123;
|
||||||
|
|
||||||
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER);
|
new TemperatureSensorInserter(objects::THERMAL_TEMP_INSERTER);
|
||||||
|
auto dummyGpioIF = new DummyGpioIF();
|
||||||
|
auto dummySwitcher = new DummyPowerSwitcher(objects::PCDU_HANDLER, 18, 0);
|
||||||
// TODO: Create dummy heater handler
|
// TODO: Create dummy heater handler
|
||||||
// new HeaterHandler()
|
HeaterHandler* heaterHandler = nullptr;
|
||||||
|
// new ThermalController(objects::THERMAL_CONTROLLER);
|
||||||
|
ObjectFactory::createGenericHeaterComponents(*dummyGpioIF, *dummySwitcher, heaterHandler);
|
||||||
new SusDummy();
|
new SusDummy();
|
||||||
|
|
||||||
// testEnvironment::initialize();
|
// testEnvironment::initialize();
|
||||||
|
|
||||||
ThermalController controller(THERMAL_CONTROLLER_ID);
|
ThermalController controller(THERMAL_CONTROLLER_ID, *heaterHandler);
|
||||||
ReturnValue_t result = controller.initialize();
|
ReturnValue_t result = controller.initialize();
|
||||||
REQUIRE(result == returnvalue::OK);
|
REQUIRE(result == returnvalue::OK);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user