From 4718a55b5c5e2a1e17868eebd62725b3cc6812c3 Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Thu, 4 Apr 2024 11:47:06 -0700 Subject: [PATCH] Add code coverage to OneFuzz (#223) --- build/DirectXTK12-OneFuzz.yml | 2 ++ build/OneFuzzConfig.json | 10 +++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build/DirectXTK12-OneFuzz.yml b/build/DirectXTK12-OneFuzz.yml index 912d15f..e177e2b 100644 --- a/build/DirectXTK12-OneFuzz.yml +++ b/build/DirectXTK12-OneFuzz.yml @@ -30,6 +30,7 @@ variables: BUGFILING_PAT: $(BugFilingPAT) GITHUB_PAT: $(GITHUBPUBLICTOKEN) ONEFUZZ_PAT: $(OneFuzzPAT) + CODECOV_PAT: $(CodeCoveragePAT) pool: vmImage: windows-2022 @@ -133,3 +134,4 @@ jobs: onefuzzDropPAT: $(ONEFUZZ_PAT) SYSTEM_ACCESSTOKEN: $(System.AccessToken) onefuzzBugFilingPAT: $(BUGFILING_PAT) + onefuzzCodeCoveragePAT: $(CODECOV_PAT) diff --git a/build/OneFuzzConfig.json b/build/OneFuzzConfig.json index b541953..23f1292 100644 --- a/build/OneFuzzConfig.json +++ b/build/OneFuzzConfig.json @@ -7,7 +7,10 @@ "Skip": false, "Fuzzer": { "$type": "libfuzzer", - "FuzzingHarnessExecutableName": "fuzzloaders.exe" + "FuzzingHarnessExecutableName": "fuzzloaders.exe", + "FuzzingTargetBinaries": [ + "fuzzloaders.exe" + ] }, "RebootAfterSetup": false, "OneFuzzJobs": [ @@ -35,6 +38,11 @@ "AssignedTo": "chuckw@microsoft.com", "AreaPath": "OS\\Core\\SiGMa\\GRFX-Graphics", "IterationPath": "OS\\Future" + }, + "CodeCoverage": { + "Org": "mscodehub", + "Project": "DirectXTK12", + "PipelineId": "3049" } } ]