ADD: added tracklist update and systemstate update messages with tests and some improvements of simtrack

This commit is contained in:
Henry Winkel
2023-12-19 13:30:35 +01:00
parent d345fd5bc3
commit f83852bf6b
25 changed files with 4509 additions and 147 deletions

View File

@@ -1,4 +1,5 @@
#include <thread>
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
@@ -24,7 +25,8 @@ SCENARIO("Testing the SimCore Sensor")
THEN("check if Track attributes are correct")
{
REQUIRE(Name.getValue() == "hello world");
REQUIRE(Name.getValidity() == true);
REQUIRE(Name.isValid() == true);
std::this_thread::sleep_for(std::chrono::milliseconds(100));
REQUIRE(Name.getWriteTime() < std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch()).count());