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
|
|
|
|
2018-10-21 19:32:32 +00:00
|
|
|
summary: $(TESTLOGS)
|
2017-11-17 22:24:28 +00:00
|
|
|
@cat *.testlog > summary
|
|
|
|
@echo "========== Summary =========="
|
|
|
|
@cat summary
|
2017-11-05 20:47:13 +00:00
|
|
|
|
2018-10-21 19:32:32 +00:00
|
|
|
%.testlog: %.sh
|
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
|