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
1c8df3f1
Commit
1c8df3f1
authored
7 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[cmake][dune_add_test] Rename DOSOMETHING to SHOULD_SKIP_TEST
parent
dc61d9a3
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!405
[cmake][dune_add_test] Fix cmake guard and skipping tests
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 @
1c8df3f1
...
...
@@ -231,18 +231,18 @@ function(dune_add_test)
endif
()
# Find out whether this test should be a dummy
set
(
DOSOMETHING TRU
E
)
set
(
SHOULD_SKIP_TEST FALS
E
)
set
(
FAILED_CONDITION_PRINTING
""
)
foreach
(
condition
${
ADDTEST_CMAKE_GUARD
}
)
separate_arguments
(
condition
)
if
(
NOT
(
${
condition
}
))
set
(
DOSOMETHING FALS
E
)
set
(
SHOULD_SKIP_TEST TRU
E
)
set
(
FAILED_CONDITION_PRINTING
"
${
FAILED_CONDITION_PRINTING
}
std::cout <<
\"
${
condition
}
\"
<< std::endl;
\n
"
)
endif
()
endforeach
()
# If we do nothing, switch the sources for a dummy source
if
(
NOT DOSOMETHING
)
if
(
SHOULD_SKIP_TEST
)
dune_module_path
(
MODULE dune-common RESULT scriptdir SCRIPT_DIR
)
set
(
ADDTEST_TARGET
)
set
(
dummymain
${
CMAKE_CURRENT_BINARY_DIR
}
/main77_
${
ADDTEST_NAME
}
.cc
)
...
...
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