diff --git a/Makefile.include b/Makefile.include index 06ca9e5b6e2fbd6f931e1bcc9b6a82842013bf53..54c253a81c9c333692cab8cbcdf995de39ede2cd 100644 --- a/Makefile.include +++ b/Makefile.include @@ -536,6 +536,13 @@ reset: $(call check_cmd,$(RESET),Reset program) $(RESET) $(RESET_FLAGS) +TESTS ?= $(foreach file,$(wildcard $(APPDIR)/tests/*),\ + $(shell test -f $(file) -a -x $(file) && echo $(file))) +test: $(TEST_DEPS) + $(Q) for t in $(TESTS); do \ + $$t || exit 1; \ + done + # Default OBJDUMPFLAGS for platforms which do not specify it: OBJDUMPFLAGS ?= -S -D -h