diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-09-08 17:39:13 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-09-08 17:39:13 (GMT) |
commit | 39e5f9d963c6580f95316f9b5f76a3a8f660d6cc (patch) | |
tree | f02f846dbe3b0168cce8f3b15c3f8949c80e6335 /Source/CTest/cmCTestMultiProcessHandler.h | |
parent | a02ef564018be7e383992d52399279ea7cf48c91 (diff) | |
download | CMake-39e5f9d963c6580f95316f9b5f76a3a8f660d6cc.zip CMake-39e5f9d963c6580f95316f9b5f76a3a8f660d6cc.tar.gz CMake-39e5f9d963c6580f95316f9b5f76a3a8f660d6cc.tar.bz2 |
ENH: Replaced the EXPENSIVE test property with a COST test property taking a floating point value. Tests are now started in descending order of their cost, which defaults to 0 if none is specified.
Diffstat (limited to 'Source/CTest/cmCTestMultiProcessHandler.h')
-rw-r--r-- | Source/CTest/cmCTestMultiProcessHandler.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/CTest/cmCTestMultiProcessHandler.h b/Source/CTest/cmCTestMultiProcessHandler.h index 5d0ae46..97af2f3 100644 --- a/Source/CTest/cmCTestMultiProcessHandler.h +++ b/Source/CTest/cmCTestMultiProcessHandler.h @@ -31,12 +31,13 @@ class cmCTestMultiProcessHandler public: struct TestSet : public std::set<int> {}; struct TestMap : public std::map<int, TestSet> {}; + struct TestCostMap : public std::map<float, TestSet> {}; struct PropertiesMap : public std::map<int, cmCTestTestHandler::cmCTestTestProperties*> {}; cmCTestMultiProcessHandler(); // Set the tests - void SetTests(TestMap& tests, TestMap& expensiveTests, + void SetTests(TestMap& tests, TestCostMap& testCosts, PropertiesMap& properties); // Set the max number of tests that can be run at the same time. void SetParallelLevel(size_t); @@ -51,9 +52,7 @@ public: this->Failed = failed; } void SetTestResults(std::vector<cmCTestTestHandler::cmCTestTestResult>* r) - { - this->TestResults = r; - } + { this->TestResults = r; } void SetCTest(cmCTest* ctest) { this->CTest = ctest;} @@ -73,6 +72,7 @@ protected: void WriteCheckpoint(int index); // Removes the checkpoint file void MarkFinished(); + void EraseTest(int index); // Return true if there are still tests running // check all running processes for output and exit case bool CheckOutput(); @@ -83,7 +83,7 @@ protected: inline size_t GetProcessorsUsed(int index); // map from test number to set of depend tests TestMap Tests; - TestMap ExpensiveTests; + TestCostMap TestCosts; //Total number of tests we'll be running size_t Total; //Number of tests that are complete |