Skip to content

Commit

Permalink
surrealdb: Automatically find dictionaries for fuzzers (#10192)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathaniel Brough <[email protected]>
  • Loading branch information
nathaniel-brough authored May 3, 2023
1 parent 488f4d7 commit 50b0063
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion projects/surrealdb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,15 @@
#
################################################################################
cd lib

# Copy dictionaries, but don't fail if there aren't any.
cp fuzz/fuzz_targets/*.dict $OUT/ || true

cargo fuzz build -O --debug-assertions

FUZZ_TARGET_OUTPUT_DIR=fuzz/target/x86_64-unknown-linux-gnu/release
for f in fuzz/fuzz_targets/*.rs
do
FUZZ_TARGET_NAME=$(basename ${f%.*})
cp $FUZZ_TARGET_OUTPUT_DIR/$FUZZ_TARGET_NAME $OUT/
done
done

0 comments on commit 50b0063

Please sign in to comment.