Start basic test infrastructure
This commit is contained in:
1 parent
6d6d7cda56
commit
6fec208922
4 files changed
+27
No files matched your search
@@ -0,0 +1 @@
|
|||||||
|
/test/build/
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
$(MAKE) -C test
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
$(MAKE) -C test clean
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
INCLUDE := ../include
|
||||||
|
|
||||||
|
.PHONY: all
|
||||||
|
all: build/tests
|
||||||
|
build/tests
|
||||||
|
valgrind build/tests
|
||||||
|
|
||||||
|
build/tests: tests.cpp $(INCLUDE)/rcp.h
|
||||||
|
$(CC) -std=c++20 -g -Wall -I$(INCLUDE) -o $@ $<
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -rf build
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include <rcp.h>
|
||||||
|
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user