Loading python/test.go +8 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,11 @@ type TestProperties struct { // the test Data []string `android:"path,arch_variant"` // Same as data, but will add dependencies on modules using the device's os variation and // the common arch variation. Useful for a host test that wants to embed a module built for // device. Device_common_data []string `android:"path_device_common"` // list of java modules that provide data that should be installed alongside the test. Java_data []string Loading Loading @@ -183,6 +188,9 @@ func (p *PythonTestModule) GenerateAndroidBuildActions(ctx android.ModuleContext for _, dataSrcPath := range android.PathsForModuleSrc(ctx, p.testProperties.Data) { p.data = append(p.data, android.DataPath{SrcPath: dataSrcPath}) } for _, dataSrcPath := range android.PathsForModuleSrc(ctx, p.testProperties.Device_common_data) { p.data = append(p.data, android.DataPath{SrcPath: dataSrcPath}) } if p.isTestHost() && len(p.testProperties.Data_device_bins_both) > 0 { ctx.VisitDirectDepsWithTag(dataDeviceBinsTag, func(dep android.Module) { Loading Loading
python/test.go +8 −0 Original line number Diff line number Diff line Loading @@ -65,6 +65,11 @@ type TestProperties struct { // the test Data []string `android:"path,arch_variant"` // Same as data, but will add dependencies on modules using the device's os variation and // the common arch variation. Useful for a host test that wants to embed a module built for // device. Device_common_data []string `android:"path_device_common"` // list of java modules that provide data that should be installed alongside the test. Java_data []string Loading Loading @@ -183,6 +188,9 @@ func (p *PythonTestModule) GenerateAndroidBuildActions(ctx android.ModuleContext for _, dataSrcPath := range android.PathsForModuleSrc(ctx, p.testProperties.Data) { p.data = append(p.data, android.DataPath{SrcPath: dataSrcPath}) } for _, dataSrcPath := range android.PathsForModuleSrc(ctx, p.testProperties.Device_common_data) { p.data = append(p.data, android.DataPath{SrcPath: dataSrcPath}) } if p.isTestHost() && len(p.testProperties.Data_device_bins_both) > 0 { ctx.VisitDirectDepsWithTag(dataDeviceBinsTag, func(dep android.Module) { Loading