Skip to content
Snippets Groups Projects

Feature/improved cmake test skipping

Merged Dominic Kempf requested to merge feature/improved-cmake-test-skipping into master
  1. Jul 12, 2016
  2. Jun 03, 2016
    • Dominic Kempf's avatar
      [cmake] Add a CMAKE_GUARD option to dune_add_test · 8bed05f7
      Dominic Kempf authored
      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.
      
      The commit also applies the new argument to the only occurence in
      dune-common.
      8bed05f7
    • Dominic Kempf's avatar
      [cmake] Always skip tests on return code 77, not only when specified · 9c6942e3
      Dominic Kempf authored
      This IMO removes a source of error, reduces some lines of code
      and only does harm in the case of an accidental return of 77 (which
      I do not think will happen)
      9c6942e3
Loading