Merge "Tell make that sh_test is a NATIVE_TEST"

This commit is contained in:
Treehugger Robot 2019-03-22 02:58:42 +00:00 committed by Gerrit Code Review
commit 7446606eeb
1 changed files with 1 additions and 0 deletions

View File

@ -139,6 +139,7 @@ func (s *ShBinary) AndroidMk() AndroidMkData {
func (s *ShTest) AndroidMk() AndroidMkData {
data := s.ShBinary.AndroidMk()
data.Class = "NATIVE_TESTS"
data.Extra = append(data.Extra, func(w io.Writer, outputFile Path) {
fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=",
strings.Join(s.testProperties.Test_suites, " "))