Merge branch 'feature/unit_test_config_components' into 'master'

unit-test-app: allow building subset of tests for a configuration

See merge request idf/esp-idf!2331
This commit is contained in:
Ivan Grokhotkov
2018-06-12 10:01:42 +08:00
12 changed files with 77 additions and 14 deletions

View File

@@ -32,7 +32,8 @@ BOOTLOADER_MAKE= +\
V=$(V) \
BUILD_DIR_BASE=$(BOOTLOADER_BUILD_DIR) \
TEST_COMPONENTS= \
TESTS_ALL=
TESTS_ALL= \
EXCLUDE_COMPONENTS=
.PHONY: bootloader-clean bootloader-flash bootloader-list-components bootloader $(BOOTLOADER_BIN)

View File

@@ -5,7 +5,9 @@
LS_TESTDIR := ../libsodium/test/default
LS_TEST_OBJDIR := libsodium/test/default
ifdef TESTS_ALL
TESTS_ALL ?= 0
ifeq ($(TESTS_ALL),1)
$(info not linking libsodium tests, use 'TEST_COMPONENTS=libsodium' to test it)
else
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive