eive-obsw/unittest/controller/testAcsController.cpp
Robin Mueller 91b69eacf6
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
A lot of stuff
- refactored and simplified RW assemblies
- create separate SPI Com IF for RWs
- Update .cproject file: Fixed to decrease indexer parsing times
2022-05-11 01:48:26 +02:00

42 lines
1.1 KiB
C++

#include <fsfw/ipc/QueueFactory.h>
#include <mission/controller/ThermalController.h>
#include <catch2/catch_test_macros.hpp>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include "../testEnvironment.h"
#include "rapidcsv.h"
TEST_CASE("ACS Controller", "[AcsController]") {
SECTION("SectionTest") {
// acsCtrl.performOperation();
CHECK(1 == 1);
try {
{
std::ifstream file("unittest/meineTestDaten.txt");
if (file.good()) {
std::string line;
while (std::getline(file, line)) {
std::cout << "ACS CTRL Test test file: " << line << std::endl;
}
}
}
{
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;
}
} catch (const std::exception& e) {
sif::warning << "CSV file test exception occured: " << e.what() << std::endl;
}
REQUIRE(2 == 2);
}
SECTION("SectionTest2") {}
}