mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-25 01:28:50 -05:00
Help: Add example for DEPENDS test property
This commit is contained in:
committed by
Craig Scott
parent
01069f9a10
commit
61139c91d2
@@ -8,3 +8,15 @@ results of those tests are not considered, the dependency relationship is
|
|||||||
purely for order of execution (i.e. it is really just a *run after*
|
purely for order of execution (i.e. it is really just a *run after*
|
||||||
relationship). Consider using test fixtures with setup tests if a dependency
|
relationship). Consider using test fixtures with setup tests if a dependency
|
||||||
with successful completion is required (see :prop_test:`FIXTURES_REQUIRED`).
|
with successful completion is required (see :prop_test:`FIXTURES_REQUIRED`).
|
||||||
|
|
||||||
|
Examples
|
||||||
|
~~~~~~~~
|
||||||
|
|
||||||
|
.. code-block:: cmake
|
||||||
|
|
||||||
|
add_test(NAME baseTest1 ...)
|
||||||
|
add_test(NAME baseTest2 ...)
|
||||||
|
add_test(NAME dependsTest12 ...)
|
||||||
|
|
||||||
|
set_tests_properties(dependsTest12 PROPERTIES DEPENDS "baseTest1;baseTest2")
|
||||||
|
# dependsTest12 runs after baseTest1 and baseTest2, even if they fail
|
||||||
|
|||||||
Reference in New Issue
Block a user