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 "cmCTestHandlerCommand.h"
  9. class cmCommand;
  10. class cmCTestGenericHandler;
  11. class cmExecutionStatus;
  12. /** \class cmCTestSubmit
  13. * \brief Run a ctest script
  14. *
  15. * cmCTestSubmitCommand defineds the command to submit the test results for
  16. * the project.
  17. */
  18. class cmCTestSubmitCommand : public cmCTestHandlerCommand
  19. {
  20. public:
  21. std::unique_ptr<cmCommand> Clone() override;
  22. bool InitialPass(std::vector<std::string> const& args,
  23. cmExecutionStatus& status) override;
  24. /**
  25. * The name of the command as specified in CMakeList.txt.
  26. */
  27. std::string GetName() const override { return "ctest_submit"; }
  28. protected:
  29. void BindArguments() override;
  30. void CheckArguments(std::vector<std::string> const& keywords) override;
  31. cmCTestGenericHandler* InitializeHandler() override;
  32. bool CDashUpload = false;
  33. bool FilesMentioned = false;
  34. bool InternalTest = false;
  35. bool PartsMentioned = false;
  36. std::string BuildID;
  37. std::string CDashUploadFile;
  38. std::string CDashUploadType;
  39. std::string RetryCount;
  40. std::string RetryDelay;
  41. std::string SubmitURL;
  42. std::vector<std::string> Files;
  43. std::vector<std::string> HttpHeaders;
  44. std::vector<std::string> Parts;
  45. };