cmTestGenerator.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 cmTestGenerator_h
  11. #define cmTestGenerator_h
  12. #include "cmScriptGenerator.h"
  13. class cmTest;
  14. /** \class cmTestGenerator
  15. * \brief Support class for generating install scripts.
  16. *
  17. */
  18. class cmTestGenerator: public cmScriptGenerator
  19. {
  20. public:
  21. cmTestGenerator(cmTest* test,
  22. std::vector<std::string> const&
  23. configurations = std::vector<std::string>());
  24. virtual ~cmTestGenerator();
  25. protected:
  26. virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent);
  27. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  28. virtual void GenerateScriptForConfig(std::ostream& os,
  29. const std::string& config,
  30. Indent const& indent);
  31. virtual void GenerateScriptNoConfig(std::ostream& os, Indent const& indent);
  32. virtual bool NeedsScriptNoConfig() const;
  33. void GenerateOldStyle(std::ostream& os, Indent const& indent);
  34. cmTest* Test;
  35. bool TestGenerated;
  36. };
  37. #endif