Add cc_library tests

Add tests around reusing objects between static and shared
libraries.

Test: library_test.go
Change-Id: I1a1a01c5ea9f9edfbcaa5b29c39c281630e04f70
This commit is contained in:
Colin Cross
2017-11-16 14:29:11 -08:00
parent 20823f95e6
commit ad59e75a56
4 changed files with 192 additions and 1 deletions

View File

@@ -108,12 +108,17 @@ func testCc(t *testing.T, bp string) *android.TestContext {
name: "crtend_so",
}
cc_library {
name: "libprotobuf-cpp-lite",
}
`
ctx.MockFileSystem(map[string][]byte{
"Android.bp": []byte(bp),
"foo.c": nil,
"bar.c": nil,
"a.proto": nil,
})
_, errs := ctx.ParseFileList(".", []string{"Android.bp"})