cmCTestUploadCommand.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. }
  26. /**
  27. * This is a virtual constructor for the command.
  28. */
  29. virtual cmCommand* Clone()
  30. {
  31. cmCTestUploadCommand* ni = new cmCTestUploadCommand;
  32. ni->CTest = this->CTest;
  33. ni->CTestScriptHandler = this->CTestScriptHandler;
  34. return ni;
  35. }
  36. /**
  37. * The name of the command as specified in CMakeList.txt.
  38. */
  39. virtual std::string GetName() const { return "ctest_upload";}
  40. cmTypeMacro(cmCTestUploadCommand, cmCTestHandlerCommand);
  41. protected:
  42. cmCTestGenericHandler* InitializeHandler();
  43. virtual bool CheckArgumentKeyword(std::string const& arg);
  44. virtual bool CheckArgumentValue(std::string const& arg);
  45. enum
  46. {
  47. ArgumentDoingFiles = Superclass::ArgumentDoingLast1,
  48. ArgumentDoingLast2
  49. };
  50. cmCTest::SetOfStrings Files;
  51. };
  52. #endif