Skip to content
Snippets Groups Projects
Commit 491f4cae authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Merge branch 'feature/improved-cmake-test-skipping' into 'master'

Feature/improved cmake test skipping

#28 did not get much attention by fellow developers, so I hope this implementation
will draw some attention...

This MR adds a CMAKE_GUARD option to dune_add_test

A list of conditions can be passed to the argument. CMake
will evaluate these conditions, and if one of them does not
evaluate to TRUE, the test sources will be replaced by a dummy
source, that returns 77.

This option should be used instead of guarding the call to
dune_add_test with a cmake if-clause. The idea behind it is
to always give the user an idea of which tests are available,
but have not been run on his system.


Furthermore, the MR makes SKIP_ON_77 enabled by default, no need
to specify it manually anymore.


See merge request !100
parents cf18ae50 2f4ddde1
Branches
Tags
1 merge request!100Feature/improved cmake test skipping
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment