summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/README.rst
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-01-20 18:46:51 (GMT)
committerBrad King <brad.king@kitware.com>2014-01-20 18:46:51 (GMT)
commitd4ca30ae150ea83c91bb75527a4152ce87e289e5 (patch)
tree0ed8a710abd0a8dbded1f330fe456f5aace2d4d1 /Tests/RunCMake/README.rst
parent392a6553f9fe9908d5d7c363ad013003d965e5e0 (diff)
downloadCMake-d4ca30ae150ea83c91bb75527a4152ce87e289e5.zip
CMake-d4ca30ae150ea83c91bb75527a4152ce87e289e5.tar.gz
CMake-d4ca30ae150ea83c91bb75527a4152ce87e289e5.tar.bz2
Tests/RunCMake: Add function to run a specified command-line
Add a 'run_cmake_command' function that can be used by tests to run a given command-line and check the results rather than always running a CMake configuration process. This can be used in the future to test 'cmake -E' for example.
Diffstat (limited to 'Tests/RunCMake/README.rst')
-rw-r--r--Tests/RunCMake/README.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/RunCMake/README.rst b/Tests/RunCMake/README.rst
index d4159a5..536cff2 100644
--- a/Tests/RunCMake/README.rst
+++ b/Tests/RunCMake/README.rst
@@ -16,6 +16,12 @@ but do not actually build anything. To add a test:
where ``SubTest1`` through ``SubTestN`` are sub-test names each
corresponding to an independent CMake run and project configuration.
+ One may also add calls of the form::
+
+ run_cmake_command(SubTestI ${CMAKE_COMMAND} ...)
+
+ to fully customize the test case command-line.
+
4. Create file ``<Test>/CMakeLists.txt`` in the directory containing::
cmake_minimum_required(...)