added the simple test

This commit is contained in:
jakeg00dwin 2024-03-12 22:42:14 -07:00
parent 273a74cba8
commit 9b0137c9aa
2 changed files with 46 additions and 0 deletions

View File

@ -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.

View File

@ -0,0 +1,27 @@
#include <cstdlib>
#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);
}