BugID:17865306: Add suffix for test components
Allow to build test components with:
test="kv,rhino" or test="kv_test,rhino_test" or test="kv,rhino_test"
@@ -45,7 +45,7 @@ GET_BARE_LOCATION =$(patsubst $(call ESCAPE_BACKSLASHES,$(SOURCE_ROOT))%,%,$(str
define PREPROCESS_TEST_COMPONENT
$(if $(filter yts,$(COMPONENTS)), \
-$(if $(test), $(eval TEST_COMPONENTS := $(strip $(subst $(COMMA), $(SPACE), $(test)))),) \
+$(if $(test), $(eval TEST_COMPONENTS := $(foreach tmpcomp,$(strip $(subst $(COMMA),$(SPACE),$(test))),$(if $(findstring _test,$(tmpcomp)),$(tmpcomp),$(addsuffix _test,$(tmpcomp))))),) \
$(eval COMPONENTS += $(TEST_COMPONENTS)))
endef
