From 65c418e56ffb29f889bd14fc363fb221a0827948 Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Thu, 24 Sep 2009 09:49:46 -0400 Subject: Reformat ctest -N output. Removed the "Start processing tests" message as well. --- Source/CTest/cmCTestMultiProcessHandler.cxx | 15 +++++++++------ Source/cmCTest.cxx | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/Source/CTest/cmCTestMultiProcessHandler.cxx b/Source/CTest/cmCTestMultiProcessHandler.cxx index ea1c430..eca74fc 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.cxx +++ b/Source/CTest/cmCTestMultiProcessHandler.cxx @@ -348,21 +348,24 @@ void cmCTestMultiProcessHandler::PrintTestList() testRun.SetTestProperties(&p); testRun.ComputeArguments(); //logs the command in verbose mode - cmCTestLog(this->CTest, HANDLER_OUTPUT, std::setw(3) - << count << "/"); - cmCTestLog(this->CTest, HANDLER_OUTPUT, std::setw(3) - << this->Total << " "); if (this->TestHandler->MemCheck) { - cmCTestLog(this->CTest, HANDLER_OUTPUT, "Memory Check"); + cmCTestLog(this->CTest, HANDLER_OUTPUT, " Memory Check"); } else { - cmCTestLog(this->CTest, HANDLER_OUTPUT, "Testing"); + cmCTestLog(this->CTest, HANDLER_OUTPUT, " Test"); } + cmOStringStream indexStr; + indexStr << " #" << p.Index << ":"; + cmCTestLog(this->CTest, HANDLER_OUTPUT, + std::setw(3 + getNumWidth(this->TestHandler->GetMaxIndex())) + << indexStr.str().c_str()); cmCTestLog(this->CTest, HANDLER_OUTPUT, " "); cmCTestLog(this->CTest, HANDLER_OUTPUT, p.Name.c_str() << std::endl); } + cmCTestLog(this->CTest, HANDLER_OUTPUT, std::endl << "Total Tests: " + << this->Total << std::endl); } //--------------------------------------------------------- diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index a8086b6..fcc3052 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -797,7 +797,7 @@ int cmCTest::ProcessTests() bool notest = true; int update_count = 0; - cmCTestLog(this, OUTPUT, "Start processing tests" << std::endl); + //cmCTestLog(this, OUTPUT, "Start processing tests" << std::endl); for(Part p = PartStart; notest && p != PartCount; p = Part(p+1)) { -- cgit v0.12