Skip to content

Commit d9fcbfc

Browse files
committed
build: Add JOBS variable support to CoverageFuzz.cmake script
1 parent e7cf4a6 commit d9fcbfc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

cmake/script/CoverageFuzz.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@ if(NOT DEFINED FUZZ_CORPORA_DIR)
88
set(FUZZ_CORPORA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qa-assets/fuzz_corpora)
99
endif()
1010

11+
set(fuzz_test_runner test/fuzz/test_runner.py ${FUZZ_CORPORA_DIR})
12+
if(DEFINED JOBS)
13+
list(APPEND fuzz_test_runner -j ${JOBS})
14+
endif()
15+
1116
execute_process(
12-
COMMAND test/fuzz/test_runner.py ${FUZZ_CORPORA_DIR} --loglevel DEBUG
17+
COMMAND ${fuzz_test_runner} --loglevel DEBUG
1318
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
1419
COMMAND_ERROR_IS_FATAL ANY
1520
)

0 commit comments

Comments
 (0)