summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2010-08-31 14:41:23 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2010-08-31 14:41:23 (GMT)
commit32242affea45eb3c3ffa2691657e970eaac49799 (patch)
tree6d75ae8b204aac75d8b8baae644e14f4f88557e5 /Source/cmCTest.cxx
parentaac1680648634a87dd4eee3ae603aef387798244 (diff)
downloadCMake-32242affea45eb3c3ffa2691657e970eaac49799.zip
CMake-32242affea45eb3c3ffa2691657e970eaac49799.tar.gz
CMake-32242affea45eb3c3ffa2691657e970eaac49799.tar.bz2
Added CTest command --print-labels
This command allows a user to quickly see the list of all available test labels. The labels are also printed in verbose show only mode, alongside their corresponding tests.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index d12fde0..dcdc8e1 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -304,6 +304,7 @@ cmCTest::cmCTest()
this->ShowOnly = false;
this->RunConfigurationScript = false;
this->UseHTTP10 = false;
+ this->PrintLabels = false;
this->CompressTestOutput = true;
this->ComputedCompressOutput = false;
this->TestModel = cmCTest::EXPERIMENTAL;
@@ -1877,6 +1878,11 @@ void cmCTest::HandleCommandLineArguments(size_t &i,
this->CompressTestOutput = false;
}
+ if(this->CheckArgument(arg, "--print-labels"))
+ {
+ this->PrintLabels = true;
+ }
+
if(this->CheckArgument(arg, "--http1.0"))
{
this->UseHTTP10 = true;