[bp2build] android_test bp2build.

android_test is just an android_app, but the test bits are handled
purely in Starlark (tradefed_test_impl).

This enables building HelloWorldTests (android_test) with Bazel.

Bug: 297030120
Bug: 297029612
Test: WIP
Change-Id: I6d287c94b31698ea247da48e4cd6b5a75bc71e11
This commit is contained in:
Jingwen Chen
2023-08-25 09:00:16 +00:00
parent faa7c7c102
commit e12c083198
5 changed files with 73 additions and 24 deletions

View File

@@ -17,7 +17,6 @@ package bp2build
import (
"android/soong/android"
"android/soong/java"
"fmt"
"testing"
)
@@ -91,7 +90,6 @@ android_library {
sdk_version: "current",
}
`,
ExpectedErr: fmt.Errorf("Module has direct dependencies but no sources. Bazel will not allow this."),
ExpectedBazelTargets: []string{},
})
}