aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKimberly Kreider <kkreider@google.com>2020-12-10 23:01:28 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-12-10 23:01:28 +0000
commit04878ff89b1bfad9f9dca84bc5e4daa2604a2237 (patch)
tree4803823ac766f0c146883d608712d5ed37ee0e74
parent7eb5ddcb24d03a74dffa936c53487080690dfc39 (diff)
parent7cd04064d28ef42502311ca5b41b396c199d8c2d (diff)
downloadbuild-04878ff89b1bfad9f9dca84bc5e4daa2604a2237.tar.gz
Merge "Merge "Update mts task to make mts-${MODULE} test suites" am: 961ef44f0b" into mainline-prod
-rw-r--r--core/tasks/mts.mk21
1 files changed, 14 insertions, 7 deletions
diff --git a/core/tasks/mts.mk b/core/tasks/mts.mk
index e800505e56..e0848560d1 100644
--- a/core/tasks/mts.mk
+++ b/core/tasks/mts.mk
@@ -13,13 +13,20 @@
# limitations under the License.
ifneq ($(wildcard test/mts/README.md),)
-test_suite_name := mts
-test_suite_tradefed := mts-tradefed
-test_suite_readme := test/mts/README.md
-include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk
+mts_test_suites :=
+mts_test_suites += mts
+
+$(foreach module, $(mts_modules), $(eval mts_test_suites += mts-$(module)))
+
+$(foreach suite, $(mts_test_suites), \
+ $(eval test_suite_name := $(suite)) \
+ $(eval test_suite_tradefed := mts-tradefed) \
+ $(eval test_suite_readme := test/mts/README.md) \
+ $(eval include $(BUILD_SYSTEM)/tasks/tools/compatibility.mk) \
+ $(eval .PHONY: $(suite)) \
+ $(eval $(suite): $(compatibility_zip)) \
+ $(eval $(call dist-for-goals, $(suite), $(compatibility_zip))) \
+)
-.PHONY: mts
-mts: $(compatibility_zip)
-$(call dist-for-goals, mts, $(compatibility_zip))
endif