1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make: add global test target

This commit is contained in:
Kaspar Schleiser 2018-07-12 23:09:39 +02:00
parent 8d1d509af9
commit adb25fb075

View File

@ -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