diff --git a/core/definitions.mk b/core/definitions.mk index a442bc0e0..7450d4fc0 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -2857,7 +2857,9 @@ endef # Can be passed a subdirectory to use for the common testcase directory. define compatibility_suite_dirs $(strip \ - $(COMPATIBILITY_TESTCASES_OUT_$(1)) \ + $(if $(COMPATIBILITY_TESTCASES_OUT_INCLUDE_MODULE_FOLDER_$(1)),\ + $(COMPATIBILITY_TESTCASES_OUT_$(1))/$(LOCAL_MODULE)$(2),\ + $(COMPATIBILITY_TESTCASES_OUT_$(1))) \ $($(my_prefix)OUT_TESTCASES)/$(LOCAL_MODULE)$(2)) endef diff --git a/core/main.mk b/core/main.mk index 1b2b3e6e7..618594b20 100644 --- a/core/main.mk +++ b/core/main.mk @@ -75,6 +75,8 @@ $(shell mkdir -p $(EMPTY_DIRECTORY) && rm -rf $(EMPTY_DIRECTORY)/*) -include test/suite_harness/tools/cts-instant-tradefed/build/config.mk # MTS-specific config. -include test/mts/tools/build/config.mk +# VTS-Core-specific config. +-include test/vts/tools/vts-core-tradefed/build/config.mk # Clean rules .PHONY: clean-dex-files diff --git a/core/tasks/vts-core-tests.mk b/core/tasks/vts-core-tests.mk index fb1e1c61f..95b729ab7 100644 --- a/core/tasks/vts-core-tests.mk +++ b/core/tasks/vts-core-tests.mk @@ -44,6 +44,13 @@ $(vts-core-zip) : $(COMPATIBILITY.vts-core.FILES) $(my_host_shared_lib_for_vts_c $(PRIVATE_vts_core_list) vts-core: $(vts-core-zip) -$(call dist-for-goals, vts-core, $(vts-core-zip) $(vts-core-list-zip) $(vts-core-configs-zip)) + +test_suite_name := vts-core +test_suite_tradefed := vts-core-tradefed +test_suite_readme := test/vts/tools/vts-core-tradefed/README +include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk +vts-core: $(compatibility_zip) + +$(call dist-for-goals, vts-core, $(vts-core-zip) $(vts-core-list-zip) $(vts-core-configs-zip) $(compatibility_zip)) tests: vts-core