oss-fuzz/infra/base-images/base-runner/README.md

30 lines
1.1 KiB
Markdown
Raw Normal View History

2016-11-18 22:59:10 +00:00
# base-runner
> Base image for fuzzer runners.
```bash
docker run -ti gcr.io/oss-fuzz/base-runner <command> <args>
2016-11-18 22:59:10 +00:00
```
## Commands
| Command | Description |
|---------|-------------|
2017-01-03 19:04:50 +00:00
| `reproduce <fuzzer_name> <fuzzer_options>` | build all fuzz targets and run specified one with testcase `/testcase` and given options.
2016-11-18 22:59:10 +00:00
| `run_fuzzer <fuzzer_name> <fuzzer_options>` | 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. |
2017-01-03 19:04:50 +00:00
# Examples
- *Reproduce using latest OSS-Fuzz build:*
<pre>
docker run --rm -ti -v <b><i>&lt;testcase_path&gt;</i></b>:/testcase gcr.io/oss-fuzz/<b><i>$PROJECT_NAME</i></b> reproduce <b><i>&lt;fuzzer_name&gt;</i></b>
2017-01-03 19:04:50 +00:00
</pre>
- *Reproduce using local source checkout:*
<pre>
docker run --rm -ti -v <b><i>&lt;source_path&gt;</i></b>:/src/<b><i>$PROJECT_NAME</i></b> \
-v <b><i>&lt;testcase_path&gt;</i></b>:/testcase gcr.io/oss-fuzz/<b><i>$PROJECT_NAME</i></b> reproduce <b><i>&lt;fuzzer_name&gt;</i></b>
2017-01-03 19:04:50 +00:00
</pre>