add the smallest test

This commit is contained in:
bert hubert 2022-08-29 16:06:39 +02:00
parent 21f887bcd8
commit 81fc9ad9e7
3 changed files with 6599 additions and 2 deletions

View File

@ -23,5 +23,12 @@ set(CMAKE_CXX_EXTENSIONS ON)
add_executable(teller teller.cc ext/lpm.c)
target_link_libraries(teller -lpcaudio -lpthread)
#enable_testing()
#add_test(testname testrunner)
add_executable(testrunner testrunner.cc ext/lpm.c )
target_link_libraries(testrunner -lpcaudio)
enable_testing()
add_test(testname testrunner)
enable_testing()
add_test(testname testrunner)

6580
ext/doctest.h Normal file

File diff suppressed because it is too large Load Diff

10
testrunner.cc Normal file
View File

@ -0,0 +1,10 @@
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include "ext/doctest.h"
#include "ext/lpm.h"
using namespace std;
TEST_CASE("basic test") {
CHECK(1==1);
}