diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-10-29 19:30:12 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-10-29 19:30:12 (GMT) |
commit | 8612aa10b681fb31bcf3e4959b151fc7f3a5442e (patch) | |
tree | 60854e460425b7becc46e2ca93f9626a4262f2f1 /Source/cmCTest.cxx | |
parent | e183581b1459aba72758f395d7e1b74ff8f6aade (diff) | |
download | CMake-8612aa10b681fb31bcf3e4959b151fc7f3a5442e.zip CMake-8612aa10b681fb31bcf3e4959b151fc7f3a5442e.tar.gz CMake-8612aa10b681fb31bcf3e4959b151fc7f3a5442e.tar.bz2 |
Hook for scheduling tests in a random order
This may help statistically detect implicit dependencies among unit
tests while running in parallel.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 6d21ab5..fee94d1 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -225,6 +225,7 @@ cmCTest::cmCTest() this->TimeOut = 0; this->CompressXMLFiles = false; this->CTestConfigFile = ""; + this->ScheduleType = ""; this->OutputLogFile = 0; this->OutputLogFileLastTag = -1; this->SuppressUpdatingCTestConfiguration = false; @@ -2027,6 +2028,11 @@ int cmCTest::Run(std::vector<std::string> &args, std::string* output) cmakeAndTest = true; } + if(this->CheckArgument(arg, "--schedule-random")) + { + this->ScheduleType = "Random"; + } + // pass the argument to all the handlers as well, but i may no longer be // set to what it was originally so I'm not sure this is working as // intended |