diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2009-12-11 19:10:37 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2009-12-11 19:10:37 (GMT) |
commit | b2e7da885d44c56c48a61d89a34f66b6f514e52e (patch) | |
tree | febacfbcf3d90ebf499da879cf8321ebdae51be0 /Source/cmCTest.cxx | |
parent | 146cb98cb0d5d6f7348e8d7c3c9087c8b5aa49bc (diff) | |
download | CMake-b2e7da885d44c56c48a61d89a34f66b6f514e52e.zip CMake-b2e7da885d44c56c48a61d89a34f66b6f514e52e.tar.gz CMake-b2e7da885d44c56c48a61d89a34f66b6f514e52e.tar.bz2 |
Added a "-http1.0" option to ctest to make it submit using curl's http 1.0 option. Also added parsing of html reponse output to determine whether errors or warnings were sent in response from the server. If errors or warnings occurred, the response is output to stdout, and the "submission successful" message has been changed to accurately reflect whether or not warnings or errors were returned with the response.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index ee249b2..7e3a81b 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -220,6 +220,7 @@ cmCTest::cmCTest() this->ProduceXML = false; this->ShowOnly = false; this->RunConfigurationScript = false; + this->UseHTTP10 = false; this->TestModel = cmCTest::EXPERIMENTAL; this->MaxTestNameWidth = 30; this->InteractiveDebugMode = true; @@ -1704,7 +1705,12 @@ void cmCTest::HandleCommandLineArguments(size_t &i, this->SetParallelLevel(plevel); } - if(this->CheckArgument(arg, "--timeout") && i < args.size() - 1) + if(this->CheckArgument(arg, "--http1.0")) + { + this->UseHTTP10 = true; + } + + if(this->CheckArgument(arg, "--timeout") && i < args.size() - 1) { i++; double timeout = (double)atof(args[i].c_str()); |