Merge "Revert "mixed builds correctly reference stubs libs""

This commit is contained in:
Sam Delmerico
2023-04-19 19:57:49 +00:00
committed by Gerrit Code Review
6 changed files with 13 additions and 201 deletions

View File

@@ -1250,40 +1250,3 @@ cc_library_shared {
},
})
}
func TestCcLibrarySharedStubsDessertVersionConversion(t *testing.T) {
runCcLibrarySharedTestCase(t, Bp2buildTestCase{
Description: "cc_library_shared converts dessert codename versions to numerical versions",
Blueprint: `
cc_library_shared {
name: "a",
include_build_directory: false,
stubs: {
symbol_file: "a.map.txt",
versions: [
"Q",
"R",
"31",
"current",
],
},
}
`,
ExpectedBazelTargets: []string{
makeCcStubSuiteTargets("a", AttrNameToString{
"soname": `"a.so"`,
"source_library_label": `"//:a"`,
"stubs_symbol_file": `"a.map.txt"`,
"stubs_versions": `[
"29",
"30",
"31",
"current",
]`,
}),
MakeBazelTarget("cc_library_shared", "a", AttrNameToString{
"stubs_symbol_file": `"a.map.txt"`,
}),
},
})
}