-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fuzz: add rust fuzz targets to highend fuzz artifact
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
set -eux | ||
|
||
if [[ -d ffi/rust/firedancer-diff/fuzz ]]; then | ||
# mix the fuzz targets with the highend fuzz | ||
TARGET_DIR=./build/linux/clang/combi/highend/fuzz-test | ||
RUST_FUZZ_OUT_DIR=./ffi/rust/firedancer-diff/fuzz/target/release | ||
pushd ffi/rust/firedancer-diff/fuzz | ||
cargo build --release | ||
popd | ||
|
||
ARTIFACTS=$(find ./ffi/rust/firedancer-diff/fuzz/target/release -maxdepth 1 -executable -type f) | ||
for ARTIFACT in $ARTIFACTS; do | ||
mkdir -p "${TARGET_DIR}/$(basename $ARTIFACT)" | ||
cp $ARTIFACT "${TARGET_DIR}/$(basename $ARTIFACT)/" | ||
done | ||
else | ||
echo "ignoring rust fuzz since directory does not exist" | ||
fi |