summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-06-12 16:48:04 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-06-12 16:48:13 (GMT)
commitf07200fe163640f708c62de3cbdc0fb49a7e0471 (patch)
tree785ba40885c82aa0fa62de210b92ea30a027c7ea /Help/command
parentc1580ecc13cf2dea3f047d1018e705bd34cecc53 (diff)
parente791ffac61912f6540742aabaf4cb78a4d475a16 (diff)
downloadCMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.zip
CMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.tar.gz
CMake-f07200fe163640f708c62de3cbdc0fb49a7e0471.tar.bz2
Merge topic 'add-test-command-expand-lists'
e791ffac61 add_test: Add COMMAND_EXPAND_LISTS option Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3422
Diffstat (limited to 'Help/command')
-rw-r--r--Help/command/add_test.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/Help/command/add_test.rst b/Help/command/add_test.rst
index 46b9b63..884b2ee 100644
--- a/Help/command/add_test.rst
+++ b/Help/command/add_test.rst
@@ -7,7 +7,8 @@ Add a test to the project to be run by :manual:`ctest(1)`.
add_test(NAME <name> COMMAND <command> [<arg>...]
[CONFIGURATIONS <config>...]
- [WORKING_DIRECTORY <dir>])
+ [WORKING_DIRECTORY <dir>]
+ [COMMAND_EXPAND_LISTS])
Adds a test called ``<name>``. The test name may not contain spaces,
quotes, or other characters special in CMake syntax. The options are:
@@ -28,6 +29,11 @@ quotes, or other characters special in CMake syntax. The options are:
directory set to the build directory corresponding to the
current source directory.
+``COMMAND_EXPAND_LISTS``
+ Lists in ``COMMAND`` arguments will be expanded, including those
+ created with
+ :manual:`generator expressions <cmake-generator-expressions(7)>`.
+
The given test command is expected to exit with code ``0`` to pass and
non-zero to fail, or vice-versa if the :prop_test:`WILL_FAIL` test
property is set. Any output written to stdout or stderr will be