added the simple test
This commit is contained in:
parent
273a74cba8
commit
9b0137c9aa
|
@ -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.
|
||||
|
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue