From: Ivan Grokhotkov Date: Wed, 1 Mar 2017 03:12:10 +0000 (+0800) Subject: make: look for TEST_COMPONENTS in all component directories X-Git-Tag: v2.1-rc1~277^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf7f0bf52cc8f14566fb479d4b3145d057ae60d2;p=esp-idf make: look for TEST_COMPONENTS in all component directories fixes https://github.com/espressif/esp-idf/issues/354 --- diff --git a/make/project.mk b/make/project.mk index 04015a8a8c..d5a72c5d1c 100644 --- a/make/project.mk +++ b/make/project.mk @@ -134,7 +134,7 @@ endif # If TEST_COMPONENTS is set, create variables for building unit tests ifdef TEST_COMPONENTS -override TEST_COMPONENTS := $(foreach comp,$(TEST_COMPONENTS),$(wildcard $(IDF_PATH)/components/$(comp)/test)) +override TEST_COMPONENTS := $(foreach comp,$(TEST_COMPONENTS),$(firstword $(foreach dir,$(COMPONENT_DIRS),$(wildcard $(dir)/$(comp)/test)))) TEST_COMPONENT_PATHS := $(TEST_COMPONENTS) TEST_COMPONENT_NAMES := $(foreach comp,$(TEST_COMPONENTS),$(lastword $(subst /, ,$(dir $(comp))))_test) endif