Commit 02f52012 authored by Lukas Riedel's avatar Lukas Riedel

decreased number of parallel reference tests

parent a5519bdb
......@@ -5,18 +5,6 @@ configure_file(CTestCustom.cmake ${CMAKE_BINARY_DIR} @ONLY)
# create a list of available numbers of cores
include(ProcessorCount)
ProcessorCount(num_proc)
set(num_proc_list "2")
if(num_proc GREATER 2)
# limit number of tests
if(num_proc GREATER 6)
set(num_proc 6)
endif()
foreach(n RANGE 3 ${num_proc})
set(num_proc_list "${num_proc_list}, ${n}")
endforeach()
else()
set(num_proc 2)
endif()
function(dorie_add_system_test target metaini)
configure_file(${metaini}.in ${CMAKE_CURRENT_LIST_DIR}/${metaini})
......@@ -43,8 +31,7 @@ dorie_add_system_test(dorie reference_interpolators.mini)
if(num_proc GREATER 1)
dorie_add_system_test(dorie parallel_reference.mini)
dorie_add_system_test(dorie parallel_reference_compare.mini)
math(EXPR ptest_range "(${num_proc} - 2) * 2")
foreach(n RANGE ${ptest_range})
foreach(n RANGE 0 3)
dorie_add_system_test_dependency(dorie_parallel_reference_compare_000${n} dorie_parallel_reference)
endforeach()
endif()
......
include ${CMAKE_BINARY_DIR}/doc/default_files/config.ini
_num_proc = ${num_proc_list} | expand
_num_proc = 2, 3 | expand
__name = parallel_reference_compare
_test_command = run
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment