Start basic test infrastructure
This commit is contained in:
parent
6d6d7cda56
commit
6fec208922
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/test/build/
|
||||||
7
Makefile
Normal file
7
Makefile
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
.PHONY: test
|
||||||
|
test:
|
||||||
|
$(MAKE) -C test
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
$(MAKE) -C test clean
|
||||||
13
test/Makefile
Normal file
13
test/Makefile
Normal file
@ -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
|
||||||
6
test/tests.cpp
Normal file
6
test/tests.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include <rcp.h>
|
||||||
|
|
||||||
|
int main(int argc, char * argv[])
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user