cmCTestUploadCommand.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCTestUploadCommand_h
  11. #define cmCTestUploadCommand_h
  12. #include "cmCTestHandlerCommand.h"
  13. #include "cmCTest.h"
  14. /** \class cmCTestUpload
  15. * \brief Run a ctest script
  16. *
  17. * cmCTestUploadCommand defines the command to upload result files for
  18. * the project.
  19. */
  20. class cmCTestUploadCommand : public cmCTestHandlerCommand
  21. {
  22. public:
  23. cmCTestUploadCommand() {}
  24. /**
  25. * This is a virtual constructor for the command.
  26. */
  27. cmCommand* Clone() CM_OVERRIDE
  28. {
  29. cmCTestUploadCommand* ni = new cmCTestUploadCommand;
  30. ni->CTest = this->CTest;
  31. ni->CTestScriptHandler = this->CTestScriptHandler;
  32. return ni;
  33. }
  34. /**
  35. * The name of the command as specified in CMakeList.txt.
  36. */
  37. std::string GetName() const CM_OVERRIDE { return "ctest_upload"; }
  38. cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand);
  39. protected:
  40. cmCTestGenericHandler* InitializeHandler() CM_OVERRIDE;
  41. bool CheckArgumentKeyword(std::string const& arg) CM_OVERRIDE;
  42. bool CheckArgumentValue(std::string const& arg) CM_OVERRIDE;
  43. enum
  44. {
  45. ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
  46. ArgumentDoingLast2
  47. };
  48. cmCTest::SetOfStrings Files;
  49. };
  50. #endif