summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestMultiProcessHandler.h
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/cmCTestMultiProcessHandler.h
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/cmCTestMultiProcessHandler.h')
-rw-r--r--Source/CTest/cmCTestMultiProcessHandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h
index 9c63be7..5d0ae46 100644
--- a/Source/CTest/cmCTestMultiProcessHandler.h
+++ b/Source/CTest/cmCTestMultiProcessHandler.h
@@ -80,6 +80,7 @@ protected:
//Check if we need to resume an interrupted test set
void CheckResume();
int FindMaxIndex();
+ inline size_t GetProcessorsUsed(int index);
// map from test number to set of depend tests
TestMap Tests;
TestMap ExpensiveTests;
@@ -87,6 +88,7 @@ protected:
size_t Total;
//Number of tests that are complete
size_t Completed;
+ size_t RunningCount;
//list of test properties (indices concurrent to the test map)
PropertiesMap Properties;
std::map<int, bool> TestRunningMap;