summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/README.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-19 16:07:34 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-19 16:26:44 (GMT)
commit9b50388b0989fab1d77fbb3d48e648c86427d808 (patch)
treee8aa7b1eda503eb170b90a066809f8b46cde2982 /Tests/RunCMake/README.rst
parent76e7c22b3c37f382d6232ee95fe77e39e7aa269d (diff)
downloadCMake-9b50388b0989fab1d77fbb3d48e648c86427d808.zip
CMake-9b50388b0989fab1d77fbb3d48e648c86427d808.tar.gz
CMake-9b50388b0989fab1d77fbb3d48e648c86427d808.tar.bz2
Tests: Split RunCTest helper out of RunCMake.CTest(Submit|Memcheck)
Provide the "run_ctest" macro for use in other tests that also want to cover running "ctest" scripts.
Diffstat (limited to 'Tests/RunCMake/README.rst')
-rw-r--r--Tests/RunCMake/README.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Tests/RunCMake/README.rst b/Tests/RunCMake/README.rst
index e801a86..4aae4ae 100644
--- a/Tests/RunCMake/README.rst
+++ b/Tests/RunCMake/README.rst
@@ -22,6 +22,16 @@ but do not actually build anything. To add a test:
to fully customize the test case command-line.
+ Alternatively, if the test is to cover running ``ctest -S`` then use::
+
+ include(RunCTest)
+ run_ctest(SubTest1)
+ ...
+ run_ctest(SubTestN)
+
+ and create ``test.cmake.in``, ``CTestConfig.cmake.in``, and
+ ``CMakeLists.txt.in`` files to be configured for each case.
+
4. Create file ``<Test>/CMakeLists.txt`` in the directory containing::
cmake_minimum_required(...)