now the unittest should run
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit Details

This commit is contained in:
Robin Müller 2022-11-28 10:39:47 +01:00
parent 32cda0f58b
commit ad5ee7fa44
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC
4 changed files with 12 additions and 9 deletions

2
fsfw

@ -1 +1 @@
Subproject commit 160ff799ace61e24708dcf1fdeaf5fafdf23a4ca
Subproject commit 46a1c2bacea142994666b2201acf0246ba0fd0b4

View File

@ -1,3 +1 @@
target_sources(${OBSW_NAME} PUBLIC DummyGpioIF.cpp)
target_include_directories(${OBSW_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_sources(${LIB_EIVE_MISSION} PUBLIC DummyGpioIF.cpp)

View File

@ -1,3 +1 @@
target_sources(${OBSW_NAME} PUBLIC TestTask.cpp)
target_include_directories(${OBSW_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_sources(${LIB_EIVE_MISSION} PUBLIC TestTask.cpp)

View File

@ -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);