diff options
author | Regina Pfeifer <regina@mailbox.org> | 2018-11-28 21:31:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-16 15:34:08 (GMT) |
commit | 938f06fda69a0f4ef04b2ed43a945a3c901b9750 (patch) | |
tree | 0a0b7281bb385dd3d5ccca2cd2c60b972e059403 /Source/CTest/cmCTestSubmitCommand.cxx | |
parent | 65e725c95756a4e2348e9fb52b3d5aca7ee21115 (diff) | |
download | CMake-938f06fda69a0f4ef04b2ed43a945a3c901b9750.zip CMake-938f06fda69a0f4ef04b2ed43a945a3c901b9750.tar.gz CMake-938f06fda69a0f4ef04b2ed43a945a3c901b9750.tar.bz2 |
ctest_submit: Add parameter SUBMIT_URL
Diffstat (limited to 'Source/CTest/cmCTestSubmitCommand.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitCommand.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestSubmitCommand.cxx b/Source/CTest/cmCTestSubmitCommand.cxx index e1fe765..00c0610 100644 --- a/Source/CTest/cmCTestSubmitCommand.cxx +++ b/Source/CTest/cmCTestSubmitCommand.cxx @@ -15,7 +15,9 @@ class cmExecutionStatus; cmCTestGenericHandler* cmCTestSubmitCommand::InitializeHandler() { - const char* submitURL = this->Makefile->GetDefinition("CTEST_SUBMIT_URL"); + const char* submitURL = !this->SubmitURL.empty() + ? this->SubmitURL.c_str() + : this->Makefile->GetDefinition("CTEST_SUBMIT_URL"); if (submitURL) { this->CTest->SetCTestConfiguration("SubmitURL", submitURL, this->Quiet); @@ -174,6 +176,11 @@ bool cmCTestSubmitCommand::CheckArgumentKeyword(std::string const& arg) return true; } + if (arg == "SUBMIT_URL") { + this->ArgumentDoing = ArgumentDoingSubmitURL; + return true; + } + if (arg == "INTERNAL_TEST_CHECKSUM") { this->InternalTest = true; return true; @@ -239,6 +246,12 @@ bool cmCTestSubmitCommand::CheckArgumentValue(std::string const& arg) return true; } + if (this->ArgumentDoing == ArgumentDoingSubmitURL) { + this->ArgumentDoing = ArgumentDoingNone; + this->SubmitURL = arg; + return true; + } + // Look for other arguments. return this->Superclass::CheckArgumentValue(arg); } |