Add some initial benchmarking for bp2build.

Test: go test -benchmark=. in bp2build directory
Change-Id: I8275c38461078cc6100fbc89837177de0edc9d68
This commit is contained in:
Liz Kammer
2021-08-04 15:17:02 -04:00
parent dd7107c84b
commit 32b77cf8a8
5 changed files with 192 additions and 6 deletions

View File

@@ -334,9 +334,7 @@ custom {
config := android.TestConfig(buildDir, nil, testCase.bp, nil)
ctx := android.NewTestContext(config)
ctx.RegisterModuleType("custom", customModuleFactory)
ctx.RegisterBp2BuildMutator("custom", customBp2BuildMutator)
ctx.RegisterForBazelConversion()
registerCustomModuleForBp2buildConversion(ctx)
_, errs := ctx.ParseFileList(dir, []string{"Android.bp"})
if errored(t, "", errs) {