2022-02-10 18:15:33 +01:00
|
|
|
#include <catch2/catch_test_macros.hpp>
|
|
|
|
|
2022-02-10 18:29:28 +01:00
|
|
|
#include <mission/controller/ThermalController.h>
|
2022-02-10 18:54:09 +01:00
|
|
|
#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:29:28 +01:00
|
|
|
|
2022-02-10 18:15:33 +01:00
|
|
|
TEST_CASE( "Thermal Controller" , "[ThermalController]") {
|
|
|
|
bool test = true;
|
|
|
|
REQUIRE( test == true);
|
|
|
|
|
2022-02-10 18:29:28 +01:00
|
|
|
ThermalController controller(123);
|
|
|
|
|
|
|
|
REQUIRE(controller.perform() == HasReturnvaluesIF::RETURN_OK);
|
|
|
|
|
2022-02-10 18:15:33 +01:00
|
|
|
}
|