Re-work MPSoC handler module
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
@ -6,5 +6,6 @@ target_sources(${UNITTEST_NAME} PRIVATE
|
||||
testEnvironment.cpp
|
||||
testGenericFilesystem.cpp
|
||||
hdlcEncodingRw.cpp
|
||||
mpsocTests.cpp
|
||||
printChar.cpp
|
||||
)
|
||||
)
|
||||
|
14
unittest/mpsocTests.cpp
Normal file
14
unittest/mpsocTests.cpp
Normal file
@ -0,0 +1,14 @@
|
||||
|
||||
#include <catch2/catch_test_macros.hpp>
|
||||
|
||||
TEST_CASE("MPSoC helper tests", "[payload]") {
|
||||
char divStr[16]{};
|
||||
uint32_t divParam = 0;
|
||||
|
||||
SECTION("Simple Test") {
|
||||
divParam = 3;
|
||||
CHECK(divParam < 999);
|
||||
sprintf(divStr, "DIV%03u", divParam);
|
||||
REQUIRE(strcmp(divStr, "DIV003") == 0);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user