start ccsds reader unittests

This commit is contained in:
Robin Müller 2022-07-18 16:21:00 +02:00
parent 3d2af203f2
commit 95b476d4bd
No known key found for this signature in database
GPG Key ID: 11D4952C8CCEF814
5 changed files with 11 additions and 4 deletions

View File

@ -175,7 +175,7 @@ if(FSFW_BUILD_TESTS)
configure_file(unittests/testcfg/TestsConfig.h.in tests/TestsConfig.h)
project(${FSFW_TEST_TGT} CXX C)
add_executable(${FSFW_TEST_TGT})
add_executable(${FSFW_TEST_TGT} unittests/tmtcpacket/testCcsdsReader.cpp)
if(IPO_SUPPORTED AND FSFW_ENABLE_IPO)
set_property(TARGET ${FSFW_TEST_TGT} PROPERTY INTERPROCEDURAL_OPTIMIZATION
TRUE)

View File

@ -1,3 +1,4 @@
target_sources(${FSFW_TEST_TGT} PRIVATE
TestCcsdsReader.cpp
testCcsdsCreator.cpp
testCcsdsReader.cpp
)

View File

@ -3,9 +3,9 @@
#include <cmath>
#include "fsfw/tmtcpacket/SpacePacketCreator.h"
#include "fsfw/tmtcpacket/SpacePacketReader.h"
TEST_CASE("CCSDS Test", "[ccsds]") {
TEST_CASE("CCSDS Creator", "[ccsds-creator]") {
SpacePacketCreator base = SpacePacketCreator(ccsds::PacketType::TC, true, 0x02,
ccsds::SequenceFlags::FIRST_SEGMENT, 0x34, 0x16);
std::array<uint8_t, 6> buf{};

View File

@ -0,0 +1,6 @@
#include <catch2/catch_test_macros.hpp>
#include "fsfw/tmtcpacket/SpacePacketReader.h"
TEST_CASE("CCSDS Reader", "[ccsds-reader]") {
}