Skip to content
Snippets Groups Projects
Commit 5b9b11e8 authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Introduced target ctest-serial.

Targets ctest and ctest-large now run 3 parallel processes.
parent 5d8ca6b6
No related branches found
No related tags found
No related merge requests found
......@@ -36,6 +36,8 @@ configure_file(
include(${CMAKE_CURRENT_SOURCE_DIR}/scripts/cmake/test/AddTest.cmake)
set(NUM_CTEST_PROCESSORS 3)
if(CMAKE_CONFIGURATION_TYPES)
set(CONFIG_PARAMETER --build-config "$<CONFIGURATION>")
endif()
......@@ -46,7 +48,16 @@ add_custom_target(
--force-new-ctest-process
--output-on-failure --output-log Tests/ctest.log
--exclude-regex LARGE
${CONFIG_PARAMETER} --parallel ${NUM_PROCESSORS} --test-action test
${CONFIG_PARAMETER} --parallel ${NUM_CTEST_PROCESSORS} --test-action test
DEPENDS ogs vtkdiff ctest-cleanup
)
add_custom_target(
ctest-serial
COMMAND ${CMAKE_CTEST_COMMAND} -T Test
--force-new-ctest-process
--output-on-failure --output-log Tests/ctest.log
--exclude-regex LARGE
${CONFIG_PARAMETER} --test-action test
DEPENDS ogs vtkdiff ctest-cleanup
)
add_custom_target(ctest-large-cleanup ${CMAKE_COMMAND} -E remove Tests/ctest-large.log)
......@@ -55,7 +66,7 @@ add_custom_target(
COMMAND ${CMAKE_CTEST_COMMAND} -T Test
--force-new-ctest-process
--output-on-failure --output-log Tests/ctest-large.log
${CONFIG_PARAMETER} --test-action test
${CONFIG_PARAMETER} --parallel ${NUM_CTEST_PROCESSORS} --test-action test
DEPENDS ogs vtkdiff ctest-large-cleanup
)
add_custom_target(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment