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:
@@ -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"})
|
||||
|
Reference in New Issue
Block a user