1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
13 #include "cmCTestHandlerCommand.h"
14 #include "cmCommand.h"
16 class cmCTestGenericHandler;
18 /** \class cmCTestUpload
19 * \brief Run a ctest script
21 * cmCTestUploadCommand defines the command to upload result files for
24 class cmCTestUploadCommand : public cmCTestHandlerCommand
28 * This is a virtual constructor for the command.
30 std::unique_ptr<cmCommand> Clone() override
32 auto ni = cm::make_unique<cmCTestUploadCommand>();
33 ni->CTest = this->CTest;
34 ni->CTestScriptHandler = this->CTestScriptHandler;
35 return std::unique_ptr<cmCommand>(std::move(ni));
39 * The name of the command as specified in CMakeList.txt.
41 std::string GetName() const override { return "ctest_upload"; }
44 void BindArguments() override;
45 void CheckArguments(std::vector<std::string> const&) override;
46 cmCTestGenericHandler* InitializeHandler() override;
48 std::vector<std::string> Files;