cmCTestUploadCommand.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 "cmCTestHandlerCommand.h"
  7. #include <set>
  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. /**
  21. * This is a virtual constructor for the command.
  22. */
  23. cmCommand* Clone() override
  24. {
  25. cmCTestUploadCommand* ni = new cmCTestUploadCommand;
  26. ni->CTest = this->CTest;
  27. ni->CTestScriptHandler = this->CTestScriptHandler;
  28. return ni;
  29. }
  30. /**
  31. * The name of the command as specified in CMakeList.txt.
  32. */
  33. std::string GetName() const override { return "ctest_upload"; }
  34. typedef cmCTestHandlerCommand Superclass;
  35. protected:
  36. cmCTestGenericHandler* InitializeHandler() override;
  37. bool CheckArgumentKeyword(std::string const& arg) override;
  38. bool CheckArgumentValue(std::string const& arg) override;
  39. enum
  40. {
  41. ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
  42. ArgumentDoingCaptureCMakeError,
  43. ArgumentDoingLast2
  44. };
  45. std::set<std::string> Files;
  46. };
  47. #endif