| 224 | } |
| 225 | |
| 226 | bool 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 | } |
no test coverage detected