Start basic test infrastructure

This commit is contained in:
Josh Holtrop 2026-02-23 17:43:20 -05:00
parent 6d6d7cda56
commit 6fec208922
4 changed files with 27 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/test/build/

7
Makefile Normal file
View File

@ -0,0 +1,7 @@
.PHONY: test
test:
$(MAKE) -C test
.PHONY: clean
clean:
$(MAKE) -C test clean

13
test/Makefile Normal file
View 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
View File

@ -0,0 +1,6 @@
#include <rcp.h>
int main(int argc, char * argv[])
{
return 0;
}