test scripts
This commit is contained in:
23
tests/test1/Makefile
Normal file
23
tests/test1/Makefile
Normal file
@ -0,0 +1,23 @@
|
||||
CFLAGS=-I../../cube/User/Inc -DTEST
|
||||
|
||||
test: ringbuffer.o test.o
|
||||
gcc -o $@ -lcunit $^
|
||||
|
||||
ringbuffer.o: ../../cube/User/Src/ringbuffer.c
|
||||
gcc -c -o $@ $(CFLAGS) $^
|
||||
|
||||
logger.o: ../../cube/User/Src/logger.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
|
||||
|
1079
tests/test1/test.c
Normal file
1079
tests/test1/test.c
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user