diff options
author | 2022-07-14 16:26:41 +0000 | |
---|---|---|
committer | 2022-07-14 16:26:41 +0000 | |
commit | b1c8940be1fa7628d161769f95ad1cfd298727ff (patch) | |
tree | d6de6d56d9b60fb9ade723ccb5770f544de71c59 /cc/testing.go | |
parent | 50dbe0a07408bc1b16b1c19720d464a98e618f23 (diff) | |
parent | a1da26fa9bf6198006426ce0a1162d26be27a725 (diff) |
Merge "Adding support for building AFLpp Test: Build AFL fuzzers locally and ran them"
Diffstat (limited to 'cc/testing.go')
-rw-r--r-- | cc/testing.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cc/testing.go b/cc/testing.go index 077fcda3c..6b858d593 100644 --- a/cc/testing.go +++ b/cc/testing.go @@ -534,7 +534,8 @@ var PrepareForTestWithCcBuildComponents = android.GroupFixturePreparers( android.PrepareForTestWithAndroidBuildComponents, android.FixtureRegisterWithContext(RegisterRequiredBuildComponentsForTest), android.FixtureRegisterWithContext(func(ctx android.RegistrationContext) { - ctx.RegisterModuleType("cc_fuzz", FuzzFactory) + ctx.RegisterModuleType("cc_fuzz", LibFuzzFactory) + ctx.RegisterModuleType("cc_afl_fuzz", AFLFuzzFactory) ctx.RegisterModuleType("cc_test", TestFactory) ctx.RegisterModuleType("cc_test_library", TestLibraryFactory) ctx.RegisterModuleType("vndk_prebuilt_shared", VndkPrebuiltSharedFactory) @@ -648,7 +649,8 @@ func TestConfig(buildDir string, os android.OsType, env map[string]string, func CreateTestContext(config android.Config) *android.TestContext { ctx := android.NewTestArchContext(config) genrule.RegisterGenruleBuildComponents(ctx) - ctx.RegisterModuleType("cc_fuzz", FuzzFactory) + ctx.RegisterModuleType("cc_fuzz", LibFuzzFactory) + ctx.RegisterModuleType("cc_afl_fuzz", AFLFuzzFactory) ctx.RegisterModuleType("cc_test", TestFactory) ctx.RegisterModuleType("cc_test_library", TestLibraryFactory) ctx.RegisterModuleType("filegroup", android.FileGroupFactory) |