Draft version of test system

This commit is contained in:
sheinz 2016-08-18 18:09:36 +03:00
parent 95081a1e9f
commit 5ace1c5bff
12 changed files with 290 additions and 19 deletions

23
tests/Makefile Normal file
View file

@ -0,0 +1,23 @@
TESTS = $(shell find $(dir $(lastword $(MAKEFILE_LIST))) \
-mindepth 2 -maxdepth 2 -name Makefile | sed s/Makefile//g)
# Generate some dummy .dummybuild/.dummyrebuild target files
TESTS_BUILD = $(patsubst %,%.dummybuild,$(TESTS))
TESTS_TEST = $(patsubst %,%.dummytest,$(TESTS))
all: $(TESTS_BUILD)
$(TESTS_TEST): $(TESTS_BUILD)
test: $(TESTS_TEST)
%.dummybuild:
$(MAKE) -C $(dir $@)
%.dummytest:
$(MAKE) -C $(dir $@) flash
$(MAKE) -C $(dir $@) run_test
.PHONY: all test
.NOTPARALLEL:
.ONESHELL: