Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Core Modules
dune-common
Commits
8d44187c
Commit
8d44187c
authored
9 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Check for the presence of TIMEOUT before setting the default on MPI_RANKS
parent
a4936921
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!1
Implement some new features for dune_add_test
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/modules/DuneTestMacros.cmake
+3
-3
3 additions, 3 deletions
cmake/modules/DuneTestMacros.cmake
with
3 additions
and
3 deletions
cmake/modules/DuneTestMacros.cmake
+
3
−
3
View file @
8d44187c
...
...
@@ -196,12 +196,12 @@ function(dune_add_test)
if
(
NOT ADDTEST_COMMAND
)
set
(
ADDTEST_COMMAND
${
ADDTEST_NAME
}
)
endif
()
if
(
NOT ADDTEST_MPI_RANKS
)
set
(
ADDTEST_MPI_RANKS 1
)
endif
()
if
(
ADDTEST_MPI_RANKS
AND
(
NOT ADDTEST_TIMEOUT
))
message
(
FATAL_ERROR
"dune_add_test: You need to specify the TIMEOUT parameter if using the MPI_RANKS parameter."
)
endif
()
if
(
NOT ADDTEST_MPI_RANKS
)
set
(
ADDTEST_MPI_RANKS 1
)
endif
()
if
(
NOT ADDTEST_TIMEOUT
)
set
(
ADDTEST_TIMEOUT 300
)
endif
()
...
...
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