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:
parent
e7cf4a6f27
commit
d9fcbfc372
1 changed files with 6 additions and 1 deletions
|
@ -8,8 +8,13 @@ if(NOT DEFINED FUZZ_CORPORA_DIR)
|
||||||
set(FUZZ_CORPORA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qa-assets/fuzz_corpora)
|
set(FUZZ_CORPORA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qa-assets/fuzz_corpora)
|
||||||
endif()
|
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(
|
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}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
|
||||||
COMMAND_ERROR_IS_FATAL ANY
|
COMMAND_ERROR_IS_FATAL ANY
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue