mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Make 'test-representative' work as expected.
This commit is contained in:
parent
b329f0d70b
commit
344bddf882
1 changed files with 6 additions and 2 deletions
|
@ -430,7 +430,7 @@ TESTS_TARGET_SPECIFIC_EXPANDED = $(foreach test,$(TESTS_TARGET_SPECIFIC),$(forea
|
|||
|
||||
TESTS = $(foreach test,$(TEST_BASENAMES),$(if $($(test)_EXPAND),,$(test)))
|
||||
TESTS_ALL = $(TESTS) $(TESTS_TARGET_SPECIFIC_EXPANDED)
|
||||
TESTS_REPRESENTATIVE = $(TESTS) $(foreach test,$(TEST_TARGET_SPECIFIC), \
|
||||
TESTS_REPRESENTATIVE = $(TESTS) $(foreach test,$(TESTS_TARGET_SPECIFIC), \
|
||||
$(test).$(word 1,$(filter-out $($(test)_BLACKLIST),$(VALID_TARGETS))))
|
||||
|
||||
# All Google Test headers. Usually you shouldn't change this
|
||||
|
@ -615,7 +615,11 @@ endef
|
|||
ifeq ($(MAKECMDGOALS),test-all)
|
||||
$(eval $(foreach test,$(TESTS_ALL),$(call test-specific-stuff,$(test))))
|
||||
else
|
||||
$(eval $(foreach test,$(TESTS),$(call test-specific-stuff,$(test))))
|
||||
ifeq ($(MAKECMDGOALS),test-representative)
|
||||
$(eval $(foreach test,$(TESTS_REPRESENTATIVE),$(call test-specific-stuff,$(test))))
|
||||
else
|
||||
$(eval $(foreach test,$(TESTS),$(call test-specific-stuff,$(test))))
|
||||
endif
|
||||
endif
|
||||
|
||||
$(foreach test,$(TESTS_ALL),$(if $($(basename $(test))_SRC),,$(error \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue