summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2023-12-03 16:59:10 (GMT)
committerBrad King <brad.king@kitware.com>2024-01-25 17:38:04 (GMT)
commit701029726f17759a84b963e2f318742a1761670a (patch)
tree50f7433fa86cb9a74bead4214cae34e44500a48e /Help
parentdbacc1d5a8c189289fe651ed9db892d9639354c6 (diff)
downloadCMake-701029726f17759a84b963e2f318742a1761670a.zip
CMake-701029726f17759a84b963e2f318742a1761670a.tar.gz
CMake-701029726f17759a84b963e2f318742a1761670a.tar.bz2
ctest_test: add options INCLUDE_FROM_FILE and EXCLUDE_FROM_FILE
These options can be used to specify files which can be used to restrict the set of tests that will be executed. Fixes: #25455
Diffstat (limited to 'Help')
-rw-r--r--Help/command/ctest_test.rst12
-rw-r--r--Help/release/dev/ctest-tests-from-file.rst4
2 files changed, 16 insertions, 0 deletions
diff --git a/Help/command/ctest_test.rst b/Help/command/ctest_test.rst
index cf20ade..4d56577 100644
--- a/Help/command/ctest_test.rst
+++ b/Help/command/ctest_test.rst
@@ -13,6 +13,8 @@ Perform the :ref:`CTest Test Step` as a :ref:`Dashboard Client`.
[INCLUDE <include-regex>]
[EXCLUDE_LABEL <label-exclude-regex>]
[INCLUDE_LABEL <label-include-regex>]
+ [EXCLUDE_FROM_FILE <filename>]
+ [INCLUDE_FROM_FILE <filename>]
[EXCLUDE_FIXTURE <regex>]
[EXCLUDE_FIXTURE_SETUP <regex>]
[EXCLUDE_FIXTURE_CLEANUP <regex>]
@@ -72,6 +74,16 @@ The options are:
Specify a regular expression matching test labels to include.
Tests not matching this expression are excluded.
+``EXCLUDE_FROM_FILE <filename>``
+ .. versionadded:: 3.29
+
+ Do NOT run tests listed with their exact name in the given file.
+
+``INCLUDE_FROM_FILE <filename>``
+ .. versionadded:: 3.29
+
+ Only run the tests listed with their exact name in the given file.
+
``EXCLUDE_FIXTURE <regex>``
.. versionadded:: 3.7
diff --git a/Help/release/dev/ctest-tests-from-file.rst b/Help/release/dev/ctest-tests-from-file.rst
index 470095f..aa49368 100644
--- a/Help/release/dev/ctest-tests-from-file.rst
+++ b/Help/release/dev/ctest-tests-from-file.rst
@@ -4,3 +4,7 @@ ctest-tests-from-file
* :manual:`ctest(1)` gained the :option:`--tests-from-file <ctest
--tests-from-file>` and :option:`--exclude-from-file <ctest
--exclude-from-file>` options to run or exclude tests named in a file.
+
+* The :command:`ctest_test` command gained options
+ ``INCLUDE_FROM_FILE`` and ``EXCLUDE_FROM_FILE`` to run or exclude
+ tests named in a file.