diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2015-03-05 21:51:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-03-23 13:08:22 (GMT) |
commit | fde70a1b26e130663cc4c02e0530d3aadc165a41 (patch) | |
tree | eac5b5a1a6cfe1709259430eb22e5f7a7cea48ad /Source/cmCTest.h | |
parent | 56be75b3107b210631919c13496060d648f97b14 (diff) | |
download | CMake-fde70a1b26e130663cc4c02e0530d3aadc165a41.zip CMake-fde70a1b26e130663cc4c02e0530d3aadc165a41.tar.gz CMake-fde70a1b26e130663cc4c02e0530d3aadc165a41.tar.bz2 |
ctest: Add a new --repeat-until-fail option
This option tells ctest to run each test N times until the test fails or
the N times have run. This is useful for finding random failing tests.
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h index 88191c4..3f033d9 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -429,8 +429,13 @@ public: { return this->Definitions; } - + // return the number of times a test should be run + int GetTestRepeat() { return this->RepeatTests;} + // return true if test should run until fail + bool GetRepeatUntilFail() { return this->RepeatUntilFail;} private: + int RepeatTests; + bool RepeatUntilFail; std::string ConfigType; std::string ScheduleType; std::string StopTime; @@ -535,8 +540,9 @@ private: bool AddVariableDefinition(const std::string &arg); //! parse and process most common command line arguments - void HandleCommandLineArguments(size_t &i, - std::vector<std::string> &args); + bool HandleCommandLineArguments(size_t &i, + std::vector<std::string> &args, + std::string& errormsg); //! hande the -S -SP and -SR arguments void HandleScriptArguments(size_t &i, |