cmCTestStartCommand.h 898 B

12345678910111213141516171819202122232425262728293031323334
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <iosfwd>
  6. #include <string>
  7. #include "cmCTestCommand.h"
  8. class cmExecutionStatus;
  9. /** \class cmCTestStart
  10. * \brief Run a ctest script
  11. *
  12. * cmCTestStartCommand defineds the command to start the nightly testing.
  13. */
  14. class cmCTestStartCommand : public cmCTestCommand
  15. {
  16. public:
  17. using cmCTestCommand::cmCTestCommand;
  18. /**
  19. * This is called when the command is first encountered in
  20. * the CMakeLists.txt file.
  21. */
  22. bool InitialPass(std::vector<std::string> const& args,
  23. cmExecutionStatus& status) const override;
  24. private:
  25. bool InitialCheckout(std::ostream& ofs, std::string const& sourceDir,
  26. cmExecutionStatus& status) const;
  27. };