diff options
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/ctest.1.rst | 8 | ||||
-rw-r--r-- | Help/release/dev/ctest-no-tests.rst | 6 |
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. |