Add -workers option to use all cores.

main
Kevin Backhouse 4 years ago
parent 7eef360295
commit e157fd63cb
No known key found for this signature in database
GPG Key ID: 9DD01852EE40366E

@ -27,4 +27,4 @@ jobs:
run: |
cd build
mkdir corpus
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -max_total_time=60 -max_len=4096
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -workers=$(nproc) -max_total_time=120 -max_len=4096

@ -1056,11 +1056,12 @@ $ cmake .. -DCMAKE_CXX_COMPILER=$(which clang++) -DEXIV2_BUILD_FUZZ_TESTS=ON -DE
$ cmake --build .
```
To execute the fuzzers:
To execute a fuzzer:
```bash
cd <exiv2dir>/build-fuzz
bin/<fuzzer_name> # for example ./bin/read-metadata.cpp
mkdir corpus
./bin/fuzz-read-print-write corpus ../test/data/ -jobs=$(nproc) -workers=$(nproc) -max_len=4096
```
[TOC](#TOC)

Loading…
Cancel
Save