summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-09-22 18:04:13 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-09-22 18:04:13 (GMT)
commit43fe0d3978a81b74be42c0e975bdfe0092778b48 (patch)
treeea9ef04f8c3cf88521ed08cdbfe7e52dfe4405ea /Source/cmCTest.cxx
parentae9f9e6994c430d697387bb005616bda4a9c09b8 (diff)
downloadCMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.zip
CMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.tar.gz
CMake-43fe0d3978a81b74be42c0e975bdfe0092778b48.tar.bz2
ENH: add max width option to ctest ouptut
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 012571f..c3033de 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -249,6 +249,7 @@ cmCTest::cmCTest()
this->ShowOnly = false;
this->RunConfigurationScript = false;
this->TestModel = cmCTest::EXPERIMENTAL;
+ this->MaxTestNameWidth = 30;
this->InteractiveDebugMode = true;
this->TimeOut = 0;
this->CompressXMLFiles = false;
@@ -1721,6 +1722,11 @@ void cmCTest::HandleCommandLineArguments(size_t &i,
{
this->ForceNewCTestProcess = true;
}
+ if(this->CheckArgument(arg, "-W", "--max-width") && i < args.size() - 1)
+ {
+ i++;
+ this->MaxTestNameWidth = atoi(args[i].c_str());
+ }
if(this->CheckArgument(arg, "--interactive-debug-mode") &&
i < args.size() - 1 )
{
@@ -2310,6 +2316,12 @@ bool cmCTest::GetShowOnly()
}
//----------------------------------------------------------------------
+int cmCTest::GetMaxTestNameWidth() const
+{
+ return this->MaxTestNameWidth;
+}
+
+//----------------------------------------------------------------------
void cmCTest::SetProduceXML(bool v)
{
this->ProduceXML = v;