Merge "Improve cc tests by adding fuzzer mutators"

This commit is contained in:
Treehugger Robot 2019-12-20 01:26:01 +00:00 committed by Gerrit Code Review
commit de85fa9f5f
2 changed files with 4 additions and 1 deletions

View file

@ -2478,7 +2478,7 @@ func TestFuzzTarget(t *testing.T) {
srcs: ["foo.c"],
}`)
variant := "android_arm64_armv8-a"
variant := "android_arm64_armv8-a_fuzzer"
ctx.ModuleForTests("fuzz_smoke_test", variant).Rule("cc")
}

View file

@ -36,6 +36,9 @@ func RegisterRequiredBuildComponentsForTest(ctx android.RegistrationContext) {
ctx.BottomUp("sysprop_cc", SyspropMutator).Parallel()
})
ctx.PostDepsMutators(func(ctx android.RegisterMutatorsContext) {
ctx.TopDown("fuzzer_deps", sanitizerDepsMutator(fuzzer))
ctx.BottomUp("fuzzer", sanitizerMutator(fuzzer)).Parallel()
ctx.TopDown("sanitize_runtime_deps", sanitizerRuntimeDepsMutator).Parallel()
ctx.BottomUp("sanitize_runtime", sanitizerRuntimeMutator).Parallel()
})