MCPcopy Create free account
hub / github.com/Kitware/CMake / ProcessHandler

Method ProcessHandler

Source/CTest/cmCTestSubmitHandler.cxx:707–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707int cmCTestSubmitHandler::ProcessHandler()
708{
709 if (this->CDashUpload) {
710 return this->HandleCDashUploadFile(this->CDashUploadFile,
711 this->CDashUploadType);
712 }
713
714 std::string const& buildDirectory =
715 this->CTest->GetCTestConfiguration("BuildDirectory");
716 if (buildDirectory.empty()) {
717 cmCTestLog(this->CTest, ERROR_MESSAGE,
718 "Cannot find BuildDirectory key in the DartConfiguration.tcl"
719 << std::endl);
720 return -1;
721 }
722
723 cmGeneratedFileStream ofs;
724 this->StartLogFile("Submit", ofs);
725
726 if (char const* proxy = getenv("HTTP_PROXY")) {
727 this->HTTPProxyType = 1;
728 this->HTTPProxy = proxy;
729 if (getenv("HTTP_PROXY_PORT")) {
730 this->HTTPProxy += ":";
731 this->HTTPProxy += getenv("HTTP_PROXY_PORT");
732 }
733 if (char const* proxy_type = getenv("HTTP_PROXY_TYPE")) {
734 std::string type = proxy_type;
735 // HTTP/SOCKS4/SOCKS5
736 if (type == "HTTP") {
737 this->HTTPProxyType = 1;
738 } else if (type == "SOCKS4") {
739 this->HTTPProxyType = 2;
740 } else if (type == "SOCKS5") {
741 this->HTTPProxyType = 3;
742 }
743 }
744 if (getenv("HTTP_PROXY_USER")) {
745 this->HTTPProxyAuth = getenv("HTTP_PROXY_USER");
746 }
747 if (getenv("HTTP_PROXY_PASSWD")) {
748 this->HTTPProxyAuth += ":";
749 this->HTTPProxyAuth += getenv("HTTP_PROXY_PASSWD");
750 }
751 }
752
753 if (!this->HTTPProxy.empty()) {
754 cmCTestOptionalLog(this->CTest, HANDLER_OUTPUT,
755 " Use HTTP Proxy: " << this->HTTPProxy << std::endl,
756 this->Quiet);
757 }
758
759 std::vector<std::string> files;
760 std::string prefix = this->GetSubmitResultsPrefix();
761
762 if (!this->Files.empty()) {
763 // Submit the explicitly selected files:
764 cm::append(files, this->Files);

Callers

nothing calls this directly

Calls 15

HandleCDashUploadFileMethod · 0.95
SubmitUsingHTTPMethod · 0.95
appendFunction · 0.85
cmRemoveDuplicatesFunction · 0.85
GetCTestConfigurationMethod · 0.80
AddIfExistsMethod · 0.80
GetCurrentTagMethod · 0.80
AddSubmitFileMethod · 0.80
cbeginMethod · 0.80
eraseMethod · 0.80
emplace_backMethod · 0.80

Tested by

no test coverage detected