The seventh batch
[git/gitster.git] / ci / run-build-and-minimal-fuzzers.sh
blob797d65c661f80d7f01295a109b8b8224fe17899f
1 #!/bin/sh
3 # Build and test Git's fuzzers
6 . ${0%/*}/lib.sh
8 group "Build fuzzers" make \
9 CC=clang \
10 FUZZ_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 config 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