Loading cc/androidmk.go +8 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,10 @@ func (benchmark *benchmarkDecorator) AndroidMk(ctx AndroidMkContext, ret *androi fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(benchmark.Properties.Test_suites, " ")) } if benchmark.Properties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", benchmark.Properties.Test_config) } fmt.Fprintln(w, "LOCAL_NATIVE_BENCHMARK := true") }) Loading @@ -266,6 +270,10 @@ func (test *testBinary) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(test.Properties.Test_suites, " ")) } if test.Properties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", test.Properties.Test_config) } }) androidMkWriteTestData(test.data, ctx, ret) Loading cc/test.go +9 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,10 @@ type TestBinaryProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } func init() { Loading Loading @@ -304,7 +308,11 @@ type BenchmarkProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } type benchmarkDecorator struct { Loading java/androidmk.go +8 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,10 @@ func (j *Test) AndroidMk() android.AndroidMkData { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(j.testProperties.Test_suites, " ")) } if j.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *j.testProperties.Test_config) } }) return data Loading Loading @@ -241,6 +245,10 @@ func (a *AndroidTest) AndroidMk() android.AndroidMkData { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(a.testProperties.Test_suites, " ")) } if a.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *a.testProperties.Test_config) } }) return data Loading java/java.go +4 −0 Original line number Diff line number Diff line Loading @@ -1352,6 +1352,10 @@ type testProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } type Test struct { Loading python/androidmk.go +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ func (p *testDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(p.binaryDecorator.binaryProperties.Test_suites, " ")) } // If the test config has an explicit config specified use it. if p.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *p.testProperties.Test_config) } }) base.subAndroidMk(ret, p.binaryDecorator.pythonInstaller) } Loading Loading
cc/androidmk.go +8 −0 Original line number Diff line number Diff line Loading @@ -248,6 +248,10 @@ func (benchmark *benchmarkDecorator) AndroidMk(ctx AndroidMkContext, ret *androi fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(benchmark.Properties.Test_suites, " ")) } if benchmark.Properties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", benchmark.Properties.Test_config) } fmt.Fprintln(w, "LOCAL_NATIVE_BENCHMARK := true") }) Loading @@ -266,6 +270,10 @@ func (test *testBinary) AndroidMk(ctx AndroidMkContext, ret *android.AndroidMkDa fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(test.Properties.Test_suites, " ")) } if test.Properties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", test.Properties.Test_config) } }) androidMkWriteTestData(test.data, ctx, ret) Loading
cc/test.go +9 −1 Original line number Diff line number Diff line Loading @@ -44,6 +44,10 @@ type TestBinaryProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } func init() { Loading Loading @@ -304,7 +308,11 @@ type BenchmarkProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } type benchmarkDecorator struct { Loading
java/androidmk.go +8 −0 Original line number Diff line number Diff line Loading @@ -107,6 +107,10 @@ func (j *Test) AndroidMk() android.AndroidMkData { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(j.testProperties.Test_suites, " ")) } if j.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *j.testProperties.Test_config) } }) return data Loading Loading @@ -241,6 +245,10 @@ func (a *AndroidTest) AndroidMk() android.AndroidMkData { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(a.testProperties.Test_suites, " ")) } if a.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *a.testProperties.Test_config) } }) return data Loading
java/java.go +4 −0 Original line number Diff line number Diff line Loading @@ -1352,6 +1352,10 @@ type testProperties struct { // list of compatibility suites (for example "cts", "vts") that the module should be // installed into. Test_suites []string `android:"arch_variant"` // the name of the test configuration (for example "AndroidTest.xml") that should be // installed with the module. Test_config *string `android:"arch_variant"` } type Test struct { Loading
python/androidmk.go +5 −0 Original line number Diff line number Diff line Loading @@ -66,6 +66,11 @@ func (p *testDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) { fmt.Fprintln(w, "LOCAL_COMPATIBILITY_SUITE :=", strings.Join(p.binaryDecorator.binaryProperties.Test_suites, " ")) } // If the test config has an explicit config specified use it. if p.testProperties.Test_config != nil { fmt.Fprintln(w, "LOCAL_TEST_CONFIG :=", *p.testProperties.Test_config) } }) base.subAndroidMk(ret, p.binaryDecorator.pythonInstaller) } Loading