mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-02 12:14:32 +02:00
make: look for TEST_COMPONENTS in all component directories
fixes https://github.com/espressif/esp-idf/issues/354
This commit is contained in:
@@ -134,7 +134,7 @@ endif
|
|||||||
|
|
||||||
# If TEST_COMPONENTS is set, create variables for building unit tests
|
# If TEST_COMPONENTS is set, create variables for building unit tests
|
||||||
ifdef TEST_COMPONENTS
|
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_PATHS := $(TEST_COMPONENTS)
|
||||||
TEST_COMPONENT_NAMES := $(foreach comp,$(TEST_COMPONENTS),$(lastword $(subst /, ,$(dir $(comp))))_test)
|
TEST_COMPONENT_NAMES := $(foreach comp,$(TEST_COMPONENTS),$(lastword $(subst /, ,$(dir $(comp))))_test)
|
||||||
endif
|
endif
|
||||||
|
Reference in New Issue
Block a user