nes-proj/tests/Makefile.script-test

26 lines
456 B
Makefile
Raw Normal View History

TESTS=$(wildcard ??-*.sh)
TESTLOGS=$(sort $(patsubst %.sh,%.testlog,$(TESTS)))
CONTIKI=../..
tests: $(TESTLOGS)
2017-11-11 14:05:27 +00:00
summary: clean tests
ifeq ($(TESTS),)
@echo No tests > $@
else
2017-11-11 14:05:27 +00:00
@cat $(TESTLOGS) > $@
endif
all: cooja clean tests
%.testlog: %.sh cooja
@bash "$(basename $@).sh" "$(CONTIKI)"
clean:
2017-11-11 14:05:27 +00:00
@rm -f *.*log report summary
cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar
$(CONTIKI)/tools/cooja/dist/cooja.jar:
(cd $(CONTIKI)/tools/cooja; ant jar)