summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestCommand.cxx
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-10-29 19:30:12 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-10-29 19:30:12 (GMT)
commit8612aa10b681fb31bcf3e4959b151fc7f3a5442e (patch)
tree60854e460425b7becc46e2ca93f9626a4262f2f1 /Source/CTest/cmCTestTestCommand.cxx
parente183581b1459aba72758f395d7e1b74ff8f6aade (diff)
downloadCMake-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/CTest/cmCTestTestCommand.cxx')
-rw-r--r--Source/CTest/cmCTestTestCommand.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestTestCommand.cxx b/Source/CTest/cmCTestTestCommand.cxx
index a719b09..23cc20e 100644
--- a/Source/CTest/cmCTestTestCommand.cxx
+++ b/Source/CTest/cmCTestTestCommand.cxx
@@ -24,6 +24,7 @@ cmCTestTestCommand::cmCTestTestCommand()
this->Arguments[ctt_EXCLUDE_LABEL] = "EXCLUDE_LABEL";
this->Arguments[ctt_INCLUDE_LABEL] = "INCLUDE_LABEL";
this->Arguments[ctt_PARALLEL_LEVEL] = "PARALLEL_LEVEL";
+ this->Arguments[ctt_SCHEDULE_RANDOM] = "SCHEDULE_RANDOM";
this->Arguments[ctt_LAST] = 0;
this->Last = ctt_LAST;
}
@@ -91,6 +92,11 @@ cmCTestGenericHandler* cmCTestTestCommand::InitializeHandler()
handler->SetOption("ParallelLevel",
this->Values[ctt_PARALLEL_LEVEL]);
}
+ if(this->Values[ctt_SCHEDULE_RANDOM])
+ {
+ handler->SetOption("ScheduleRandom",
+ this->Values[ctt_SCHEDULE_RANDOM]);
+ }
return handler;
}