diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2010-02-08 14:47:39 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2010-02-08 14:47:39 (GMT) |
commit | 41fcf6e1558cb3ef4639928f87d58531b45fe237 (patch) | |
tree | 66b6c4ff06f0e160d32a77fcbb1adcc0dfb9f57f /Source/cmCTest.cxx | |
parent | a7666d303ce5323cacd19f14f5e365aa4fba264e (diff) | |
download | CMake-41fcf6e1558cb3ef4639928f87d58531b45fe237.zip CMake-41fcf6e1558cb3ef4639928f87d58531b45fe237.tar.gz CMake-41fcf6e1558cb3ef4639928f87d58531b45fe237.tar.bz2 |
Moved call to cache CDash version information to cmCTest::initialize. Also added a 3 second timeout when requesting the version from the server. Added an option to the CTestConfiguration that will be used to determine whether to query the version information at all. (Behavior for this setting is not yet defined.) Updated CMake's local CDash version setting to 1.6.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 2e2139e..7b25f8e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -349,9 +349,7 @@ cmCTest::cmCTest() { it->second->SetCTestInstance(this); } - // call this so that the information is cached up front - // and not the first time EndTest is called. - this->ShouldCompressTestOutput(); + // Make sure we can capture the build tool output. cmSystemTools::EnableVSConsoleOutput(); } @@ -400,7 +398,7 @@ std::string cmCTest::GetCDashVersion() std::string url = "http://"; url += this->GetCTestConfiguration("DropSite") + "/CDash/api/getversion.php"; - int res = cmCTest::HTTPRequest(url, cmCTest::HTTP_GET, response); + int res = cmCTest::HTTPRequest(url, cmCTest::HTTP_GET, response, "", "", 3); return res ? this->GetCTestConfiguration("CDashVersion") : response; #else @@ -473,6 +471,10 @@ int cmCTest::Initialize(const char* binary_dir, cmCTestStartCommand* command) return 0; } + // call this so that the information is cached up front + // and not the first time EndTest is called. + this->ShouldCompressTestOutput(); + if ( this->ProduceXML ) { // Verify "Testing" directory exists: |