Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1643c88c authored by Tongbo Liu's avatar Tongbo Liu
Browse files

[DO NOT MERGE] Build MCTS on mainline branches

Ignore-AOSP-First: test for mainline internal branch
Bug: 323532076
Test: m mcts
Change-Id: I0357c29fdd604c48859f5b5c5bf96e27da41fef6
parent 66eca9b5
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -275,14 +275,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,
	// MT(C)S supports a full test suite and partial per-module MT(C)S test suites, with naming mts-${MODULE}.
	// To reduce repetition, if we find a partial MT(C)S test suite without an full MTS 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...)
}