cmCTestUploadCommand.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCTestUploadCommand_h
  4. #define cmCTestUploadCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTest.h"
  7. #include "cmCTestHandlerCommand.h"
  8. #include <string>
  9. class cmCTestGenericHandler;
  10. class cmCommand;
  11. /** \class cmCTestUpload
  12. * \brief Run a ctest script
  13. *
  14. * cmCTestUploadCommand defines the command to upload result files for
  15. * the project.
  16. */
  17. class cmCTestUploadCommand : public cmCTestHandlerCommand
  18. {
  19. public:
  20. cmCTestUploadCommand() {}
  21. /**
  22. * This is a virtual constructor for the command.
  23. */
  24. cmCommand* Clone() override
  25. {
  26. cmCTestUploadCommand* ni = new cmCTestUploadCommand;
  27. ni->CTest = this->CTest;
  28. ni->CTestScriptHandler = this->CTestScriptHandler;
  29. return ni;
  30. }
  31. /**
  32. * The name of the command as specified in CMakeList.txt.
  33. */
  34. std::string GetName() const override { return "ctest_upload"; }
  35. typedef cmCTestHandlerCommand Superclass;
  36. protected:
  37. cmCTestGenericHandler* InitializeHandler() override;
  38. bool CheckArgumentKeyword(std::string const& arg) override;
  39. bool CheckArgumentValue(std::string const& arg) override;
  40. enum
  41. {
  42. ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
  43. ArgumentDoingCaptureCMakeError,
  44. ArgumentDoingLast2
  45. };
  46. cmCTest::SetOfStrings Files;
  47. };
  48. #endif