From 5fc2cf6b7cdbcbbb7b6f4fe556ed64c89fa2a230 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 13 May 2004 13:41:47 -0400 Subject: new feature for continuous clean once --- Source/cmCTest.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index 6c64243..5d3d99e 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -3603,6 +3603,10 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg) } double duration = 60.0*atof(mf->GetDefinition("CTEST_CONTINUOUS_DURATION")); double clock_start = cmSystemTools::GetTime(); + if (mf->IsOn("CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE")) + { + mf->AddDefinition("CTEST_START_WITH_EMPTY_BINARY_DIRECTORY","1"); + } while (cmSystemTools::GetTime() < clock_start + duration) { double clock_recent_start = cmSystemTools::GetTime(); @@ -3619,6 +3623,10 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg) sleep(secondsToWait); #endif } + if (mf->IsOn("CTEST_START_WITH_EMPTY_BINARY_DIRECTORY_ONCE")) + { + mf->AddDefinition("CTEST_START_WITH_EMPTY_BINARY_DIRECTORY","0"); + } } } // otherwise just run it once -- cgit v0.12