Merge "Enable building whole MCTS and partial MCTS test suites." into main am: 1ce76dfb4c am: 6b827d7a19

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2896381

Change-Id: I082294dd5ad1bfaa6b615c433b9bf76cd405e85c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Tongbo Liu
2024-01-05 07:21:45 +00:00
committed by Automerger Merge Worker

View File

@@ -276,14 +276,17 @@ func (a *AndroidMkEntries) AddStrings(name string, value ...string) {
}
// AddCompatibilityTestSuites adds the supplied test suites to the EntryMap, with special handling
// for partial MTS test suites.
// for partial MTS and MCTS test suites.
func (a *AndroidMkEntries) AddCompatibilityTestSuites(suites ...string) {
// MTS supports a full test suite and partial per-module MTS test suites, with naming mts-${MODULE}.
// To reduce repetition, if we find a partial MTS test suite without an full MTS test suite,
// M(C)TS supports a full test suite and partial per-module MTS test suites, with naming mts-${MODULE}.
// To reduce repetition, if we find a partial M(C)TS test suite without an full M(C)TS test suite,
// we add the full test suite to our list.
if PrefixInList(suites, "mts-") && !InList("mts", suites) {
suites = append(suites, "mts")
}
if PrefixInList(suites, "mcts-") && !InList("mcts", suites) {
suites = append(suites, "mcts")
}
a.AddStrings("LOCAL_COMPATIBILITY_SUITE", suites...)
}