build.sh 650 B

123456789101112131415161718
  1. # shellcheck shell=bash
  2. set -euo pipefail
  3. unset RUSTFLAGS # The OSS-Fuzz provided RUSTFLAGS cause issues that break PyO3 based Rust extension builds.
  4. export PATH="${PATH}:${HOME}/.cargo/bin"
  5. python3 -m pip install -v ".[fastimport,paramiko,https,pgp]"
  6. find "$SRC" -maxdepth 1 \
  7. \( -name '*_seed_corpus.zip' -o -name '*.options' -o -name '*.dict' \) \
  8. -exec printf '[%s] Copying: %s\n' "$(date '+%Y-%m-%d %H:%M:%S')" {} \; \
  9. -exec chmod a-x {} \; \
  10. -exec cp {} "$OUT" \;
  11. # Build fuzzers in $OUT.
  12. find "$SRC/dulwich/fuzzing" -name 'fuzz_*.py' -print0 | while IFS= read -r -d '' fuzz_harness; do
  13. compile_python_fuzzer "$fuzz_harness"
  14. done