diff options
author | Alex Neundorf <neundorf@kde.org> | 2023-11-30 22:14:46 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-25 17:37:56 (GMT) |
commit | dbacc1d5a8c189289fe651ed9db892d9639354c6 (patch) | |
tree | 28efd558a99a217e52309afaa5e475ab709014c3 /Help | |
parent | 022f20f6632c934169f440271cabe8c7e52cce6e (diff) | |
download | CMake-dbacc1d5a8c189289fe651ed9db892d9639354c6.zip CMake-dbacc1d5a8c189289fe651ed9db892d9639354c6.tar.gz CMake-dbacc1d5a8c189289fe651ed9db892d9639354c6.tar.bz2 |
ctest: add command line option to exclude tests listed in a given file
Add `--exclude-from-file <filename>` to exclude the tests listed in the
given file.
Issue: #25455
Diffstat (limited to 'Help')
-rw-r--r-- | Help/manual/ctest.1.rst | 12 | ||||
-rw-r--r-- | Help/release/dev/ctest-tests-from-file.rst | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Help/manual/ctest.1.rst b/Help/manual/ctest.1.rst index 1174725..602a82d 100644 --- a/Help/manual/ctest.1.rst +++ b/Help/manual/ctest.1.rst @@ -246,6 +246,18 @@ Run Tests This option can be combined with the other options like ``-R``, ``-E``, ``-L`` or ``-LE``. +.. option:: --exclude-from-file <filename> + + .. versionadded:: 3.29 + + Exclude tests listed in the given file. + + This option tells CTest to NOT run the tests which are listed in the given + file. The file must contain one exact test name per line. + Lines can be commented out using a ``#``. + This option can be combined with the other options like + ``-R``, ``-E``, ``-L`` or ``-LE``. + .. option:: -FA <regex>, --fixture-exclude-any <regex> Exclude fixtures matching ``<regex>`` from automatically adding any tests to diff --git a/Help/release/dev/ctest-tests-from-file.rst b/Help/release/dev/ctest-tests-from-file.rst index f0abda9..470095f 100644 --- a/Help/release/dev/ctest-tests-from-file.rst +++ b/Help/release/dev/ctest-tests-from-file.rst @@ -2,4 +2,5 @@ ctest-tests-from-file --------------------- * :manual:`ctest(1)` gained the :option:`--tests-from-file <ctest - --tests-from-file>` option to run tests named in a file. + --tests-from-file>` and :option:`--exclude-from-file <ctest + --exclude-from-file>` options to run or exclude tests named in a file. |