diff options
author | Deniz Bahadir <dbahadir@benocs.com> | 2020-05-15 23:52:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-08-12 14:44:07 (GMT) |
commit | a20987732bbd8d7e86501e42b2b5a72d60d02805 (patch) | |
tree | 89f416b8548c649d89e7d1108cc0905058a43ff0 /Help/command/add_test.rst | |
parent | d6ee9b4a43210553b8f4d3a11413f744e2affb26 (diff) | |
download | CMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.zip CMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.tar.gz CMake-a20987732bbd8d7e86501e42b2b5a72d60d02805.tar.bz2 |
add_test: Allow special characters in test name (w/ policy CMP0110)
Restore the change from commit f84af8e270 (add_test: Allow special
characters in test name, 2020-05-16, v3.18.0-rc1~142^2) that had to be
reverted by commit f84af8e270 (add_test: Allow special characters in
test name, 2020-05-16, v3.18.0-rc1~142^2) for compatibility.
Add policy CMP0110 to make the change in a compatible way.
Also, support even more characters than before by generating the
test scripts using bracket arguments around the test names.
Fixes: #19391
Signed-off-by: Deniz Bahadir <dbahadir@benocs.com>
Diffstat (limited to 'Help/command/add_test.rst')
-rw-r--r-- | Help/command/add_test.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Help/command/add_test.rst b/Help/command/add_test.rst index a77ba37..2b4d082 100644 --- a/Help/command/add_test.rst +++ b/Help/command/add_test.rst @@ -10,8 +10,9 @@ Add a test to the project to be run by :manual:`ctest(1)`. [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: +Adds a test called ``<name>``. The test name may contain arbitrary +characters, expressed as a :ref:`Quoted Argument` or :ref:`Bracket Argument` +if necessary. See policy :policy:`CMP0110`. The options are: ``COMMAND`` Specify the test command-line. If ``<command>`` specifies an |