test stuff

This commit is contained in:
2020-10-29 11:50:59 +01:00
parent b19a21f512
commit 08c4907526
4 changed files with 9 additions and 4 deletions

20
tests/Makefile Normal file
View File

@ -0,0 +1,20 @@
CFLAGS=-I../cube/User/Inc
test: ringbuffer.o test.o
gcc -o $@ -lcunit $^
ringbuffer.o: ../cube/User/Src/ringbuffer.c
gcc -c -o $@ $(CFLAGS) $^
test.o: test.c
gcc -c -o $@ $(CFLAGS) $^
.PHONY: run
run: test
./test
.PHONY: clean
clean:
rm -f *.o test