diff options
author | Federico Maggi <federico.maggi@gmail.com> | 2021-10-11 19:20:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-11 13:20:15 -0400 |
commit | 0c5679cd24e5e6130a8b8a2501a47e69edd09082 (patch) | |
tree | 7dae5c1ca6dda20079dd6a56a914c85f921c37ad /infra | |
parent | 7bda69cbeb3c58d117e2e13b06da16606870303e (diff) | |
download | oss-fuzz-0c5679cd24e5e6130a8b8a2501a47e69edd09082.tar.gz |
Run multiple jobs/workers by setting env vars (#5924)
* Run multiple jobs/workers by setting env vars
```bash
$ infra/base-images/all.sh
$ python3 infra/helper.py run_fuzzer -e N_JOBS=4 -e N_WORKERS=4 --engine $ENGINE $PROJECT_NAME $FUZZ_TARGET
```
* Switched from N_JOBS/WORKERS to FUZZER_EXTRA_ARGS
* Added hashicorp/hcl/hclsyntax fuzzers
* Getting rid of FUZZER_EXTRA_ARGS
Diffstat (limited to 'infra')
-rwxr-xr-x | infra/base-images/base-runner/run_fuzzer | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/infra/base-images/base-runner/run_fuzzer b/infra/base-images/base-runner/run_fuzzer index cda877cf1..426688ea3 100755 --- a/infra/base-images/base-runner/run_fuzzer +++ b/infra/base-images/base-runner/run_fuzzer @@ -120,7 +120,7 @@ if [[ "$FUZZING_ENGINE" = afl ]]; then test -e "$OUT/afl++.dict" && AFL_FUZZER_ARGS="$AFL_FUZZER_ARGS -x $OUT/afl++.dict" # Ensure timeout is a bit larger than 1sec as some of the OSS-Fuzz fuzzers # are slower than this. - AFL_FUZZER_ARGS="$AFL_FUZZER_ARGS -t 5000+" + AFL_FUZZER_ARGS="$FUZZER_ARGS $AFL_FUZZER_ARGS -t 5000+" # AFL expects at least 1 file in the input dir. echo input > ${CORPUS_DIR}/input echo afl++ setup: @@ -140,7 +140,7 @@ elif [[ "$FUZZING_ENGINE" = honggfuzz ]]; then # -P: use persistent mode of fuzzing (i.e. LLVMFuzzerTestOneInput) # -f: location of the initial (and destination) file corpus # -n: number of fuzzing threads (and processes) - CMD_LINE="$OUT/honggfuzz -n 1 --exit_upon_crash -R /tmp/${FUZZER}_honggfuzz.report -W $FUZZER_OUT -v -z -P -f \"$CORPUS_DIR\" $(get_dictionary) $* -- \"$OUT/$FUZZER\"" + CMD_LINE="$OUT/honggfuzz -n 1 --exit_upon_crash -R /tmp/${FUZZER}_honggfuzz.report -W $FUZZER_OUT -v -z -P -f \"$CORPUS_DIR\" $(get_dictionary) $FUZZER_ARGS $* -- \"$OUT/$FUZZER\"" else |