mirror of
https://github.com/logos-blockchain/lez-fuzzing.git
synced 2026-06-08 03:59:58 +00:00
fix: missing binary
This commit is contained in:
parent
73cb60b90a
commit
dbe1b82ccc
8
.github/workflows/fuzz-afl.yml
vendored
8
.github/workflows/fuzz-afl.yml
vendored
@ -358,7 +358,9 @@ jobs:
|
|||||||
TARGET="${{ matrix.target }}"
|
TARGET="${{ matrix.target }}"
|
||||||
PROFRAW_DIR="coverage/afl/${TARGET}/profraw"
|
PROFRAW_DIR="coverage/afl/${TARGET}/profraw"
|
||||||
PROFDATA="coverage/afl/${TARGET}/merged.profdata"
|
PROFDATA="coverage/afl/${TARGET}/merged.profdata"
|
||||||
LLVM_PROFDATA="$(rustup which llvm-profdata)"
|
SYSROOT="$(rustc --print sysroot)"
|
||||||
|
HOST_TRIPLE="$(rustc -vV | awk '/^host:/{print $2}')"
|
||||||
|
LLVM_PROFDATA="${SYSROOT}/lib/rustlib/${HOST_TRIPLE}/bin/llvm-profdata"
|
||||||
shopt -s nullglob
|
shopt -s nullglob
|
||||||
files=("${PROFRAW_DIR}"/*.profraw)
|
files=("${PROFRAW_DIR}"/*.profraw)
|
||||||
if [ ${#files[@]} -eq 0 ]; then
|
if [ ${#files[@]} -eq 0 ]; then
|
||||||
@ -373,7 +375,9 @@ jobs:
|
|||||||
BINARY="fuzz/target/release/${TARGET}"
|
BINARY="fuzz/target/release/${TARGET}"
|
||||||
PROFDATA="coverage/afl/${TARGET}/merged.profdata"
|
PROFDATA="coverage/afl/${TARGET}/merged.profdata"
|
||||||
HTML_DIR="coverage/afl/${TARGET}/html"
|
HTML_DIR="coverage/afl/${TARGET}/html"
|
||||||
LLVM_COV="$(rustup which llvm-cov)"
|
SYSROOT="$(rustc --print sysroot)"
|
||||||
|
HOST_TRIPLE="$(rustc -vV | awk '/^host:/{print $2}')"
|
||||||
|
LLVM_COV="${SYSROOT}/lib/rustlib/${HOST_TRIPLE}/bin/llvm-cov"
|
||||||
if [ ! -f "$PROFDATA" ]; then
|
if [ ! -f "$PROFDATA" ]; then
|
||||||
echo "No profdata — skipping HTML report."
|
echo "No profdata — skipping HTML report."
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user