diff --git a/AtlasTest/CITest/README.md b/AtlasTest/CITest/README.md index 4b0efa3e6f27e6dccfb53e55f7ba47d46a914d3d..81399ff063ec915abf6eb8df9606b97973dc34bb 100644 --- a/AtlasTest/CITest/README.md +++ b/AtlasTest/CITest/README.md @@ -63,6 +63,7 @@ atlas_add_citest( Test2 ... ) ``` Use `DEPENDS_SUCCESS` if the test should only run if the dependee(s) succeeded. +If used, `DEPENDS[_SUCCESS]` needs to be specified as the **last argument** of `atlas_add_citest`. Additional requirements can be specified via e.g. ```cmake diff --git a/AtlasTest/CITest/cmake/CITestFunctions.cmake b/AtlasTest/CITest/cmake/CITestFunctions.cmake index 5f3c874f7b1e447eb2ba7391c08a040cfd8bf6b2..c5bbda498c50e41baeb8f6bf0b9975bdb0bd1682 100644 --- a/AtlasTest/CITest/cmake/CITestFunctions.cmake +++ b/AtlasTest/CITest/cmake/CITestFunctions.cmake @@ -46,6 +46,9 @@ function( atlas_add_citest testName ) # test dependencies that are only run on success of the dependee(s): if( ARG_DEPENDS_SUCCESS ) foreach( _test ${ARG_DEPENDS_SUCCESS} ) + if( NOT TEST "CITest_${_test}_ctest" ) + message( SEND_ERROR "${testName} declares dependency on ${_test} which does not exist" ) + endif() set_property( TEST CITest_${testName}_ctest APPEND PROPERTY FIXTURES_REQUIRED "CITest_${_test}_fixture" ) endforeach()