nes-proj/tests/Makefile.script-test

23 lines
514 B
Makefile
Raw Normal View History

TESTS=$(wildcard ??-*.sh)
TESTLOGS=$(sort $(patsubst %.sh,%.testlog,$(TESTS)))
CONTIKI=../..
2017-11-17 22:24:28 +00:00
all: clean summary
2017-11-17 22:24:28 +00:00
summary: cooja $(TESTLOGS)
@cat *.testlog > summary
@echo "========== Summary =========="
@cat summary
%.testlog: %.sh cooja
@echo "========== Running script test $(basename $@).sh =========="
@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)