cmCTestSubmitCommand.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 "cmArgumentParserTypes.h"
  10. #include "cmCTestHandlerCommand.h"
  11. class cmCommand;
  12. class cmCTestGenericHandler;
  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. std::unique_ptr<cmCommand> Clone() override;
  24. bool InitialPass(std::vector<std::string> const& args,
  25. cmExecutionStatus& status) override;
  26. /**
  27. * The name of the command as specified in CMakeList.txt.
  28. */
  29. std::string GetName() const override { return "ctest_submit"; }
  30. protected:
  31. void BindArguments() override;
  32. void CheckArguments() override;
  33. std::unique_ptr<cmCTestGenericHandler> InitializeHandler() override;
  34. bool CDashUpload = false;
  35. bool InternalTest = 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. cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> Files;
  43. ArgumentParser::MaybeEmpty<std::vector<std::string>> HttpHeaders;
  44. cm::optional<ArgumentParser::MaybeEmpty<std::vector<std::string>>> Parts;
  45. };