summaryrefslogtreecommitdiffstats
path: root/Help/prop_test/PASS_REGULAR_EXPRESSION.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-06 12:58:23 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-06 12:58:23 (GMT)
commit156d3f8903057ba92195f442cc1d0dd817731bc8 (patch)
treefda850e8581026ce22ba89cd1abb3d79194dce95 /Help/prop_test/PASS_REGULAR_EXPRESSION.rst
parentdfbde6fa991e60853a9f7ad165c4b8c8416a9ba4 (diff)
parent6f82b5e81ca9677dc2fde855ba7be8e235baa667 (diff)
downloadCMake-156d3f8903057ba92195f442cc1d0dd817731bc8.zip
CMake-156d3f8903057ba92195f442cc1d0dd817731bc8.tar.gz
CMake-156d3f8903057ba92195f442cc1d0dd817731bc8.tar.bz2
Merge topic 'improve-properties-help'
6f82b5e8 Help: Link to properties in set_tests_properties. 66f5af29 Help: Link to properties in set_directory_properties docs. f7dd3f7c Help: Add link in set_source_files_properties command docs. 3b256173 Help: Shorten too-long title marker. 8fc3a2fb Help: Add references to cmake-property sections.
Diffstat (limited to 'Help/prop_test/PASS_REGULAR_EXPRESSION.rst')
-rw-r--r--Help/prop_test/PASS_REGULAR_EXPRESSION.rst10
1 files changed, 9 insertions, 1 deletions
diff --git a/Help/prop_test/PASS_REGULAR_EXPRESSION.rst b/Help/prop_test/PASS_REGULAR_EXPRESSION.rst
index bb35f77..0cd6215 100644
--- a/Help/prop_test/PASS_REGULAR_EXPRESSION.rst
+++ b/Help/prop_test/PASS_REGULAR_EXPRESSION.rst
@@ -5,4 +5,12 @@ The output must match this regular expression for the test to pass.
If set, the test output will be checked against the specified regular
expressions and at least one of the regular expressions has to match,
-otherwise the test will fail.
+otherwise the test will fail. Example:
+
+.. code-block:: cmake
+
+ set_tests_properties(mytest PROPERTIES
+ PASS_REGULAR_EXPRESSION "TestPassed;All ok"
+ )
+
+``PASS_REGULAR_EXPRESSION`` expects a list of regular expressions.