Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yuhao Liu
ogs
Commits
989a41ea
Verified
Commit
989a41ea
authored
3 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[ctest] labels and timeout for OgsTest().
parent
8f85dc9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/test/OgsTest.cmake
+18
-12
18 additions, 12 deletions
scripts/cmake/test/OgsTest.cmake
with
18 additions
and
12 deletions
scripts/cmake/test/OgsTest.cmake
+
18
−
12
View file @
989a41ea
...
...
@@ -22,7 +22,10 @@ function(OgsTest)
)
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
)
endif
()
...
...
@@ -59,16 +62,19 @@ function(OgsTest)
# $<TARGET_FILE:ogs> -r ${OgsTest_SOURCE_DIR}
# ${OgsTest_SOURCE_DIR}/${OgsTest_NAME})
current_dir_as_list
(
ProcessLib DIR_LABELS
)
set_tests_properties
(
${
TEST_NAME
}
PROPERTIES ENVIRONMENT
VTKDIFF_EXE=$<TARGET_FILE:vtkdiff>
COST
${
OgsTest_RUNTIME
}
DISABLED
${
OgsTest_DISABLED
}
LABELS
"
${
DIR_LABELS
}
"
current_dir_as_list
(
ProcessLib labels
)
if
(
${
OgsTest_RUNTIME
}
LESS_EQUAL
${
ogs.ctest.large_runtime
}
)
list
(
APPEND labels default
)
else
()
list
(
APPEND labels large
)
endif
()
set_tests_properties
(
${
TEST_NAME
}
PROPERTIES
ENVIRONMENT VTKDIFF_EXE=$<TARGET_FILE:vtkdiff>
COST
${
OgsTest_RUNTIME
}
DISABLED
${
OgsTest_DISABLED
}
LABELS
"
${
labels
}
"
TIMEOUT
${
timeout
}
)
endfunction
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment