From 9b0137c9aaf3a0ba2c8ee24e5c719905393f2798 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Tue, 12 Mar 2024 22:42:14 -0700 Subject: [PATCH] added the simple test --- tests/simple_test/CMakeLists.txt | 19 +++++++++++++++++++ tests/simple_test/simple_test.cpp | 27 +++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 tests/simple_test/CMakeLists.txt create mode 100644 tests/simple_test/simple_test.cpp diff --git a/tests/simple_test/CMakeLists.txt b/tests/simple_test/CMakeLists.txt new file mode 100644 index 0000000..228e537 --- /dev/null +++ b/tests/simple_test/CMakeLists.txt @@ -0,0 +1,19 @@ + +# TEST_RUNNER +add_executable(simple_test + simple_test.cpp +) + +target_link_libraries(simple_test + ${CPPUTEST_LDFLAGS} +) + + +# TEST_DIRS + +# INCLUDE_DIRS + +# Build unit tests and link with other sources. + +# Run the tests once build finished. + diff --git a/tests/simple_test/simple_test.cpp b/tests/simple_test/simple_test.cpp new file mode 100644 index 0000000..f6b4cc5 --- /dev/null +++ b/tests/simple_test/simple_test.cpp @@ -0,0 +1,27 @@ +#include +#include "CppUTest/TestHarness.h" + +/* +extern C +{ +#include "simple.h" +} +*/ + + +TEST_GROUP(simple_test) +{ + void setup() + { + + } + void teardown() + { + + } +}; + +TEST(simple_test, passing_test) +{ + CHECK_TRUE(1); +}