Skip to content

Commit

Permalink
Add -jN to memcheck.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 31, 2024
1 parent 57d0675 commit f182ff2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,14 @@ if(OPTION_TEST_MEMORYCHECK AND NOT (OPTION_BUILD_ADDRESS_SANITIZER OR OPTION_BUI
# - metacall-inspect-test
# - metacall-integration-test

include(ProcessorCount)

ProcessorCount(N)

add_custom_target(memcheck
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
COMMAND ${CMAKE_CTEST_COMMAND}
-j${N}
--label-exclude MEMCHECK_IGNORE
--force-new-ctest-process
--test-action memcheck
Expand Down

0 comments on commit f182ff2

Please sign in to comment.