diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7bcd8ee..1441c9b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,6 +1,7 @@ project(Tests) -# TEST_DIRS +# TEST_DIRS +add_subdirectory(Radio) add_subdirectory(simple_test) # TEST_RUNNER @@ -11,6 +12,7 @@ add_executable(AllTests target_link_libraries(AllTests ${CPPUTEST_LIBRARIES}/libCppUTest.a ${CPPUTEST_LIBRARIES}/libCppUTestExt.a - # TEST_LINKS + # TEST_LINKS + Radio simple_test ) diff --git a/tests/Radio/CMakeLists.txt b/tests/Radio/CMakeLists.txt new file mode 100644 index 0000000..df7865b --- /dev/null +++ b/tests/Radio/CMakeLists.txt @@ -0,0 +1,10 @@ +# TEST_RUNNER +add_library(test_Radio + test_Radio.cpp +) + +target_link_libraries(test_Radio + ${CPPUTEST_LIBRARIES}/libCppUTest.a + ${CPPUTEST_LIBRARIES}/libCppUTestExt.a + Radio +) diff --git a/tests/Radio/test_Radio.cpp b/tests/Radio/test_Radio.cpp new file mode 100644 index 0000000..2a4d121 --- /dev/null +++ b/tests/Radio/test_Radio.cpp @@ -0,0 +1,38 @@ +/* + * Author: username + * Date: todays_date + * filename: test_Radio.c + * description: module_purpose + */ + +#include "CppUTest/CommandLineTestRunner.h" + +extern "C" +{ +#include "Radio.h" +} + +TEST_GROUP(FirstTestGroup) +{ + void setup() + { + + } + void teardown() + { + + } +}; + +TEST(FirstTestGroup, FirstTest) +{ + FAIL("Fail me!"); +} + +TEST(FirstTestGroup, SecondTest) +{ + STRCMP_EQUAL("hello", "world"); + LONGS_EQUAL(1, 2); + CHECK(false); +} +