Added empty test for the Radio module.

This commit is contained in:
jakeg00dwin 2024-09-26 16:22:25 -07:00
parent d534b1bd56
commit bbc4e4597d
3 changed files with 52 additions and 2 deletions

View File

@ -1,6 +1,7 @@
project(Tests) project(Tests)
# TEST_DIRS # TEST_DIRS
add_subdirectory(Radio)
add_subdirectory(simple_test) add_subdirectory(simple_test)
# TEST_RUNNER # TEST_RUNNER
@ -11,6 +12,7 @@ add_executable(AllTests
target_link_libraries(AllTests target_link_libraries(AllTests
${CPPUTEST_LIBRARIES}/libCppUTest.a ${CPPUTEST_LIBRARIES}/libCppUTest.a
${CPPUTEST_LIBRARIES}/libCppUTestExt.a ${CPPUTEST_LIBRARIES}/libCppUTestExt.a
# TEST_LINKS # TEST_LINKS
Radio
simple_test simple_test
) )

View File

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

View File

@ -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);
}