nes-proj/tests/Makefile.script-test
2017-11-12 14:25:29 +01:00

26 lines
448 B
Makefile

TESTS=$(wildcard ??-*.sh)
TESTLOGS=$(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)