From 3cb1898cdd3f39b0c9c66370bb9602d9faec617e Mon Sep 17 00:00:00 2001 From: Abhishek Arya Date: Tue, 3 Jan 2017 11:04:50 -0800 Subject: [PATCH] Update README.md --- infra/base-images/base-runner/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/infra/base-images/base-runner/README.md b/infra/base-images/base-runner/README.md index cfef6856b..6814c15d6 100644 --- a/infra/base-images/base-runner/README.md +++ b/infra/base-images/base-runner/README.md @@ -9,6 +9,21 @@ docker run -ti ossfuzz/base-runner | Command | Description | |---------|-------------| +| `reproduce ` | build all fuzz targets and run specified one with testcase `/testcase` and given options. | `run_fuzzer ` | runs specified fuzzer combining options with `.options` file | | `test_all` | runs every binary in `/out` as a fuzzer for a while to ensure it works. | +# Examples + +- *Reproduce using latest OSS-Fuzz build:* + +
+docker run --rm -ti -v <testcase_path>:/testcase ossfuzz/$PROJECT_NAME reproduce <fuzzer_name>
+   
+ +- *Reproduce using local source checkout:* + +
+    docker run --rm -ti -v <source_path>:/src/$PROJECT_NAME \
+                        -v <testcase_path>:/testcase ossfuzz/$PROJECT_NAME reproduce <fuzzer_name>
+