diff options
author | Brad King <brad.king@kitware.com> | 2015-03-23 13:18:26 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-03-23 13:18:26 (GMT) |
commit | cc8b8cdc751ff2dfa6e77a69da542d6aef066346 (patch) | |
tree | 53088db771ef7cebaf89157fe4b081e4417a74b2 /Source/CTest/cmCTestRunTest.h | |
parent | d67196d0e8c5e9feb99d3a609d060f52ad8b9a59 (diff) | |
parent | 6bce027662588b972602e2e74c16a1883ed853cf (diff) | |
download | CMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.zip CMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.tar.gz CMake-cc8b8cdc751ff2dfa6e77a69da542d6aef066346.tar.bz2 |
Merge topic 'ctest-repeat-until-fail'
6bce0276 Help: Add notes for topic 'ctest-repeat-until-fail'
fde70a1b ctest: Add a new --repeat-until-fail option
Diffstat (limited to 'Source/CTest/cmCTestRunTest.h')
-rw-r--r-- | Source/CTest/cmCTestRunTest.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestRunTest.h b/Source/CTest/cmCTestRunTest.h index 476f3e1..3b5c831 100644 --- a/Source/CTest/cmCTestRunTest.h +++ b/Source/CTest/cmCTestRunTest.h @@ -27,6 +27,8 @@ public: cmCTestRunTest(cmCTestTestHandler* handler); ~cmCTestRunTest(); + void SetNumberOfRuns(int n) {this->NumberOfRunsLeft = n;} + void SetRunUntilFailOn() { this->RunUntilFail = true;} void SetTestProperties(cmCTestTestHandler::cmCTestTestProperties * prop) { this->TestProperties = prop; } @@ -58,7 +60,10 @@ public: void ComputeArguments(); void ComputeWeightedCost(); + + bool StartAgain(); private: + bool NeedsToRerun(); void DartProcessing(); void ExeNotFound(std::string exe); // Figures out a final timeout which is min(STOP_TIME, NOW+TIMEOUT) @@ -92,6 +97,10 @@ private: std::string ActualCommand; std::vector<std::string> Arguments; bool StopTimePassed; + bool RunUntilFail; + int NumberOfRunsLeft; + bool RunAgain; + size_t TotalNumberOfTests; }; inline int getNumWidth(size_t n) |