cmCTestSubmitCommand.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <memory>
  6. #include <string>
  7. #include <vector>
  8. #include <cm/optional>
  9. #include "cmCTestHandlerCommand.h"
  10. class cmCommand;
  11. class cmCTestGenericHandler;
  12. class cmExecutionStatus;
  13. /** \class cmCTestSubmit
  14. * \brief Run a ctest script
  15. *
  16. * cmCTestSubmitCommand defineds the command to submit the test results for
  17. * the project.
  18. */
  19. class cmCTestSubmitCommand : public cmCTestHandlerCommand
  20. {
  21. public:
  22. std::unique_ptr<cmCommand> Clone() override;
  23. bool InitialPass(std::vector<std::string> const& args,
  24. cmExecutionStatus& status) override;
  25. /**
  26. * The name of the command as specified in CMakeList.txt.
  27. */
  28. std::string GetName() const override { return "ctest_submit"; }
  29. protected:
  30. void BindArguments() override;
  31. void CheckArguments() override;
  32. cmCTestGenericHandler* InitializeHandler() override;
  33. bool CDashUpload = false;
  34. bool InternalTest = false;
  35. std::string BuildID;
  36. std::string CDashUploadFile;
  37. std::string CDashUploadType;
  38. std::string RetryCount;
  39. std::string RetryDelay;
  40. std::string SubmitURL;
  41. cm::optional<std::vector<std::string>> Files;
  42. std::vector<std::string> HttpHeaders;
  43. cm::optional<std::vector<std::string>> Parts;
  44. };