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

View File

@ -1,17 +1,20 @@
CFLAGS=-I../../cube/User/Inc
CFLAGS=-I../cube/User/Inc
test: ringbuffer.o test.o
gcc -o $@ -lcunit $^
./test
ringbuffer.o: ../../cube/User/Src/ringbuffer.c
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 *.o test
rm -f *.o test

1
tools/startBuildEnv.ps1 Normal file
View File

@ -0,0 +1 @@
docker run -it --rm -v ${PWD}:/mnt wollud1969/build-env-arm-none-eabi:1.1.0 bash

1
tools/startTestEnv.ps1 Normal file
View File

@ -0,0 +1 @@
docker run -it --rm -v ${PWD}:/work wollud1969/build-env-c:1.2.0 bash