Revert "Add unit test for parsing build files in bp2build"
This reverts commit e1f25230df
.
Reason for revert: breaks bp2build ci
Change-Id: I7320ef679d8a1ba1d605cf0d3781854b97816358
This commit is contained in:
committed by
Gerrit Code Review
parent
e1f25230df
commit
3d927238cc
@@ -1946,36 +1946,3 @@ func TestPrettyPrintSelectMapEqualValues(t *testing.T) {
|
||||
actual, _ := prettyPrintAttribute(lla, 0)
|
||||
android.AssertStringEquals(t, "Print the common value if all keys in an axis have the same value", `[":libfoo.impl"]`, actual)
|
||||
}
|
||||
|
||||
func TestAlreadyPresentBuildTarget(t *testing.T) {
|
||||
bp := `
|
||||
custom {
|
||||
name: "foo",
|
||||
}
|
||||
custom {
|
||||
name: "bar",
|
||||
}
|
||||
`
|
||||
alreadyPresentBuildFile :=
|
||||
MakeBazelTarget(
|
||||
"custom",
|
||||
"foo",
|
||||
AttrNameToString{},
|
||||
)
|
||||
expectedBazelTargets := []string{
|
||||
MakeBazelTarget(
|
||||
"custom",
|
||||
"bar",
|
||||
AttrNameToString{},
|
||||
),
|
||||
}
|
||||
registerCustomModule := func(ctx android.RegistrationContext) {
|
||||
ctx.RegisterModuleType("custom", customModuleFactoryHostAndDevice)
|
||||
}
|
||||
RunBp2BuildTestCase(t, registerCustomModule, Bp2buildTestCase{
|
||||
AlreadyExistingBuildContents: alreadyPresentBuildFile,
|
||||
Blueprint: bp,
|
||||
ExpectedBazelTargets: expectedBazelTargets,
|
||||
Description: "Not duplicating work for an already-present BUILD target.",
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user