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

Method InitialCheckout

Source/CTest/cmCTestStartCommand.cxx:226–245  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226bool cmCTestStartCommand::InitialCheckout(std::ostream& ofs,
227 std::string const& sourceDir,
228 cmExecutionStatus& status) const
229{
230 cmMakefile& mf = status.GetMakefile();
231 // Use the user-provided command to create the source tree.
232 cmValue initialCheckoutCommand = mf.GetDefinition("CTEST_CHECKOUT_COMMAND");
233 if (!initialCheckoutCommand) {
234 initialCheckoutCommand = mf.GetDefinition("CTEST_CVS_CHECKOUT");
235 }
236 if (initialCheckoutCommand) {
237 // Use a generic VC object to run and log the command.
238 cmCTestVC vc(this->CTest, &mf, ofs);
239 vc.SetSourceDirectory(sourceDir);
240 if (!vc.InitialCheckout(*initialCheckoutCommand)) {
241 return false;
242 }
243 }
244 return true;
245}

Callers 1

InitialPassMethod · 0.95

Calls 3

GetMakefileMethod · 0.45
GetDefinitionMethod · 0.45
SetSourceDirectoryMethod · 0.45

Tested by

no test coverage detected