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 "cmArgumentParserTypes.h"
14 #include "cmCTestHandlerCommand.h"
15 #include "cmCommand.h"
17 class cmCTestGenericHandler;
19 /** \class cmCTestUpload
20 * \brief Run a ctest script
22 * cmCTestUploadCommand defines the command to upload result files for
25 class cmCTestUploadCommand : public cmCTestHandlerCommand
29 * This is a virtual constructor for the command.
31 std::unique_ptr<cmCommand> Clone() override
33 auto ni = cm::make_unique<cmCTestUploadCommand>();
34 ni->CTest = this->CTest;
35 ni->CTestScriptHandler = this->CTestScriptHandler;
36 return std::unique_ptr<cmCommand>(std::move(ni));
40 * The name of the command as specified in CMakeList.txt.
42 std::string GetName() const override { return "ctest_upload"; }
45 void BindArguments() override;
46 void CheckArguments() override;
47 cmCTestGenericHandler* InitializeHandler() override;
49 ArgumentParser::MaybeEmpty<std::vector<std::string>> Files;