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