init acs test files
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
target_sources(${UNITTEST_NAME} PRIVATE
|
||||
testThermalController.cpp
|
||||
testAcsController.cpp
|
||||
)
|
35
unittest/controller/testAcsController.cpp
Normal file
35
unittest/controller/testAcsController.cpp
Normal file
@ -0,0 +1,35 @@
|
||||
#include <fsfw/ipc/QueueFactory.h>
|
||||
#include <mission/controller/ThermalController.h>
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
#include "../testEnvironment.h"
|
||||
#include <fstream>
|
||||
#include <iostream>
|
||||
#include "rapidcsv.h"
|
||||
|
||||
TEST_CASE("ACS Controller", "[AcsController]") {
|
||||
|
||||
SECTION("SectionTest") {
|
||||
//acsCtrl.performOperation();
|
||||
CHECK(1 == 1);
|
||||
|
||||
std::ifstream file("unittest/meineTestDaten.txt");
|
||||
std::string line;
|
||||
while(std::getline(file, line)) {
|
||||
std::cout << "ACS CTRL Test test file: " << line << std::endl;
|
||||
}
|
||||
file.close();
|
||||
|
||||
rapidcsv::Document doc("unittest/meineTestDaten.txt");
|
||||
std::vector<int> col = doc.GetColumn<int>("test0");
|
||||
std::cout << "Read " << col.size() << " values: " << col[0] << ", " << col[1] << std::endl;
|
||||
|
||||
REQUIRE(2 == 2);
|
||||
}
|
||||
|
||||
SECTION("SectionTest2") {
|
||||
|
||||
}
|
||||
|
||||
}
|
@ -42,4 +42,4 @@ TEST_CASE("Thermal Controller", "[ThermalController]") {
|
||||
componentTemperatures.commit();
|
||||
|
||||
QueueFactory::instance()->deleteMessageQueue(commandQueue);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user