forked from Green-Sky/tomato
e58eb27a8 fix(toxav): remove extra copy of video frame on encode Tested and works, but there might be alignment issues and other stuff. 206ea3530 refactor: Explicitly pass dependencies to constructors. 7cefa93cf fix(toxencryptsave): Wipe salt and passkey after usage. 7c3be2342 refactor: Add file/line to tox-bootstrapd logging. f84e8cdce refactor: Move loglogdata out of network.c. 390f7db06 refactor: Move random and memory OS-specifics to `os_*` files. REVERT: 640e6cace fix(toxav): remove extra copy of video frame on encode Tested and works, but there might be alignment issues and other stuff. git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: e58eb27a84f9fa0cd996868e079f39e90a5c04b6
41 lines
804 B
Bash
41 lines
804 B
Bash
#!/bin/bash -eu
|
|
|
|
FUZZ_TARGETS=(
|
|
DHT_fuzz_test
|
|
bootstrap_fuzz_test
|
|
# e2e_fuzz_test
|
|
forwarding_fuzz_test
|
|
group_announce_fuzz_test
|
|
group_moderation_fuzz_test
|
|
net_crypto_fuzz_test
|
|
tox_events_fuzz_test
|
|
toxsave_fuzz_test
|
|
)
|
|
|
|
# out of tree build
|
|
cd "$WORK"
|
|
|
|
ls /usr/local/lib/
|
|
|
|
# Debug build for asserts
|
|
cmake -GNinja \
|
|
-DCMAKE_BUILD_TYPE=Debug \
|
|
-DCMAKE_C_COMPILER="$CC" \
|
|
-DCMAKE_CXX_COMPILER="$CXX" \
|
|
-DCMAKE_C_FLAGS="$CFLAGS" \
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
|
-DBUILD_TOXAV=OFF \
|
|
-DENABLE_SHARED=OFF \
|
|
-DBUILD_FUZZ_TESTS=ON \
|
|
-DDHT_BOOTSTRAP=OFF \
|
|
-DBOOTSTRAP_DAEMON=OFF \
|
|
"$SRC"/c-toxcore
|
|
|
|
for TARGET in "${FUZZ_TARGETS[@]}"; do
|
|
# build fuzzer target
|
|
cmake --build ./ --target "$TARGET"
|
|
|
|
# copy to output files
|
|
cp "$WORK/testing/fuzzing/$TARGET" "$OUT"/
|
|
done
|