Skip to content

Commit fa7a40d

Browse files
author
MarcoFalke
committed
contrib: Print deterministic-coverage runs
1 parent fa75163 commit fa7a40d

File tree

2 files changed

+3
-0
lines changed
  • contrib/devtools
    • deterministic-fuzz-coverage/src
    • deterministic-unittest-coverage/src

2 files changed

+3
-0
lines changed

contrib/devtools/deterministic-fuzz-coverage/src/main.rs

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ The coverage was not deterministic between runs.
187187
//
188188
// Also, This can catch issues where several fuzz inputs are non-deterministic, but the sum of
189189
// their overall coverage trace remains the same across runs and thus remains undetected.
190+
println!("Check each fuzz input individually ...");
190191
for entry in entries {
191192
let entry = entry.path();
192193
if !entry.is_file() {
@@ -203,6 +204,7 @@ The coverage was not deterministic between runs.
203204
// Finally, check that running over all fuzz inputs in one process is deterministic as well.
204205
// This can catch issues where mutable global state is leaked from one fuzz input execution to
205206
// the next.
207+
println!("Check all fuzz inputs in one go ...");
206208
{
207209
if !corpus_dir.is_dir() {
208210
Err(format!("{} should be a folder", corpus_dir.display()))?;

contrib/devtools/deterministic-unittest-coverage/src/main.rs

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ fn deterministic_coverage(build_dir: &Path, test_exe: &Path, filter: &str) -> Ap
7272
let profraw_file = build_dir.join("test_det_cov.profraw");
7373
let profdata_file = build_dir.join("test_det_cov.profdata");
7474
let run_single = |run_id: u8| -> Result<PathBuf, AppError> {
75+
println!("Run with id {run_id}");
7576
let cov_txt_path = build_dir.join(format!("test_det_cov.show.{run_id}.txt"));
7677
if !Command::new(test_exe)
7778
.env("LLVM_PROFILE_FILE", &profraw_file)

0 commit comments

Comments
 (0)