new feature for continuous clean once
This commit is contained in:
parent
b6fb2fe8f9
commit
5fc2cf6b7c
@ -3603,6 +3603,10 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg)
|
|||||||
}
|
}
|
||||||
double duration = 60.0*atof(mf->GetDefinition("CTEST_CONTINUOUS_DURATION"));
|
double duration = 60.0*atof(mf->GetDefinition("CTEST_CONTINUOUS_DURATION"));
|
||||||
double clock_start = cmSystemTools::GetTime();
|
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)
|
while (cmSystemTools::GetTime() < clock_start + duration)
|
||||||
{
|
{
|
||||||
double clock_recent_start = cmSystemTools::GetTime();
|
double clock_recent_start = cmSystemTools::GetTime();
|
||||||
@ -3619,6 +3623,10 @@ int cmCTest::RunConfigurationScript(const std::string& total_script_arg)
|
|||||||
sleep(secondsToWait);
|
sleep(secondsToWait);
|
||||||
#endif
|
#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
|
// otherwise just run it once
|
||||||
|
Loading…
x
Reference in New Issue
Block a user