start ccsds reader unittests
This commit is contained in:
parent
3d2af203f2
commit
95b476d4bd
@ -175,7 +175,7 @@ if(FSFW_BUILD_TESTS)
|
|||||||
configure_file(unittests/testcfg/TestsConfig.h.in tests/TestsConfig.h)
|
configure_file(unittests/testcfg/TestsConfig.h.in tests/TestsConfig.h)
|
||||||
|
|
||||||
project(${FSFW_TEST_TGT} CXX C)
|
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)
|
if(IPO_SUPPORTED AND FSFW_ENABLE_IPO)
|
||||||
set_property(TARGET ${FSFW_TEST_TGT} PROPERTY INTERPROCEDURAL_OPTIMIZATION
|
set_property(TARGET ${FSFW_TEST_TGT} PROPERTY INTERPROCEDURAL_OPTIMIZATION
|
||||||
TRUE)
|
TRUE)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
target_sources(${FSFW_TEST_TGT} PRIVATE
|
target_sources(${FSFW_TEST_TGT} PRIVATE
|
||||||
TestCcsdsReader.cpp
|
testCcsdsCreator.cpp
|
||||||
|
testCcsdsReader.cpp
|
||||||
)
|
)
|
||||||
|
@ -3,9 +3,9 @@
|
|||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
|
||||||
#include "fsfw/tmtcpacket/SpacePacketCreator.h"
|
#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,
|
SpacePacketCreator base = SpacePacketCreator(ccsds::PacketType::TC, true, 0x02,
|
||||||
ccsds::SequenceFlags::FIRST_SEGMENT, 0x34, 0x16);
|
ccsds::SequenceFlags::FIRST_SEGMENT, 0x34, 0x16);
|
||||||
std::array<uint8_t, 6> buf{};
|
std::array<uint8_t, 6> buf{};
|
6
unittests/tmtcpacket/testCcsdsReader.cpp
Normal file
6
unittests/tmtcpacket/testCcsdsReader.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <catch2/catch_test_macros.hpp>
|
||||||
|
#include "fsfw/tmtcpacket/SpacePacketReader.h"
|
||||||
|
|
||||||
|
TEST_CASE("CCSDS Reader", "[ccsds-reader]") {
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user