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,13 @@
#include <gtest/gtest.h>
TEST(GenericSmokeGTest, BasicStringOps) {
std::string s = "MiXeD";
for (auto &c : s) c = (char)std::tolower(c);
EXPECT_EQ(s, "mixed");
}
TEST(GenericSmokeGTest, VariantLike) {
// simulate basic core logic check
int v = 42;
EXPECT_EQ(v + 1, 43);
}