Skip to content
Snippets Groups Projects
Commit 2b2f94ee authored by Stephan Schulz's avatar Stephan Schulz
Browse files

guard feature tests behind CM_ALL_TESTS_INTEGRATION

parent 78fb92a0
Branches second
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
......@@ -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.
......
add_subdirectory(unit)
if(CM_ALL_TESTS_INTEGRATION)
add_subdirectory(feature)
endif()
# vim: sw=4 ts=4 et
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment