summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorJean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>2016-06-21 00:40:55 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-05 15:19:00 (GMT)
commit7c87ab755c96ad3f3fc6288d23c02cd0f4898785 (patch)
tree577da6c63719cde921bd08d1d3342832c24f3d92 /Source
parent6d8b9aa65ab06300a50f6c23897b9e37cadccc47 (diff)
downloadCMake-7c87ab755c96ad3f3fc6288d23c02cd0f4898785.zip
CMake-7c87ab755c96ad3f3fc6288d23c02cd0f4898785.tar.gz
CMake-7c87ab755c96ad3f3fc6288d23c02cd0f4898785.tar.bz2
cmCTest: Facilitate code reading adding consistent comments in Run()
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCTest.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 858808a..4508f13 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -2018,7 +2018,7 @@ int cmCTest::Run(std::vector<std::string>& args, std::string* output)
// handle the script arguments -S -SR -SP
this->HandleScriptArguments(i, args, SRArgumentSpecified);
- // handle a request for a dashboard
+ // --dashboard: handle a request for a dashboard
std::string arg = args[i];
if (this->CheckArgument(arg, "-D", "--dashboard") && i < args.size() - 1) {
this->ProduceXML = true;
@@ -2044,17 +2044,18 @@ int cmCTest::Run(std::vector<std::string>& args, std::string* output)
this->AddVariableDefinition(input);
}
- // calls SetTest(<stage>, /*report=*/ false) to enable the corresponding
- // stage. <stage> is a string like 'All', 'Start', or 'Udpate'.
+ // --test-action: calls SetTest(<stage>, /*report=*/ false) to enable
+ // the corresponding stage
if (!this->HandleTestActionArgument(ctestExec, i, args)) {
executeTests = false;
}
- // what type of test model
+ // --test-model: what type of test model
if (!this->HandleTestModelArgument(ctestExec, i, args)) {
executeTests = false;
}
+ // --extra-submit
if (this->CheckArgument(arg, "--extra-submit") && i < args.size() - 1) {
this->ProduceXML = true;
this->SetTest("Submit");
@@ -2069,6 +2070,7 @@ int cmCTest::Run(std::vector<std::string>& args, std::string* output)
cmakeAndTest = true;
}
+ // --schedule-random
if (this->CheckArgument(arg, "--schedule-random")) {
this->ScheduleType = "Random";
}
@@ -2087,6 +2089,7 @@ int cmCTest::Run(std::vector<std::string>& args, std::string* output)
}
} // the close of the for argument loop
+ // handle CTEST_PARALLEL_LEVEL environment variable
if (!this->ParallelLevelSetInCli) {
if (const char* parallel = cmSystemTools::GetEnv("CTEST_PARALLEL_LEVEL")) {
int plevel = atoi(parallel);