Bp2build support for runtime_libs

Bug: 213201180
Test: Updated the minimal apex in the build/bazel cl to include runtime_libs so the apex diff test will test it
Change-Id: I10add1895cfa122a370d24196a33ec2dcfafccfc
This commit is contained in:
Cole Faust
2022-08-09 09:50:56 -07:00
parent 852d0c4859
commit 6b29f593ea
8 changed files with 125 additions and 5 deletions

View File

@@ -624,3 +624,25 @@ func TestCCLibraryFlagSpaceSplitting(t *testing.T) {
},
})
}
func TestCCLibrarySharedRuntimeDeps(t *testing.T) {
runCcLibrarySharedTestCase(t, Bp2buildTestCase{
Blueprint: `cc_library_shared {
name: "bar",
}
cc_library_shared {
name: "foo",
runtime_libs: ["foo"],
}`,
ExpectedBazelTargets: []string{
makeBazelTarget("cc_library_shared", "bar", AttrNameToString{
"local_includes": `["."]`,
}),
makeBazelTarget("cc_library_shared", "foo", AttrNameToString{
"runtime_deps": `[":foo"]`,
"local_includes": `["."]`,
}),
},
})
}