Add -workers option to use all cores.
This commit is contained in:
parent
7eef360295
commit
e157fd63cb
2
.github/workflows/on_PR_linux_fuzz.yml
vendored
2
.github/workflows/on_PR_linux_fuzz.yml
vendored
@ -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…
Reference in New Issue
Block a user