Sync with 'maint'
[git/gitster.git] / ci / run-build-and-minimal-fuzzers.sh
blobaf8065f34992f86831b50b7af4d671c1d9f8805b
1 #!/bin/sh
3 # Build and test Git's fuzzers
6 . ${0%/*}/lib.sh
8 group "Build fuzzers" make \
9 NO_CURL=NoThanks \
10 CC=clang \
11 FUZZ_CXX=clang++ \
12 CFLAGS="-fsanitize=fuzzer-no-link,address" \
13 LIB_FUZZING_ENGINE="-fsanitize=fuzzer,address" \
14 fuzz-all
16 for fuzzer in commit-graph config date pack-headers pack-idx ; do
17 begin_group "fuzz-$fuzzer"
18 ./oss-fuzz/fuzz-$fuzzer -verbosity=0 -runs=1 || exit 1
19 end_group "fuzz-$fuzzer"
20 done