Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmTestGenerator.h
blob683bffb749ad1f221249d2d2210971db7c1d5380
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmTestGenerator.h,v $
5 Language: C++
6 Date: $Date: 2009-03-16 14:51:23 $
7 Version: $Revision: 1.2 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #ifndef cmTestGenerator_h
18 #define cmTestGenerator_h
20 #include "cmScriptGenerator.h"
22 class cmTest;
24 /** \class cmTestGenerator
25 * \brief Support class for generating install scripts.
28 class cmTestGenerator: public cmScriptGenerator
30 public:
31 cmTestGenerator(cmTest* test,
32 std::vector<std::string> const&
33 configurations = std::vector<std::string>());
34 virtual ~cmTestGenerator();
36 protected:
37 virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent);
38 virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
39 virtual void GenerateScriptForConfig(std::ostream& os,
40 const char* config,
41 Indent const& indent);
42 void GenerateOldStyle(std::ostream& os, Indent const& indent);
44 cmTest* Test;
45 bool TestGenerated;
48 #endif