diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-15 03:10:13 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-01-15 03:10:13 (GMT) |
commit | a27c3fa008f14ec6dee9a9386f07f31f5170daa8 (patch) | |
tree | fa8237f06121a43b3fd48f0ae90460064cf13e7a | |
parent | a8f60aa267c721941124aba4dcae58facb7e1767 (diff) | |
download | CMake-a27c3fa008f14ec6dee9a9386f07f31f5170daa8.zip CMake-a27c3fa008f14ec6dee9a9386f07f31f5170daa8.tar.gz CMake-a27c3fa008f14ec6dee9a9386f07f31f5170daa8.tar.bz2 |
Add support for http submit
-rw-r--r-- | Source/cmCTest.cxx | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 29083b6..f85f218 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1414,6 +1414,30 @@ int cmCTest::SubmitResults() } return 1; } + else if ( m_DartConfiguration["DropMethod"] == "http" ) + { + std::cout << "HTTP submit method" << std::endl; + std::string url = "http://"; + if ( m_DartConfiguration["DropSiteUser"].size() > 0 ) + { + url += m_DartConfiguration["DropSiteUser"]; + if ( m_DartConfiguration["DropSitePassword"].size() > 0 ) + { + url += ":" + m_DartConfiguration["DropSitePassword"]; + } + url += "@"; + } + url += m_DartConfiguration["DropSite"] + m_DartConfiguration["DropLocation"]; + if ( !submit.SubmitUsingHTTP(m_ToplevelPath+"/Testing/CDart", files, prefix, url) ) + { + return 0; + } + if ( !submit.TriggerUsingHTTP(files, prefix, m_DartConfiguration["TriggerSite"]) ) + { + return 0; + } + return 1; + } else { std::cout << "SCP submit not yet implemented" << std::endl; |