2017-11-05 20:47:13 +00:00
|
|
|
TESTS=$(wildcard ??-*.sh)
|
2017-11-14 09:00:37 +00:00
|
|
|
TESTLOGS=$(sort $(patsubst %.sh,%.testlog,$(TESTS)))
|
2017-11-05 20:47:13 +00:00
|
|
|
|
|
|
|
CONTIKI=../..
|
|
|
|
|
2017-11-17 22:24:28 +00:00
|
|
|
all: clean summary
|
2017-11-05 20:47:13 +00:00
|
|
|
|
2017-11-17 22:24:28 +00:00
|
|
|
summary: cooja $(TESTLOGS)
|
|
|
|
@cat *.testlog > summary
|
|
|
|
@echo "========== Summary =========="
|
|
|
|
@cat summary
|
2017-11-05 20:47:13 +00:00
|
|
|
|
|
|
|
%.testlog: %.sh cooja
|
2018-03-27 09:01:41 +00:00
|
|
|
@echo "========== Running script test $(basename $@).sh =========="
|
2017-11-05 20:47:39 +00:00
|
|
|
@bash "$(basename $@).sh" "$(CONTIKI)"
|
2017-11-05 20:47:13 +00:00
|
|
|
|
|
|
|
clean:
|
2017-11-11 14:05:27 +00:00
|
|
|
@rm -f *.*log report summary
|
2017-11-05 20:47:13 +00:00
|
|
|
|
|
|
|
cooja: $(CONTIKI)/tools/cooja/dist/cooja.jar
|
|
|
|
$(CONTIKI)/tools/cooja/dist/cooja.jar:
|
|
|
|
(cd $(CONTIKI)/tools/cooja; ant jar)
|