diff options
author | Junio C Hamano <gitster@pobox.com> | 2024-01-30 01:03:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-01-30 01:03:00 +0100 |
commit | 9869e02a645babb91be500ea11eabddc551850e2 (patch) | |
tree | 1eeac336ec352a0fc42a4f0f0c1cdced68117f9d /ci | |
parent | Merge branch 'jc/majordomo-to-subspace' (diff) | |
parent | ci: build and run minimal fuzzers in GitHub CI (diff) | |
download | git-9869e02a645babb91be500ea11eabddc551850e2.tar.xz git-9869e02a645babb91be500ea11eabddc551850e2.zip |
Merge branch 'js/oss-fuzz-build-in-ci'
oss-fuzz tests are built and run in CI.
* js/oss-fuzz-build-in-ci:
ci: build and run minimal fuzzers in GitHub CI
fuzz: fix fuzz test build rules
Diffstat (limited to 'ci')
-rwxr-xr-x | ci/run-build-and-minimal-fuzzers.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ci/run-build-and-minimal-fuzzers.sh b/ci/run-build-and-minimal-fuzzers.sh new file mode 100755 index 0000000000..8ba486f659 --- /dev/null +++ b/ci/run-build-and-minimal-fuzzers.sh @@ -0,0 +1,19 @@ +#!/bin/sh +# +# Build and test Git's fuzzers +# + +. ${0%/*}/lib.sh + +group "Build fuzzers" make \ + CC=clang \ + CXX=clang++ \ + CFLAGS="-fsanitize=fuzzer-no-link,address" \ + LIB_FUZZING_ENGINE="-fsanitize=fuzzer,address" \ + fuzz-all + +for fuzzer in commit-graph date pack-headers pack-idx ; do + begin_group "fuzz-$fuzzer" + ./oss-fuzz/fuzz-$fuzzer -verbosity=0 -runs=1 || exit 1 + end_group "fuzz-$fuzzer" +done |