diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-08-26 16:09:06 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-08-26 16:09:06 (GMT) |
commit | 8ffd8d0a03d68241ce4f5f8a9fd266bee1032e1d (patch) | |
tree | 744b5e713b143008ec4ddcd8670bd47082658c05 /Source/cmCTest.cxx | |
parent | 1171bcfc697f6196c8f31018153217e5de779e60 (diff) | |
download | CMake-8ffd8d0a03d68241ce4f5f8a9fd266bee1032e1d.zip CMake-8ffd8d0a03d68241ce4f5f8a9fd266bee1032e1d.tar.gz CMake-8ffd8d0a03d68241ce4f5f8a9fd266bee1032e1d.tar.bz2 |
ENH: refactored ctest. All testing is now parallel. If no -j option is specified, defaults to a MP level of 1 (non parallel)
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index abf47a2..7590772 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -209,7 +209,7 @@ std::string cmCTest::DecodeURL(const std::string& in) cmCTest::cmCTest() { this->ParallelSubprocess = false; - this->ParallelLevel = 0; + this->ParallelLevel = 1; this->SubmitIndex = 0; this->ForceNewCTestProcess = false; this->TomorrowTag = false; @@ -292,6 +292,11 @@ cmCTest::~cmCTest() this->SetOutputLogFileName(0); } +void cmCTest::SetParallelLevel(int level) +{ + this->ParallelLevel = level < 1 ? 1 : level; +} + //---------------------------------------------------------------------------- cmCTest::Part cmCTest::GetPartFromName(const char* name) { |