nes-proj/tests/Makefile.script-test
2017-11-14 10:03:10 +01:00

26 lines
456 B
Makefile

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