cmCTestSubmitCommand.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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 cmCTestSubmitCommand_h
  4. #define cmCTestSubmitCommand_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCTest.h"
  7. #include "cmCTestHandlerCommand.h"
  8. #include <memory>
  9. #include <set>
  10. #include <string>
  11. #include <vector>
  12. class cmCommand;
  13. class cmCTestGenericHandler;
  14. class cmExecutionStatus;
  15. /** \class cmCTestSubmit
  16. * \brief Run a ctest script
  17. *
  18. * cmCTestSubmitCommand defineds the command to submit the test results for
  19. * the project.
  20. */
  21. class cmCTestSubmitCommand : public cmCTestHandlerCommand
  22. {
  23. public:
  24. cmCTestSubmitCommand();
  25. std::unique_ptr<cmCommand> Clone() override;
  26. bool InitialPass(std::vector<std::string> const& args,
  27. cmExecutionStatus& status) override;
  28. /**
  29. * The name of the command as specified in CMakeList.txt.
  30. */
  31. std::string GetName() const override { return "ctest_submit"; }
  32. typedef cmCTestHandlerCommand Superclass;
  33. protected:
  34. cmCTestGenericHandler* InitializeHandler() override;
  35. bool CheckArgumentKeyword(std::string const& arg) override;
  36. bool CheckArgumentValue(std::string const& arg) override;
  37. enum
  38. {
  39. ArgumentDoingParts = Superclass::ArgumentDoingLast1,
  40. ArgumentDoingFiles,
  41. ArgumentDoingRetryDelay,
  42. ArgumentDoingRetryCount,
  43. ArgumentDoingCDashUpload,
  44. ArgumentDoingCDashUploadType,
  45. ArgumentDoingHttpHeader,
  46. ArgumentDoingSubmitURL,
  47. ArgumentDoingLast2
  48. };
  49. enum
  50. {
  51. cts_BUILD_ID = ct_LAST,
  52. cts_LAST
  53. };
  54. bool PartsMentioned;
  55. std::set<cmCTest::Part> Parts;
  56. bool FilesMentioned;
  57. bool InternalTest;
  58. std::set<std::string> Files;
  59. std::string RetryCount;
  60. std::string RetryDelay;
  61. bool CDashUpload;
  62. std::string CDashUploadFile;
  63. std::string CDashUploadType;
  64. std::vector<std::string> HttpHeaders;
  65. std::string SubmitURL;
  66. };
  67. #endif