Merge "Allow vts config to be packaged in other test suites" am: 24f3c99af8 am: b8acf86cda

Change-Id: Idf504399548dd83a1040d2a40a77889ed17d7f83
This commit is contained in:
Automerger Merge Worker
2020-02-19 22:29:52 +00:00

View File

@@ -17,6 +17,7 @@ package android
import ( import (
"fmt" "fmt"
"io" "io"
"strings"
) )
func init() { func init() {
@@ -26,6 +27,8 @@ func init() {
type vtsConfigProperties struct { type vtsConfigProperties struct {
// Override the default (AndroidTest.xml) test manifest file name. // Override the default (AndroidTest.xml) test manifest file name.
Test_config *string Test_config *string
// Additional test suites to add the test to.
Test_suites []string `android:"arch_variant"`
} }
type VtsConfig struct { type VtsConfig struct {
@@ -50,7 +53,8 @@ func (me *VtsConfig) AndroidMk() AndroidMkData {
fmt.Fprintf(w, "LOCAL_TEST_CONFIG := %s\n", fmt.Fprintf(w, "LOCAL_TEST_CONFIG := %s\n",
*me.properties.Test_config) *me.properties.Test_config)
} }
fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE := vts") fmt.Fprintf(w, "LOCAL_COMPATIBILITY_SUITE := vts %s\n",
strings.Join(me.properties.Test_suites, " "))
}, },
} }
return androidMkData return androidMkData