eive-obsw/unittest/controller/testThermalController.cpp

45 lines
1.1 KiB
C++
Raw Normal View History

2022-02-10 18:15:33 +01:00
#include <catch2/catch_test_macros.hpp>
#include <mission/controller/ThermalController.h>
#include "fsfw/serviceinterface/ServiceInterfaceStream.h"
/* This is configured for linux without CR */
#ifdef PLATFORM_UNIX
ServiceInterfaceStream sif::debug("DEBUG");
ServiceInterfaceStream sif::info("INFO");
ServiceInterfaceStream sif::warning("WARNING");
ServiceInterfaceStream sif::error("ERROR");
#else
ServiceInterfaceStream sif::debug("DEBUG", true);
ServiceInterfaceStream sif::info("INFO", true);
ServiceInterfaceStream sif::warning("WARNING", true);
ServiceInterfaceStream sif::error("ERROR", true, false, true);
#endif
#include <fsfw/ipc/FwMessageTypes.h>
namespace messagetypes {
enum MESSAGE_TYPE {
MISSION_MESSAGE_TYPE_START = FW_MESSAGES_COUNT,
};
void clearMissionMessage(CommandMessage* message);
} // namespace messagetypes
void messagetypes::clearMissionMessage(CommandMessage* message) {
}
2022-02-10 18:15:33 +01:00
TEST_CASE( "Thermal Controller" , "[ThermalController]") {
bool test = true;
REQUIRE( test == true);
ThermalController controller(123);
REQUIRE(controller.perform() == HasReturnvaluesIF::RETURN_OK);
2022-02-10 18:15:33 +01:00
}