Support Turbine in Soong.
If sdk jars(android_stubs_current, etc) are compiled using soong java
modules, we have to filter them when running Java build with Turbine.
TODO: provide more unit-tests.
Test: m clean && m -j32; go test java_test
Change-Id: Iad7c241b0e8b0ca760950733f513124b56c84564
diff --git a/android/testing.go b/android/testing.go
index 62b91e2..f5777ba 100644
--- a/android/testing.go
+++ b/android/testing.go
@@ -95,6 +95,15 @@
panic(fmt.Errorf("couldn't find rule %q", rule))
}
+func (m TestingModule) Description(desc string) ModuleBuildParams {
+ for _, p := range m.module.BuildParamsForTests() {
+ if p.Description == desc {
+ return p
+ }
+ }
+ panic(fmt.Errorf("couldn't find description %q", desc))
+}
+
func (m TestingModule) Output(file string) ModuleBuildParams {
for _, p := range m.module.BuildParamsForTests() {
outputs := append(WritablePaths(nil), p.Outputs...)