fix: clean-all in justfile and delete all corpus

This commit is contained in:
Roman 2026-05-22 13:18:22 +08:00
parent 30c21128a0
commit ca2766063c
No known key found for this signature in database
GPG Key ID: 583BDF43C238B83E

View File

@ -613,9 +613,11 @@ clean-artifacts:
rm -rf fuzz/artifacts/ rm -rf fuzz/artifacts/
# Remove all coverage reports. # Remove all coverage reports.
# Also removes the temporary profdata that cargo-fuzz writes to fuzz/coverage/. # Also removes the temporary profdata that cargo-fuzz writes to fuzz/coverage/
# and any stray .profraw files left by the instrumented binaries.
clean-coverage: clean-coverage:
rm -rf coverage/ fuzz/coverage/ rm -rf coverage/ fuzz/coverage/
find . -name '*.profraw' -delete
# Remove AFL++ output directories (crashes, hangs, queue). # Remove AFL++ output directories (crashes, hangs, queue).
# Note: the queue is also stored in corpus/afl/ via `just afl-corpus-sync`. # Note: the queue is also stored in corpus/afl/ via `just afl-corpus-sync`.
@ -626,5 +628,5 @@ clean-afl:
clean-corpus: clean-corpus:
rm -rf corpus/ rm -rf corpus/
# Remove everything: builds, artifacts, coverage, corpus, and AFL++ output # Remove everything: builds, artifacts, coverage, and AFL++ output (preserves corpus/)
clean-all: clean clean-artifacts clean-coverage clean-corpus clean-afl clean-all: clean clean-artifacts clean-coverage clean-afl