diff --git a/tests/cortexm_common_ldscript/Makefile b/tests/cortexm_common_ldscript/Makefile index 5bd527ef86..d04e375c71 100644 --- a/tests/cortexm_common_ldscript/Makefile +++ b/tests/cortexm_common_ldscript/Makefile @@ -27,7 +27,10 @@ include $(RIOTBASE)/Makefile.include COMPILE_TESTS = test-elffile-overflow test-elffile-fw_rom_length COMPILE_TESTS += tests-offsets tests-fw_rom_len tests-rom-overflow +# The tests should only be executed in build environment +ifneq ($(BUILD_IN_DOCKER),1) all: compile-tests +endif compile-tests: $(COMPILE_TESTS) .PHONY: compile-tests $(COMPILE_TESTS) diff --git a/tests/libc_newlib/Makefile b/tests/libc_newlib/Makefile index 140d341b3b..72024805c5 100644 --- a/tests/libc_newlib/Makefile +++ b/tests/libc_newlib/Makefile @@ -7,7 +7,10 @@ include $(RIOTBASE)/Makefile.include # Compile time tests .PHONY: compile-test test-newlib-nano +# The tests should only be executed in build environment +ifneq ($(BUILD_IN_DOCKER),1) all: compile-test +endif ifneq (,$(filter newlib,$(USEMODULE))) COMPILE_TESTS += test-newlib @@ -29,6 +32,7 @@ endif # https://github.com/32bitmicro/newlib-nano-1.0/blob/f157c994b9a2c4bd8d0cfe9fe8fdd9cd54f8c63b/newlib/README.nano#L32 test-newlib: $(ELFFILE) + $(Q)test -f $^ $(Q)\ PRINTF_ADDR=$$($(NM) $^ | sed -n '/ printf$$/ s/ .*//p');\ IPRINTF_ADDR=$$($(NM) $^ | sed -n '/ iprintf$$/ s/ .*//p');\