Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-testtools
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
Model registry
Operate
Environments
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
DuneQuality
dune-testtools
Merge requests
!74
[CMake] Add discarded tests to the test suite but skip them
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[CMake] Add discarded tests to the test suite but skip them
feature/add-all-tests-and-skip
into
master
Overview
2
Commits
1
Pipelines
0
Changes
6
Merged
Dominic Kempf
requested to merge
feature/add-all-tests-and-skip
into
master
8 years ago
Overview
2
Commits
1
Pipelines
0
Changes
-
Expand
An implementation of the idea in
#104 (closed)
and
core/dune-common#28 (closed)
.
1
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
55a03dc3
1 commit,
8 years ago
+
36
−
24
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
Search (e.g. *.vue) (Ctrl+P)
cmake/modules/DuneSystemtests.cmake
+
24
−
21
Options
@@ -172,36 +172,39 @@ function(add_static_variants)
# add the executable with that configurations
if
(
NOT TARGET
${
tname
}
)
# evaluate all the discarding conditions that have been provided!
set
(
PROCEED TRUE
)
set
(
SOURCE_FILES
${
STATVAR_SOURCE
}
)
foreach
(
condition
${
STATINFO_
${
conf
}
___GUARDS
}
)
if
(
NOT
${
condition
}
)
set
(
PROCEED FALSE
)
# This test is to be skipped, we switch the source for a dummy that always return 77.
if
(
CMAKE_PROJECT_NAME STREQUAL dune-testtools
)
set
(
SOURCE_FILES
${
CMAKE_SOURCE_DIR
}
/cmake/scripts/main77.cc
)
else
()
set
(
SOURCE_FILES
${
dune-testtools_SCRIPTS_DIR
}
/main77.cc
)
endif
()
endif
()
endforeach
()
if
(
PROCEED
)
add_executable
(
${
tname
}
"
${
STATVAR_SOURCE
}
"
)
add_executable
(
${
tname
}
"
${
SOURCE_FILES
}
"
)
# Add dependency on the metatarget for this systemtest
if
(
NOT
"
${
STATINFO___CONFIGS
}
"
STREQUAL
"__empty"
)
add_dependencies
(
${
STATVAR_BASENAME
}
${
tname
}
)
endif
()
# treat compile definitions
foreach
(
cd
${
STATINFO___COMPILE_DEFINITIONS
}
)
target_compile_definitions
(
${
tname
}
PUBLIC
"
${
cd
}
=
${
STATINFO_
${
conf
}
_
${
cd
}}
"
)
endforeach
()
# Add dependency on the metatarget for this systemtest
if
(
NOT
"
${
STATINFO___CONFIGS
}
"
STREQUAL
"__empty"
)
add_dependencies
(
${
STATVAR_BASENAME
}
${
tname
}
)
endif
()
# maybe output debug information
if
(
${
STATVAR_DEBUG
}
)
message
(
"Generated target
${
tname
}
"
)
get_property
(
cd TARGET
${
tname
}
PROPERTY COMPILE_DEFINITIONS
)
message
(
" with COMPILE_DEFINITIONS:
${
cd
}
"
)
endif
()
# treat compile definitions
foreach
(
cd
${
STATINFO___COMPILE_DEFINITIONS
}
)
target_compile_definitions
(
${
tname
}
PUBLIC
"
${
cd
}
=
${
STATINFO_
${
conf
}
_
${
cd
}}
"
)
endforeach
()
# And append the target to the list of created targets
list
(
APPEND targetlist
"
${
tname
}
"
)
# maybe output debug information
if
(
${
STATVAR_DEBUG
}
)
message
(
"Generated target
${
tname
}
"
)
get_property
(
cd TARGET
${
tname
}
PROPERTY COMPILE_DEFINITIONS
)
message
(
" with COMPILE_DEFINITIONS:
${
cd
}
"
)
endif
()
# And append the target to the list of created targets
list
(
APPEND targetlist
"
${
tname
}
"
)
endif
()
if
(
${
STATVAR_DEBUG
}
)
message
(
"Generating target
${
tname
}
skipped because it already existed!"
)
Loading