Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • dumux dumux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 91
    • Issues 91
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 80
    • Merge requests 80
  • Deployments
    • Deployments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • dumux-repositories
  • dumuxdumux
  • Issues
  • #263
Closed
Open
Created Apr 17, 2015 by Timo Koch@timokOwner

FS#263 Don't build executables on make test

Metadata

Property Value
Project dumux
Category CMake
Reported by Timo Koch (timo.koch@iws.uni-stuttgart.de)
Reported at Apr 17, 2015 11:10
Type Feature Request
Version Git
Last edited by Christoph Grüninger (gruenich@iws.uni-stuttgart.de)
Last edited at Feb 23, 2016 08:28
Closed by Christoph Grüninger (gruenich@iws.uni-stuttgart.de)
Closed at Feb 23, 2016 08:28
Closed in version 2.9
Resolution Deferred

Description

The CMake way to do this is

make all
make test

where make all builds all executables, make test RUNS the tests.
Some Dune magic can be used to compile all tests on make test.
This has the disadvantage that all tests build also if only one test is desired to run (with ctest -R my_test). This only occurs when there are more than one test in the same directory.

The CMake way has advantages that get lost by contracting build and execution:
- In an automated build the compilation and execution can fail/pass separately
- One test can be build and executed if desired (make my_test, ctest -R my_test)  
Assignee
Assign to
Time tracking