nes-proj/tests/Makefile.script-test
2018-10-21 20:32:48 +01:00

19 lines
379 B
Makefile

TESTS=$(wildcard ??-*.sh)
TESTLOGS=$(sort $(patsubst %.sh,%.testlog,$(TESTS)))
CONTIKI=../..
all: clean summary
summary: $(TESTLOGS)
@cat *.testlog > summary
@echo "========== Summary =========="
@cat summary
%.testlog: %.sh
@echo "========== Running script test $(basename $@).sh =========="
@bash "$(basename $@).sh" "$(CONTIKI)"
clean:
@rm -f *.*log report summary