first bits of a dynamc lib
This commit is contained in:
2
binding-tests/.gitignore
vendored
Normal file
2
binding-tests/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
*.o
|
||||
doctest
|
||||
19
binding-tests/Makefile
Normal file
19
binding-tests/Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
CXX=g++
|
||||
INC=-I ../lib
|
||||
LIB=-L ../target/debug
|
||||
RPATH=-Wl,-rpath,../target/debug
|
||||
|
||||
TESTS = uuid.cpp
|
||||
|
||||
.PHONY: all test
|
||||
|
||||
all: test
|
||||
|
||||
test: doctest
|
||||
@./doctest --no-version --no-intro
|
||||
|
||||
%.o: %.cpp ../lib/taskchampion.h
|
||||
$(CXX) $(INC) -c $< -o $@
|
||||
|
||||
doctest: doctest.o $(subst .cpp,.o,$(TESTS))
|
||||
$(CXX) $(LIB) $(RPATH) $< $(subst .cpp,.o,$(TESTS)) -ltaskchampion -o $@
|
||||
2
binding-tests/doctest.cpp
Normal file
2
binding-tests/doctest.cpp
Normal file
@@ -0,0 +1,2 @@
|
||||
#define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
|
||||
#include "doctest.h"
|
||||
6816
binding-tests/doctest.h
Normal file
6816
binding-tests/doctest.h
Normal file
File diff suppressed because it is too large
Load Diff
7
binding-tests/uuid.cpp
Normal file
7
binding-tests/uuid.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include "doctest.h"
|
||||
#include "taskchampion.h"
|
||||
|
||||
TEST_CASE("creating a UUID") {
|
||||
StoragePtr *storage = storage_new_in_memory();
|
||||
storage_free(storage);
|
||||
}
|
||||
Reference in New Issue
Block a user