Skip to content
Snippets Groups Projects
Verified Commit 989a41ea authored by Lars Bilke's avatar Lars Bilke
Browse files

[ctest] labels and timeout for OgsTest().

parent 8f85dc9f
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,10 @@ function(OgsTest) ...@@ -22,7 +22,10 @@ function(OgsTest)
) )
endif() endif()
if(NOT DEFINED OgsTest_RUNTIME) set(timeout ${ogs.ctest.large_runtime})
if(DEFINED OgsTest_RUNTIME)
math(EXPR timeout "${OgsTest_RUNTIME} * 3")
else()
set(OgsTest_RUNTIME 1) set(OgsTest_RUNTIME 1)
endif() endif()
...@@ -59,16 +62,19 @@ function(OgsTest) ...@@ -59,16 +62,19 @@ function(OgsTest)
# $<TARGET_FILE:ogs> -r ${OgsTest_SOURCE_DIR} # $<TARGET_FILE:ogs> -r ${OgsTest_SOURCE_DIR}
# ${OgsTest_SOURCE_DIR}/${OgsTest_NAME}) # ${OgsTest_SOURCE_DIR}/${OgsTest_NAME})
current_dir_as_list(ProcessLib DIR_LABELS) current_dir_as_list(ProcessLib labels)
set_tests_properties( if(${OgsTest_RUNTIME} LESS_EQUAL ${ogs.ctest.large_runtime})
${TEST_NAME} list(APPEND labels default)
PROPERTIES ENVIRONMENT else()
VTKDIFF_EXE=$<TARGET_FILE:vtkdiff> list(APPEND labels large)
COST endif()
${OgsTest_RUNTIME}
DISABLED set_tests_properties( ${TEST_NAME}
${OgsTest_DISABLED} PROPERTIES
LABELS ENVIRONMENT VTKDIFF_EXE=$<TARGET_FILE:vtkdiff>
"${DIR_LABELS}" COST ${OgsTest_RUNTIME}
DISABLED ${OgsTest_DISABLED}
LABELS "${labels}"
TIMEOUT ${timeout}
) )
endfunction() endfunction()
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