cmCTestSubmitCommand.h 1.9 KB

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