oss-fuzz/infra
Max Moroz 4574ff8bdb
[infra] Add the build configuration and other pieces for clang code coverage. (#1547)
* [infra] Add the build configuration and other pieces for clang code coverage.

* Address the initial feedback, still a draft with some pieces missing.

* Trying to test things locally.

* Work in progress, now able to test the build process.

* Rebase and fix a comment.

* Figure out how to upload report, but still have issues with GCS access.

* Remove unnecessary debug prints.

* WIP: adding targets list reading + minor clean up.

* WIP

* WIP: now it works end to end but is very dirty and has limitations.

* WIP: use rsync -r -d to overwrite older reports (if any)

* WIP: trying to use a helper script for bulk corpus download.

* WIP: download corpus in batches passed via args.

* WIP: testing corpus downloading in batches.

* WIP: woohoo, now it works!

* Some cleanup for a high level review.

* Address review comments and add FAQ entry.

* Update FAQ.md as per comments by Oliver.
2018-08-20 06:42:45 -07:00
..
base-images [infra] Coverage: handle shared libraries via coverage_helper script. (#1727) 2018-08-17 15:15:08 -07:00
gcb [infra] Add the build configuration and other pieces for clang code coverage. (#1547) 2018-08-20 06:42:45 -07:00
jenkins-cluster [infra] remove unneeded file. 2017-08-24 00:16:39 -07:00
uploader Increase retry value to avoid build failures (#1468) 2018-06-02 09:12:31 -07:00
.pylintrc [infra] showing unstable builds 2016-12-29 11:06:49 -08:00
README.md [infra] Enable clange code coverage reports generation for local runs. (#1494) 2018-06-14 15:00:46 -07:00
helper.py [infra] profile command: do not fail hard if some fuzz targets have no corpus. (#1719) 2018-08-16 11:41:39 -07:00
templates.py [infra] Increase copyright year in the templates automatically. 2018-01-12 12:49:40 -08:00

README.md

infra

OSS-Fuzz project infrastructure

Core infrastructure:

  • base-images - docker images for building fuzz targets & corresponding jenkins pipeline.

Continuous Integration infrastracture:

helper.py

script to automate common docker operations

Command Description
generate Generates skeleton files for a new project
build_image Builds a docker image for a given project
build_fuzzers Builds fuzz targets for a given project
run_fuzzer Runs a fuzz target in a docker container
coverage Runs a fuzz target in a docker container and computes a coverage report
profile Runs a fuzz target in a docker container and generates a code coverage report. See Code Coverage doc
reproduce Runs a testcase to reproduce a crash
shell Starts a shell inside the docker image for a project