0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-08 10:31:50 -05:00

build: Add JOBS variable support to CoverageFuzz.cmake script

This commit is contained in:
Hennadii Stepanov 2024-09-04 06:29:37 +01:00
parent e7cf4a6f27
commit d9fcbfc372
No known key found for this signature in database
GPG key ID: 410108112E7EA81F

View file

@ -8,8 +8,13 @@ if(NOT DEFINED FUZZ_CORPORA_DIR)
set(FUZZ_CORPORA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qa-assets/fuzz_corpora)
endif()
set(fuzz_test_runner test/fuzz/test_runner.py ${FUZZ_CORPORA_DIR})
if(DEFINED JOBS)
list(APPEND fuzz_test_runner -j ${JOBS})
endif()
execute_process(
COMMAND test/fuzz/test_runner.py ${FUZZ_CORPORA_DIR} --loglevel DEBUG
COMMAND ${fuzz_test_runner} --loglevel DEBUG
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
COMMAND_ERROR_IS_FATAL ANY
)