add the smallest test
This commit is contained in:
parent
21f887bcd8
commit
81fc9ad9e7
@ -23,5 +23,12 @@ set(CMAKE_CXX_EXTENSIONS ON)
|
|||||||
add_executable(teller teller.cc ext/lpm.c)
|
add_executable(teller teller.cc ext/lpm.c)
|
||||||
target_link_libraries(teller -lpcaudio -lpthread)
|
target_link_libraries(teller -lpcaudio -lpthread)
|
||||||
|
|
||||||
#enable_testing()
|
add_executable(testrunner testrunner.cc ext/lpm.c )
|
||||||
#add_test(testname testrunner)
|
target_link_libraries(testrunner -lpcaudio)
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
add_test(testname testrunner)
|
||||||
|
|
||||||
|
|
||||||
|
enable_testing()
|
||||||
|
add_test(testname testrunner)
|
||||||
|
6580
ext/doctest.h
Normal file
6580
ext/doctest.h
Normal file
File diff suppressed because it is too large
Load Diff
10
testrunner.cc
Normal file
10
testrunner.cc
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user