Merge "Improve cc tests by adding fuzzer mutators"
This commit is contained in:
commit
de85fa9f5f
2 changed files with 4 additions and 1 deletions
|
@ -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")
|
||||
}
|
||||
|
||||
|
|
|
@ -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()
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue