Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loadbalancing
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
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
SLMS
loadbalancing
Commits
2b2f94ee
Commit
2b2f94ee
authored
4 years ago
by
Stephan Schulz
Browse files
Options
Downloads
Patches
Plain Diff
guard feature tests behind CM_ALL_TESTS_INTEGRATION
parent
78fb92a0
Branches
second
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
CHANGELOG.rst
+2
-0
2 additions, 0 deletions
CHANGELOG.rst
CMakeLists.txt
+6
-0
6 additions, 0 deletions
CMakeLists.txt
docs/Install.rst
+8
-3
8 additions, 3 deletions
docs/Install.rst
tests/CMakeLists.txt
+4
-1
4 additions, 1 deletion
tests/CMakeLists.txt
with
20 additions
and
4 deletions
CHANGELOG.rst
+
2
−
0
View file @
2b2f94ee
...
...
@@ -8,6 +8,8 @@ Version 0.9
Version 0.9.2
*************
- Feature: Integration tests are only generated if ``CM_ALL_TESTS_INTEGRATION``
is set.
- Feature: Example CMake and Make projects for integrating ALL into the build
process.
- Bug: CMake dependencies between targets and link and include inheritance
...
...
This diff is collapsed.
Click to expand it.
CMakeLists.txt
+
6
−
0
View file @
2b2f94ee
...
...
@@ -8,6 +8,7 @@ option(CM_ALL_USE_F08 "Use some Fortran 2008 features (mpi_f08)" OFF)
option
(
CM_ALL_FORTRAN_ERROR_ABORT
"Abort on any error when using the
Fortran interface"
OFF
)
option
(
CM_ALL_TESTS
"Enables test suite"
OFF
)
option
(
CM_ALL_TESTS_INTEGRATION
"Enables integration tests"
OFF
)
option
(
CM_ALL_AUTO_DOC
"Enables creation of auto-documentation"
)
# leading and trailing whitespace should be silently ignored
...
...
@@ -109,6 +110,11 @@ if(CM_ALL_VORONOI)
message
(
STATUS
"compiling voro++ version in contrib/voro++"
)
add_subdirectory
(
contrib/voro++
)
endif
()
if
(
CM_ALL_TESTS_INTEGRATION
)
if
(
NOT CM_ALL_TESTS
)
message
(
WARNING
"Integration tests enabled, but testing itself not. No tests will be generated!"
)
endif
()
endif
()
set
(
STB_INCLUDE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/contrib/stb
)
...
...
This diff is collapsed.
Click to expand it.
docs/Install.rst
+
8
−
3
View file @
2b2f94ee
...
...
@@ -50,9 +50,14 @@ Compile time features
``-DCM_ALL_VORONOI=ON`` (default: ``OFF``)
Enable Voronoi mesh method and subsequently compilation and linkage of
Voro++.
``-DCM_ALL_TESTING=ON`` (default: ``OFF``)
Turns on unit and feature tests. Can be run from the build directory
with ``ctest``. Requires the Boost test utilities.
``-DCM_ALL_TESTS=ON`` (default: ``OFF``)
Turns on generation of tests. Will only generate unit tests by default
and additional tests can be enabled with other flags, see below. Tests
can be run from the build directory with ``ctest``. Requires the Boost
test utilities.
``-DCM_ALL_TESTS_INTEGRATION=ON`` (default: ``OFF``)
Enables integration/feature tests. Requires ``CM_ALL_TESTS`` to be
enabled as well.
``-DCMAKE_BUILD_TYPE=Debug`` (default: ``Release``)
Enable library internal debugging features. Using ``DebugWithOpt`` also
turns on some optimizations.
...
...
This diff is collapsed.
Click to expand it.
tests/CMakeLists.txt
+
4
−
1
View file @
2b2f94ee
add_subdirectory
(
unit
)
if
(
CM_ALL_TESTS_INTEGRATION
)
add_subdirectory
(
feature
)
endif
()
# vim: sw=4 ts=4 et
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