scripts/test_fuzzer.sh: correct working directory (#3024)
This commit is contained in:
parent
a917cc046f
commit
9182fd93e6
@ -43,30 +43,32 @@ do
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$fuzzer" || exit 1
|
(
|
||||||
# Clippy checks
|
cd "$fuzzer" || exit 1
|
||||||
if [ "$1" != "--no-clippy" ]; then
|
# Clippy checks
|
||||||
echo "[*] Running clippy for $fuzzer"
|
if [ "$1" != "--no-clippy" ]; then
|
||||||
cargo clippy || exit 1
|
echo "[*] Running clippy for $fuzzer"
|
||||||
else
|
cargo clippy || exit 1
|
||||||
echo "[+] Skipping fmt and clippy for $fuzzer (--no-clippy specified)"
|
else
|
||||||
fi
|
echo "[+] Skipping fmt and clippy for $fuzzer (--no-clippy specified)"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -e ./Makefile.toml ] && grep -qF "skip_core_tasks = true" Makefile.toml; then
|
if [ -e ./Makefile.toml ] && grep -qF "skip_core_tasks = true" Makefile.toml; then
|
||||||
echo "[*] Building $fuzzer (running tests is not supported in this context)"
|
echo "[*] Building $fuzzer (running tests is not supported in this context)"
|
||||||
just build || exit 1
|
just build || exit 1
|
||||||
echo "[+] Done building $fuzzer"
|
echo "[+] Done building $fuzzer"
|
||||||
elif [ -e ./Makefile.toml ]; then
|
elif [ -e ./Makefile.toml ]; then
|
||||||
echo "[*] Testing $fuzzer"
|
echo "[*] Testing $fuzzer"
|
||||||
just test || exit 1
|
just test || exit 1
|
||||||
echo "[+] Done testing $fuzzer"
|
echo "[+] Done testing $fuzzer"
|
||||||
elif [ -e ./Justfile ]; then
|
elif [ -e ./Justfile ]; then
|
||||||
echo "[*] Testing $fuzzer"
|
echo "[*] Testing $fuzzer"
|
||||||
just test || exit 1
|
just test || exit 1
|
||||||
echo "[+] Done testing $fuzzer"
|
echo "[+] Done testing $fuzzer"
|
||||||
else
|
else
|
||||||
echo "[*] Building $fuzzer"
|
echo "[*] Building $fuzzer"
|
||||||
cargo build || exit 1
|
cargo build || exit 1
|
||||||
echo "[+] Done building $fuzzer"
|
echo "[+] Done building $fuzzer"
|
||||||
fi
|
fi
|
||||||
|
)
|
||||||
done
|
done
|
||||||
|
Loading…
x
Reference in New Issue
Block a user