summaryrefslogtreecommitdiffstats
path: root/Source/ctest.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-06-24 10:16:32 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-06-24 12:03:24 (GMT)
commit93d084c180fde5bc3c31b9945ea7ddb06d9a6007 (patch)
treed5e21412dc94d4105acfdbf2c12c97cc0d8fc9d8 /Source/ctest.cxx
parentaf298480d020e814fa4537ca7d7dd44d472489b5 (diff)
downloadCMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.zip
CMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.tar.gz
CMake-93d084c180fde5bc3c31b9945ea7ddb06d9a6007.tar.bz2
CTest: Extend -D command line arg handling for variable definitions
If the argument following -D is not a valid dashboard type string, then try to parse it as a "var:type=value" string just like cmake already does.
Diffstat (limited to 'Source/ctest.cxx')
-rw-r--r--Source/ctest.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/ctest.cxx b/Source/ctest.cxx
index d41627e..d650777 100644
--- a/Source/ctest.cxx
+++ b/Source/ctest.cxx
@@ -103,6 +103,12 @@ static const char * cmDocumentationOptions[][3] =
"a dashboard test. All tests are <Mode><Test>, where Mode can be "
"Experimental, Nightly, and Continuous, and Test can be Start, Update, "
"Configure, Build, Test, Coverage, and Submit."},
+ {"-D <var>:<type>=<value>", "Define a variable for script mode",
+ "Pass in variable values on the command line. Use in "
+ "conjunction with -S to pass variable values to a dashboard script. "
+ "Parsing -D arguments as variable values is only attempted if "
+ "the value following -D does not match any of the known dashboard "
+ "types."},
{"-M <model>, --test-model <model>", "Sets the model for a dashboard",
"This option tells ctest to act as a Dart client "
"where the TestModel can be Experimental, "