Resync
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / cmSetTestsPropertiesCommand.h
blobc36e8bc566dc76cc3132cc74f6c19f6b3950181d
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmSetTestsPropertiesCommand.h,v $
5 Language: C++
6 Date: $Date: 2008/01/23 15:27:59 $
7 Version: $Revision: 1.8 $
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 cmSetTestsPropertiesCommand_h
18 #define cmSetTestsPropertiesCommand_h
20 #include "cmCommand.h"
22 class cmSetTestsPropertiesCommand : public cmCommand
24 public:
25 virtual cmCommand* Clone()
27 return new cmSetTestsPropertiesCommand;
30 /**
31 * This is called when the command is first encountered in
32 * the input file.
34 virtual bool InitialPass(std::vector<std::string> const& args,
35 cmExecutionStatus &status);
37 /**
38 * The name of the command as specified in CMakeList.txt.
40 virtual const char* GetName() { return "set_tests_properties";}
42 /**
43 * Succinct documentation.
45 virtual const char* GetTerseDocumentation()
47 return "Set a property of the tests.";
50 /**
51 * Longer documentation.
53 virtual const char* GetFullDocumentation()
55 return
56 " set_tests_properties(test1 [test2...] PROPERTIES prop1 value1 prop2"
57 " value2)\n"
58 "Set a property for the tests. If the property is not found, CMake "
59 "will report an error. The properties include:\n"
60 "WILL_FAIL: If set to true, this will invert the pass/fail flag of the"
61 " test.\n"
62 "PASS_REGULAR_EXPRESSION: If set, the test output will be checked "
63 "against the specified regular expressions and at least one of the"
64 " regular "
65 "expressions has to match, otherwise the test will fail.\n"
66 " Example: PASS_REGULAR_EXPRESSION \"TestPassed;All ok\"\n"
67 "FAIL_REGULAR_EXPRESSION: If set, if the output will match to one of "
68 "specified regular expressions, the test will fail.\n"
69 " Example: PASS_REGULAR_EXPRESSION \"[^a-z]Error;ERROR;Failed\"\n"
70 "Both PASS_REGULAR_EXPRESSION and FAIL_REGULAR_EXPRESSION expect a "
71 "list of regular expressions.\n";
74 cmTypeMacro(cmSetTestsPropertiesCommand, cmCommand);
76 static bool SetOneTest(const char *tname,
77 std::vector<std::string> &propertyPairs,
78 cmMakefile *mf,
79 std::string &errors);
84 #endif