mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-29 11:12:10 +01:00
build: Add JOBS
variable support to CoverageFuzz.cmake
script
This commit is contained in:
parent
e7cf4a6f27
commit
d9fcbfc372
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user