From 6428bf6611f490b06bf1a322b04834942cc210f5 Mon Sep 17 00:00:00 2001 From: Max Moroz Date: Fri, 18 May 2018 15:03:45 -0700 Subject: [PATCH] [docs] Clean up the conflicts in reproducing.md. (#1428) * [docs] Clean up the conflicts in reproducing.md. * Add engine arg everywhere + move bad build checks instruction back to the bottom * Remove enginge argument from instructions not related to build checks --- docs/reproducing.md | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/docs/reproducing.md b/docs/reproducing.md index 1f74af923..3fea02a6f 100644 --- a/docs/reproducing.md +++ b/docs/reproducing.md @@ -29,6 +29,8 @@ If you are not sure how to build the fuzzer using the project's build system, you may also use Docker ([how?](installing_docker.md), [why?](faq.md#why-do-you-use-docker)) commands to replicate the exact build steps used by OSS-Fuzz and then feed the reproducer input to the fuzz target. +## Building using Docker + ### Pull the latest Docker images ```bash @@ -39,23 +41,13 @@ $ python infra/helper.py pull_images configurations, scripts, and other changes. In some cases, a particular issue can be reproduced only with a fresh image being used. -### Reproduce crashes with Docker +### Build the image and the fuzzers -- *Reproduce using latest OSS-Fuzz build:* - -## Building using Docker ```bash $ python infra/helper.py build_image $PROJECT_NAME $ python infra/helper.py build_fuzzers --sanitizer
$PROJECT_NAME ``` -## Reproducing build checks -Our infrastructure runs some sanity tests to make sure that your build was correctly configured, even if it succeeded. To reproduce these locally, run: - -```bash -$ python infra/helper.py check_build --sanitizer
$PROJECT_NAME -``` - ## Reproducing bugs ```bash $ python infra/helper.py reproduce $PROJECT_NAME @@ -84,11 +76,10 @@ $ python infra/helper.py reproduce $PROJECT_NAME $PROJECT_NAME -$ python infra/helper.py check_build $PROJECT_NAME -``` +$ python infra/helper.py build_fuzzers --sanitizer
--engine $PROJECT_NAME +$ python infra/helper.py check_build --sanitizer
--engine $PROJECT_NAME ```