mirror of
https://github.com/logos-blockchain/lez-fuzzing.git
synced 2026-07-01 07:19:31 +00:00
fix: remove stale artifacts
- regression recipe for per target
This commit is contained in:
parent
7ae3e40661
commit
1cfe58ebf9
15
Justfile
15
Justfile
@ -39,11 +39,20 @@ fuzz TIME="30":
|
|||||||
cargo fuzz run "$target" "corpus/libfuzz/$target" -- -max_total_time={{TIME}}
|
cargo fuzz run "$target" "corpus/libfuzz/$target" -- -max_total_time={{TIME}}
|
||||||
done
|
done
|
||||||
|
|
||||||
# Re-run the saved corpus for every target (regression mode, no new mutations)
|
# Re-run the saved corpus for one or ALL targets (regression mode, no new mutations).
|
||||||
fuzz-regression:
|
# When TARGET is omitted every registered target is replayed in sequence.
|
||||||
|
# Usage: just fuzz-regression # all targets
|
||||||
|
# just fuzz-regression fuzz_state_transition # single target
|
||||||
|
fuzz-regression TARGET="":
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
for target in $(cargo fuzz list 2>/dev/null); do
|
TARGET="{{TARGET}}"
|
||||||
|
if [ -z "$TARGET" ]; then
|
||||||
|
TARGETS=($(cargo fuzz list 2>/dev/null))
|
||||||
|
else
|
||||||
|
TARGETS=("$TARGET")
|
||||||
|
fi
|
||||||
|
for target in "${TARGETS[@]}"; do
|
||||||
echo "=== regression $target ==="
|
echo "=== regression $target ==="
|
||||||
mkdir -p "corpus/libfuzz/$target"
|
mkdir -p "corpus/libfuzz/$target"
|
||||||
cargo fuzz run "$target" "corpus/libfuzz/$target" -- -runs=0
|
cargo fuzz run "$target" "corpus/libfuzz/$target" -- -runs=0
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
<EFBFBD>
|
|
||||||
Loading…
x
Reference in New Issue
Block a user