Skip to content

Commit

Permalink
chore: expand fuzzing to toxsave
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Feb 13, 2022
1 parent d429d35 commit 22e4b8e
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .clusterfuzzlite/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -eu

FUZZ_TARGETS="bootstrap_fuzzer toxsave_fuzzer"

# out of tree build
cd "$WORK"

Expand All @@ -14,8 +16,10 @@ cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER="$CC" \
-DBUILD_TOXAV=OFF -DENABLE_SHARED=NO -DBUILD_FUZZ_TESTS=ON \
-DDHT_BOOTSTRAP=OFF -DBOOTSTRAP_DAEMON=OFF "$SRC"/c-toxcore

# build fuzzer target
cmake --build ./ --target bootstrap_fuzzer
for TARGET in $FUZZ_TARGETS; do
# build fuzzer target
cmake --build ./ --target $TARGET

# copy to output files
cp "$WORK"/bootstrap_fuzzer "$OUT"/
# copy to output files
cp "$WORK"/$TARGET "$OUT"/
done

0 comments on commit 22e4b8e

Please sign in to comment.