summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-03 18:21:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-02-03 18:22:02 (GMT)
commit25bf64eca639dff012f47a74a73d1af2b2e4d9c6 (patch)
tree72d9042d25aa43271e2f62d4394f32e66c1b96aa /Help
parentdfd7ca0d99b3745950925e585e73864036c0904b (diff)
parenta39d4139d07eee841016ddccde0e7c35d40c894c (diff)
downloadCMake-25bf64eca639dff012f47a74a73d1af2b2e4d9c6.zip
CMake-25bf64eca639dff012f47a74a73d1af2b2e4d9c6.tar.gz
CMake-25bf64eca639dff012f47a74a73d1af2b2e4d9c6.tar.bz2
Merge topic 'ctest-add-ignore-no-tests-option'
a39d4139d0 Add --no-tests=<[error|ignore]> option to CTest Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4258
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/ctest.1.rst8
-rw-r--r--Help/release/dev/ctest-no-tests.rst6
2 files changed, 14 insertions, 0 deletions
diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst
index 25cb639..2bfaafe 100644
--- a/Help/manual/ctest.1.rst
+++ b/Help/manual/ctest.1.rst
@@ -370,6 +370,14 @@ See `Build and Test Mode`_.
This option will not run any tests, it will simply print the list of
all labels associated with the test set.
+``--no-tests=<[error|ignore]>``
+ Regard no tests found either as error or ignore it.
+
+ If no tests were found, the default behavior of CTest is to always log an
+ error message but to return an error code in script mode only. This option
+ unifies the behavior of CTest by either returning an error code if no tests
+ were found or by ignoring it.
+
.. include:: OPTIONS_HELP.txt
.. _`Label and Subproject Summary`:
diff --git a/Help/release/dev/ctest-no-tests.rst b/Help/release/dev/ctest-no-tests.rst
new file mode 100644
index 0000000..be0f28b
--- /dev/null
+++ b/Help/release/dev/ctest-no-tests.rst
@@ -0,0 +1,6 @@
+ctest-no-tests
+--------------
+
+* The :manual:`ctest(1)` tool gained a ``--no-tests=<[error|ignore]>`` option
+ to explicitly set and unify the behavior between direct invocation and
+ script mode if no tests were found.