If you're using gmake 4.0 or newer, display simulator test output nicer

pull/1147/head
Jesse Vincent 3 years ago
parent 091419c919
commit 493528a556
No known key found for this signature in database
GPG Key ID: 122F5DF7108E4046

@ -18,6 +18,11 @@ MAKEFLAGS += --no-builtin-rules
.SUFFIXES: .SUFFIXES:
# GNU Make earlier than 4.0 don't have the output-sync option, but we need it
# to make parallel simulator test output readable. (otherwise it gets interleaved)
ifeq ($(shell test $(firstword $(subst ., ,$(MAKE_VERSION))) -ge 4; echo $$?),0)
SUBDIR_MAKEFLAGS+=--output-sync=target
endif
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/etc/makefiles/arduino-cli.mk include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/etc/makefiles/arduino-cli.mk

@ -94,6 +94,3 @@ Makefile:
${TESTS}: ${libcommon_a} googletest ${TESTS}: ${libcommon_a} googletest
$(QUIET) ${MAKE} -f ${top_dir}/testing/makefiles/testcase.mk -C $@ testcase=$@ build run $(QUIET) ${MAKE} -f ${top_dir}/testing/makefiles/testcase.mk -C $@ testcase=$@ build run
%+run:
$(QUIET) ${MAKE} -s -f ${top_dir}/testing/makefiles/testcase.mk -C $* testcase=$* run

Loading…
Cancel
Save