Skip to content
Snippets Groups Projects

[cmake][dune_add_test] Set test property to depend on existence of target

Merged Timo Koch requested to merge tkoch/dune-common:feature/make-test-depend-on-target into master

If the target was not found in the current state the test fails. With this patch the ctest states "Not Run" and the name of the missing target.

Instead of

Start 4: test_stokes2cni_advection
4/5 Test #4: test_stokes2cni_advection ........***Failed    0.04 sec

it now prints the more informative

Start 4: test_stokes2cni_advection
Unable to find required file: test_stokes2cni
4/5 Test #4: test_stokes2cni_advection .........***Not Run   0.00 sec

Fixes #100 (closed).

Edited by Timo Koch

Merge request reports

Pipeline #6032 passed

Pipeline passed for 69efd0be on tkoch:feature/make-test-depend-on-target

Approval is optional

Merged by Jö FahlkeJö Fahlke 7 years ago (Nov 27, 2017 2:17pm UTC)

Merge details

Pipeline #6040 passed

Pipeline passed for 27af4005 on master

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading