|
@@ -1828,8 +1828,8 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
std::string arg = args[i];
|
|
std::string arg = args[i];
|
|
|
if (this->CheckArgument(arg, "-F")) {
|
|
if (this->CheckArgument(arg, "-F")) {
|
|
|
this->Impl->Failover = true;
|
|
this->Impl->Failover = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-j", "--parallel") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-j", "--parallel") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
int plevel = atoi(args[i].c_str());
|
|
int plevel = atoi(args[i].c_str());
|
|
|
this->SetParallelLevel(plevel);
|
|
this->SetParallelLevel(plevel);
|
|
@@ -1840,7 +1840,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
this->Impl->ParallelLevelSetInCli = true;
|
|
this->Impl->ParallelLevelSetInCli = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--repeat-until-fail")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--repeat-until-fail")) {
|
|
|
if (i >= args.size() - 1) {
|
|
if (i >= args.size() - 1) {
|
|
|
errormsg = "'--repeat-until-fail' requires an argument";
|
|
errormsg = "'--repeat-until-fail' requires an argument";
|
|
|
return false;
|
|
return false;
|
|
@@ -1862,7 +1862,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--repeat")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--repeat")) {
|
|
|
if (i >= args.size() - 1) {
|
|
if (i >= args.size() - 1) {
|
|
|
errormsg = "'--repeat' requires an argument";
|
|
errormsg = "'--repeat' requires an argument";
|
|
|
return false;
|
|
return false;
|
|
@@ -1895,7 +1895,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--test-load") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--test-load") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
unsigned long load;
|
|
unsigned long load;
|
|
|
if (cmStrToULong(args[i], &load)) {
|
|
if (cmStrToULong(args[i], &load)) {
|
|
@@ -1906,76 +1906,66 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--no-compress-output")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--no-compress-output")) {
|
|
|
this->Impl->CompressTestOutput = false;
|
|
this->Impl->CompressTestOutput = false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--print-labels")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--print-labels")) {
|
|
|
this->Impl->PrintLabels = true;
|
|
this->Impl->PrintLabels = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--http1.0")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--http1.0")) {
|
|
|
this->Impl->UseHTTP10 = true;
|
|
this->Impl->UseHTTP10 = true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--timeout") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--timeout") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
auto timeout = cmDuration(atof(args[i].c_str()));
|
|
auto timeout = cmDuration(atof(args[i].c_str()));
|
|
|
this->Impl->GlobalTimeout = timeout;
|
|
this->Impl->GlobalTimeout = timeout;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--stop-time") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--stop-time") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->SetStopTime(args[i]);
|
|
this->SetStopTime(args[i]);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "-C", "--build-config") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "-C", "--build-config") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->SetConfigType(args[i].c_str());
|
|
this->SetConfigType(args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--debug")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--debug")) {
|
|
|
this->Impl->Debug = true;
|
|
this->Impl->Debug = true;
|
|
|
this->Impl->ShowLineNumbers = true;
|
|
this->Impl->ShowLineNumbers = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--group") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--group") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->Impl->SpecificGroup = args[i];
|
|
this->Impl->SpecificGroup = args[i];
|
|
|
}
|
|
}
|
|
|
// This is an undocumented / deprecated option.
|
|
// This is an undocumented / deprecated option.
|
|
|
// "Track" has been renamed to "Group".
|
|
// "Track" has been renamed to "Group".
|
|
|
- if (this->CheckArgument(arg, "--track") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--track") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->Impl->SpecificGroup = args[i];
|
|
this->Impl->SpecificGroup = args[i];
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--show-line-numbers")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--show-line-numbers")) {
|
|
|
this->Impl->ShowLineNumbers = true;
|
|
this->Impl->ShowLineNumbers = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--no-label-summary")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--no-label-summary")) {
|
|
|
this->Impl->LabelSummary = false;
|
|
this->Impl->LabelSummary = false;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--no-subproject-summary")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--no-subproject-summary")) {
|
|
|
this->Impl->SubprojectSummary = false;
|
|
this->Impl->SubprojectSummary = false;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-Q", "--quiet")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-Q", "--quiet")) {
|
|
|
this->Impl->Quiet = true;
|
|
this->Impl->Quiet = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--progress")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--progress")) {
|
|
|
this->Impl->TestProgressOutput = true;
|
|
this->Impl->TestProgressOutput = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-V", "--verbose")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-V", "--verbose")) {
|
|
|
this->Impl->Verbose = true;
|
|
this->Impl->Verbose = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-VV", "--extra-verbose")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-VV", "--extra-verbose")) {
|
|
|
this->Impl->ExtraVerbose = true;
|
|
this->Impl->ExtraVerbose = true;
|
|
|
this->Impl->Verbose = true;
|
|
this->Impl->Verbose = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--output-on-failure")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--output-on-failure")) {
|
|
|
this->Impl->OutputTestOutputOnTestFailure = true;
|
|
this->Impl->OutputTestOutputOnTestFailure = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--test-output-size-passed") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--test-output-size-passed") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
long outputSize;
|
|
long outputSize;
|
|
|
if (cmStrToLong(args[i], &outputSize)) {
|
|
if (cmStrToLong(args[i], &outputSize)) {
|
|
@@ -1985,9 +1975,8 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
"Invalid value for '--test-output-size-passed': " << args[i]
|
|
"Invalid value for '--test-output-size-passed': " << args[i]
|
|
|
<< "\n");
|
|
<< "\n");
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--test-output-size-failed") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--test-output-size-failed") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
long outputSize;
|
|
long outputSize;
|
|
|
if (cmStrToLong(args[i], &outputSize)) {
|
|
if (cmStrToLong(args[i], &outputSize)) {
|
|
@@ -1997,11 +1986,9 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
"Invalid value for '--test-output-size-failed': " << args[i]
|
|
"Invalid value for '--test-output-size-failed': " << args[i]
|
|
|
<< "\n");
|
|
<< "\n");
|
|
|
}
|
|
}
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-N", "--show-only")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-N", "--show-only")) {
|
|
|
this->Impl->ShowOnly = true;
|
|
this->Impl->ShowOnly = true;
|
|
|
- }
|
|
|
|
|
- if (cmHasLiteralPrefix(arg, "--show-only=")) {
|
|
|
|
|
|
|
+ } else if (cmHasLiteralPrefix(arg, "--show-only=")) {
|
|
|
this->Impl->ShowOnly = true;
|
|
this->Impl->ShowOnly = true;
|
|
|
|
|
|
|
|
// Check if a specific format is requested. Defaults to human readable
|
|
// Check if a specific format is requested. Defaults to human readable
|
|
@@ -2019,27 +2006,26 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "-O", "--output-log") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "-O", "--output-log") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->SetOutputLogFileName(args[i].c_str());
|
|
this->SetOutputLogFileName(args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--tomorrow-tag")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--tomorrow-tag")) {
|
|
|
this->Impl->TomorrowTag = true;
|
|
this->Impl->TomorrowTag = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--force-new-ctest-process")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--force-new-ctest-process")) {
|
|
|
this->Impl->ForceNewCTestProcess = true;
|
|
this->Impl->ForceNewCTestProcess = true;
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-W", "--max-width") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-W", "--max-width") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->Impl->MaxTestNameWidth = atoi(args[i].c_str());
|
|
this->Impl->MaxTestNameWidth = atoi(args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--interactive-debug-mode") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--interactive-debug-mode") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->Impl->InteractiveDebugMode = cmIsOn(args[i]);
|
|
this->Impl->InteractiveDebugMode = cmIsOn(args[i]);
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "--submit-index") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "--submit-index") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->Impl->SubmitIndex = atoi(args[i].c_str());
|
|
this->Impl->SubmitIndex = atoi(args[i].c_str());
|
|
|
if (this->Impl->SubmitIndex < 0) {
|
|
if (this->Impl->SubmitIndex < 0) {
|
|
@@ -2047,15 +2033,16 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--overwrite") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--overwrite") && i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->AddCTestConfigurationOverwrite(args[i]);
|
|
this->AddCTestConfigurationOverwrite(args[i]);
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-A", "--add-notes") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-A", "--add-notes") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
this->Impl->ProduceXML = true;
|
|
this->Impl->ProduceXML = true;
|
|
|
this->SetTest("Notes");
|
|
this->SetTest("Notes");
|
|
|
i++;
|
|
i++;
|
|
|
this->SetNotesFiles(args[i].c_str());
|
|
this->SetNotesFiles(args[i].c_str());
|
|
|
|
|
+ return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const std::string noTestsPrefix = "--no-tests=";
|
|
const std::string noTestsPrefix = "--no-tests=";
|
|
@@ -2072,34 +2059,32 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// options that control what tests are run
|
|
// options that control what tests are run
|
|
|
- if (this->CheckArgument(arg, "-I", "--tests-information") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "-I", "--tests-information") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption("TestsToRunInformation",
|
|
this->GetTestHandler()->SetPersistentOption("TestsToRunInformation",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
this->GetMemCheckHandler()->SetPersistentOption("TestsToRunInformation",
|
|
this->GetMemCheckHandler()->SetPersistentOption("TestsToRunInformation",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-U", "--union")) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-U", "--union")) {
|
|
|
this->GetTestHandler()->SetPersistentOption("UseUnion", "true");
|
|
this->GetTestHandler()->SetPersistentOption("UseUnion", "true");
|
|
|
this->GetMemCheckHandler()->SetPersistentOption("UseUnion", "true");
|
|
this->GetMemCheckHandler()->SetPersistentOption("UseUnion", "true");
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-R", "--tests-regex") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-R", "--tests-regex") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption("IncludeRegularExpression",
|
|
this->GetTestHandler()->SetPersistentOption("IncludeRegularExpression",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
this->GetMemCheckHandler()->SetPersistentOption("IncludeRegularExpression",
|
|
this->GetMemCheckHandler()->SetPersistentOption("IncludeRegularExpression",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-L", "--label-regex") && i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-L", "--label-regex") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption("LabelRegularExpression",
|
|
this->GetTestHandler()->SetPersistentOption("LabelRegularExpression",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
this->GetMemCheckHandler()->SetPersistentOption("LabelRegularExpression",
|
|
this->GetMemCheckHandler()->SetPersistentOption("LabelRegularExpression",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-LE", "--label-exclude") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-LE", "--label-exclude") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
|
"ExcludeLabelRegularExpression", args[i].c_str());
|
|
"ExcludeLabelRegularExpression", args[i].c_str());
|
|
@@ -2107,8 +2092,8 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
"ExcludeLabelRegularExpression", args[i].c_str());
|
|
"ExcludeLabelRegularExpression", args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "-E", "--exclude-regex") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "-E", "--exclude-regex") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption("ExcludeRegularExpression",
|
|
this->GetTestHandler()->SetPersistentOption("ExcludeRegularExpression",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
@@ -2116,24 +2101,22 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "-FA", "--fixture-exclude-any") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "-FA", "--fixture-exclude-any") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
|
"ExcludeFixtureRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureRegularExpression", args[i].c_str());
|
|
|
this->GetMemCheckHandler()->SetPersistentOption(
|
|
this->GetMemCheckHandler()->SetPersistentOption(
|
|
|
"ExcludeFixtureRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureRegularExpression", args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-FS", "--fixture-exclude-setup") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-FS", "--fixture-exclude-setup") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
|
"ExcludeFixtureSetupRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureSetupRegularExpression", args[i].c_str());
|
|
|
this->GetMemCheckHandler()->SetPersistentOption(
|
|
this->GetMemCheckHandler()->SetPersistentOption(
|
|
|
"ExcludeFixtureSetupRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureSetupRegularExpression", args[i].c_str());
|
|
|
- }
|
|
|
|
|
- if (this->CheckArgument(arg, "-FC", "--fixture-exclude-cleanup") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ } else if (this->CheckArgument(arg, "-FC", "--fixture-exclude-cleanup") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
this->GetTestHandler()->SetPersistentOption(
|
|
|
"ExcludeFixtureCleanupRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureCleanupRegularExpression", args[i].c_str());
|
|
@@ -2141,8 +2124,8 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
"ExcludeFixtureCleanupRegularExpression", args[i].c_str());
|
|
"ExcludeFixtureCleanupRegularExpression", args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--resource-spec-file") &&
|
|
|
|
|
- i < args.size() - 1) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--resource-spec-file") &&
|
|
|
|
|
+ i < args.size() - 1) {
|
|
|
i++;
|
|
i++;
|
|
|
this->GetTestHandler()->SetPersistentOption("ResourceSpecFile",
|
|
this->GetTestHandler()->SetPersistentOption("ResourceSpecFile",
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
@@ -2150,7 +2133,7 @@ bool cmCTest::HandleCommandLineArguments(size_t& i,
|
|
|
args[i].c_str());
|
|
args[i].c_str());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (this->CheckArgument(arg, "--rerun-failed")) {
|
|
|
|
|
|
|
+ else if (this->CheckArgument(arg, "--rerun-failed")) {
|
|
|
this->GetTestHandler()->SetPersistentOption("RerunFailed", "true");
|
|
this->GetTestHandler()->SetPersistentOption("RerunFailed", "true");
|
|
|
this->GetMemCheckHandler()->SetPersistentOption("RerunFailed", "true");
|
|
this->GetMemCheckHandler()->SetPersistentOption("RerunFailed", "true");
|
|
|
}
|
|
}
|