tests: add optional GoogleTest-based smoke-tests and CMake support (BUILD_GTEST_SMOKE)

This commit is contained in:
torsten committed 2026-07-17 17:24:50 +02:00
1 parent f4d1602d87
commit b44bb09891
4 files changed
+82 -3

No files matched your search

@@ -0,0 +1,7 @@
#include <gtest/gtest.h>
TEST(DataTopicSmokeGTest, Format) {
char buf[64];
snprintf(buf, sizeof(buf), "%d-%s", 42, "abc");
EXPECT_STREQ(buf, "42-abc");
}