make: add global test target
This commit is contained in:
parent
8d1d509af9
commit
adb25fb075
@ -536,6 +536,13 @@ reset:
|
|||||||
$(call check_cmd,$(RESET),Reset program)
|
$(call check_cmd,$(RESET),Reset program)
|
||||||
$(RESET) $(RESET_FLAGS)
|
$(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:
|
# Default OBJDUMPFLAGS for platforms which do not specify it:
|
||||||
OBJDUMPFLAGS ?= -S -D -h
|
OBJDUMPFLAGS ?= -S -D -h
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user