eive-obsw/unittest/controller/testAcsController.cpp
Robin Mueller 0bd20ac9fd
Some checks failed
EIVE/eive-obsw/pipeline/head Build started...
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
init acs test files
2022-05-10 17:49:10 +02:00

36 lines
835 B
C++

#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") {
}
}