Skip to content

Commit 779fa63

Browse files
committed
fuzz: Change the save directory to fuzz/runs rather than target
The target directory is cached in CI but there is no reason to cache fuzzing results.
1 parent b03b62e commit 779fa63

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ rustc-ice*
77
# Fuzzing data/state.
88
/fuzz/in*
99
/fuzz/out*
10+
/fuzz/runs

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ mkdir fuzz/in-foo && echo > fuzz/in-foo/empty
9999

100100
# Start the fuzzing run `foo`, which should bring up the AFL++ progress TUI
101101
# (see also `cargo run -p rustc_apfloat-fuzz` for extra flags available).
102-
cargo afl fuzz -i fuzz/in-foo -o fuzz/out-foo target/release/rustc_apfloat-fuzz
102+
cargo afl fuzz -i fuzz/run/in-foo -o fuzz/run/out-foo target/release/rustc_apfloat-fuzz
103103
```
104104

105105
To visualize the fuzzing testcases, you can use the `decode` subcommand:
106106

107107
```sh
108-
cargo run -p rustc_apfloat-fuzz decode fuzz/out-foo/default/crashes/*
108+
cargo run -p rustc_apfloat-fuzz decode fuzz/run/out-foo/default/crashes/*
109109
```
110110

111111
Note that `cargo run` and `cargo afl build` conflict, so if running the fuzzer

etc/fuzz-parallel.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ set -euxo pipefail
99
# Detect cores
1010
all_cores="$(nproc)"
1111
used_cores="$((all_cores - 2))"
12-
in_dir="target/fuzz-in"
13-
sync_dir="target/fuzz-out"
12+
in_dir="fuzz/runs/fuzz-in"
13+
sync_dir="fuzz/runs/fuzz-out"
1414
tmux_window=afl
1515

1616
if [[ "$used_cores" -lt 2 ]]; then

0 commit comments

Comments
 (0)