aboutsummaryrefslogtreecommitdiffstats
path: root/cc/cc_test.go
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2017-11-16 14:29:11 -0800
committerColin Cross <ccross@android.com>2017-11-17 11:22:04 -0800
commitad59e75a567f0638bae504543664a57582326a58 (patch)
tree6940234b70aa79ece73f363718b5dc7fcd8df3ed /cc/cc_test.go
parent20823f95e6d90d7961b3c97ec57b4bcb2b8a24ab (diff)
downloadbuild_soong-ad59e75a567f0638bae504543664a57582326a58.tar.gz
build_soong-ad59e75a567f0638bae504543664a57582326a58.tar.bz2
build_soong-ad59e75a567f0638bae504543664a57582326a58.zip
Add cc_library tests
Add tests around reusing objects between static and shared libraries. Test: library_test.go Change-Id: I1a1a01c5ea9f9edfbcaa5b29c39c281630e04f70
Diffstat (limited to 'cc/cc_test.go')
-rw-r--r--cc/cc_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/cc_test.go b/cc/cc_test.go
index 32cffe4e..b451f17c 100644
--- a/cc/cc_test.go
+++ b/cc/cc_test.go
@@ -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"})