nes-proj/tests/Makefile.script-test

19 lines
379 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
summary: $(TESTLOGS)
2017-11-17 22:24:28 +00:00
@cat *.testlog > summary
@echo "========== Summary =========="
@cat summary
%.testlog: %.sh
@echo "========== Running script test $(basename $@).sh =========="
@bash "$(basename $@).sh" "$(CONTIKI)"
clean:
2017-11-11 14:05:27 +00:00
@rm -f *.*log report summary