1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #10573 from cladmi/pr/tests/compile_tests_in_docker

tests: compile-tests should only be executed in building machine
This commit is contained in:
Juan I Carrano 2018-12-10 15:46:23 +01:00 committed by GitHub
commit c644110bdb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

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

View File

@ -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');\