summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-09-07 14:26:17 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-09-07 14:26:17 (GMT)
commit5fb958fde950f8a8f9b1629399f0457c46224640 (patch)
treece1e1dd09388f892b6cc0135240c292519c148ab /Source/CTest/cmCTestTestHandler.cxx
parent4e16813f63bae65dd3eeec0a326e9a4926aff1c5 (diff)
downloadCMake-5fb958fde950f8a8f9b1629399f0457c46224640.zip
CMake-5fb958fde950f8a8f9b1629399f0457c46224640.tar.gz
CMake-5fb958fde950f8a8f9b1629399f0457c46224640.tar.bz2
ENH: Added ctest test options PROCESSORS and RUN_SERIAL. These allow specification of resource allocation for given tests running with the ctest -j N option. RUN_SERIAL ensures that a given test does not run in parallel with any other test. Also forced appending of "..." to the longest test name in ctest.
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index d57bfa5..6ae227b 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -1979,6 +1979,10 @@ bool cmCTestTestHandler::SetTestsProperties(
{
rtit->Expensive = cmSystemTools::IsOn(val.c_str());
}
+ if ( key == "RUN_SERIAL" )
+ {
+ rtit->RunSerial = cmSystemTools::IsOn(val.c_str());
+ }
if ( key == "FAIL_REGULAR_EXPRESSION" )
{
std::vector<std::string> lval;
@@ -2127,6 +2131,7 @@ bool cmCTestTestHandler::AddTest(const std::vector<std::string>& args)
test.IsInBasedOnREOptions = true;
test.WillFail = false;
test.Expensive = false;
+ test.RunSerial = false;
test.Timeout = 0;
test.Processors = 1;
if (this->UseIncludeRegExpFlag &&