diff options
author | Stefan Dinkelacker <s.dinkelacker@dkfz-heidelberg.de> | 2020-01-31 18:09:35 +0100 |
---|---|---|
committer | Stefan Dinkelacker <s.dinkelacker@dkfz-heidelberg.de> | 2020-01-31 18:17:13 +0100 |
commit | a39d4139d07eee841016ddccde0e7c35d40c894c (patch) | |
tree | 16ecd9c12b45d49e37a04d1e215567ecdb5a01e8 /Help/manual/ctest.1.rst | |
parent | 08774385995777e2e2f9a72055e782b2b6d96cfa (diff) | |
download | cmake-a39d4139d07eee841016ddccde0e7c35d40c894c.tar.gz |
Add --no-tests=<[error|ignore]> option to CTest
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.
Signed-off-by: Stefan Dinkelacker <s.dinkelacker@dkfz-heidelberg.de>
Diffstat (limited to 'Help/manual/ctest.1.rst')
-rw-r--r-- | Help/manual/ctest.1.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst index 25cb639669..2bfaafeade 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`: |