Merge lp:~blep/cppunit2/testcase-factory into lp:cppunit2/trunk
- testcase-factory
- Merge into trunk
Proposed by
blep
Status: | Merged |
---|---|
Merged at revision: | not available |
Proposed branch: | lp:~blep/cppunit2/testcase-factory |
Merge into: | lp:cppunit2/trunk |
Diff against target: | None lines |
To merge this branch: | bzr merge lp:~blep/cppunit2/testcase-factory |
Related bugs: | |
Related blueprints: |
Replace TestSuite factory with TestCaseFactory
(Essential)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
blep | Approve | ||
Review via email: mp+4471@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
blep (blep) wrote : | # |
Revision history for this message
blep (blep) wrote : | # |
Compilation and test pass on Solaris/Sun Studio 12, as well as MSVS 6, 7.1, 8.0, and 9.0. No new compilation issues are introduced on Linux/gcc 4.4 (but stringize tests still do not compile).
review:
Approve
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file '.bzrignore' | |||
2 | --- .bzrignore 2008-12-14 14:18:05 +0000 | |||
3 | +++ .bzrignore 2008-12-25 17:01:58 +0000 | |||
4 | @@ -1,10 +1,14 @@ | |||
5 | 1 | bin | 1 | bin |
6 | 2 | build | ||
7 | 2 | buildscons | 3 | buildscons |
8 | 3 | libs | 4 | libs |
9 | 4 | scons.py | 5 | scons.py |
11 | 5 | scons-local-* | 6 | cppunit2/scons-local-* |
12 | 7 | cppunit2/scons-LICENSE | ||
13 | 8 | *.user | ||
14 | 6 | *.ncb | 9 | *.ncb |
15 | 10 | *.suo | ||
16 | 7 | cppunit2/test/json_test/*.actual* | 11 | cppunit2/test/json_test/*.actual* |
17 | 8 | cppunit2/test/json_test/*.rewrite | 12 | cppunit2/test/json_test/*.rewrite |
18 | 9 | cppunit2/test/json_test/*.process-output | 13 | cppunit2/test/json_test/*.process-output |
20 | 10 | build | 14 | makefiles/vs71/cppunit2.suo |
21 | 11 | 15 | ||
22 | === modified file 'cppunit2/TODO' | |||
23 | --- cppunit2/TODO 2008-07-13 06:19:20 +0000 | |||
24 | +++ cppunit2/TODO 2009-03-13 21:39:36 +0000 | |||
25 | @@ -1,5 +1,4 @@ | |||
26 | 1 | * complete works on the CommandLines library => likely moved to opentest. | 1 | * complete works on the CommandLines library => likely moved to opentest. |
27 | 2 | * add support for ExtendedData in C function test case (CPPUT_TEST_FUNCTION...) | ||
28 | 3 | * need a new Any supporting feature required for unit testing: | 2 | * need a new Any supporting feature required for unit testing: |
29 | 4 | - toString (toJson?) | 3 | - toString (toJson?) |
30 | 5 | - type to text (for conversion error message) | 4 | - type to text (for conversion error message) |
31 | @@ -9,8 +8,5 @@ | |||
32 | 9 | - support for unknown aggregate types. | 8 | - support for unknown aggregate types. |
33 | 10 | - conversion between type (int, uint, const char *, std::string...) | 9 | - conversion between type (int, uint, const char *, std::string...) |
34 | 11 | - type comparison | 10 | - type comparison |
39 | 12 | * arange for fixture based test case to create a new instance for each test run. | 11 | * write unit test for light test fixture |
36 | 13 | => solve requirement to implement setUp()/tearDown() | ||
37 | 14 | => ensure thread-safety when the same test is executed in multiple thread at the | ||
38 | 15 | same time (stress test) | ||
40 | 16 | 12 | ||
41 | 17 | 13 | ||
42 | === modified file 'cppunit2/doc/coding_guidelines.dox' | |||
43 | --- cppunit2/doc/coding_guidelines.dox 2007-08-14 15:42:14 +0000 | |||
44 | +++ cppunit2/doc/coding_guidelines.dox 2008-12-11 20:28:30 +0000 | |||
45 | @@ -17,7 +17,7 @@ | |||
46 | 17 | 17 | ||
47 | 18 | <table> | 18 | <table> |
48 | 19 | <tr><td><b>First letter in upper case</b></td><td><b>First letter in lower case</b></td></tr> | 19 | <tr><td><b>First letter in upper case</b></td><td><b>First letter in lower case</b></td></tr> |
50 | 20 | <tr><td><tt>TestCase</tt></td><td><tt>testCase</tt></td></tr> | 20 | <tr><td><tt>TestMeta</tt></td><td><tt>testCase</tt></td></tr> |
51 | 21 | <tr><td><tt>DLLLoader</tt></td><td><tt>dllLoader</tt></td></tr> | 21 | <tr><td><tt>DLLLoader</tt></td><td><tt>dllLoader</tt></td></tr> |
52 | 22 | </table> | 22 | </table> |
53 | 23 | 23 | ||
54 | @@ -40,9 +40,9 @@ | |||
55 | 40 | resource.c // OK | 40 | resource.c // OK |
56 | 41 | 41 | ||
57 | 42 | test_case.c // BAD | 42 | test_case.c // BAD |
61 | 43 | TestCase.c // BAD | 43 | TestMeta.c // BAD |
62 | 44 | TestCase.h // BAD | 44 | TestMeta.h // BAD |
63 | 45 | TestCase.C // BAD | 45 | TestMeta.C // BAD |
64 | 46 | \endcode | 46 | \endcode |
65 | 47 | 47 | ||
66 | 48 | \subsection cg_cppidentifiers C++ identifiers | 48 | \subsection cg_cppidentifiers C++ identifiers |
67 | @@ -94,7 +94,7 @@ | |||
68 | 94 | Example: | 94 | Example: |
69 | 95 | \code | 95 | \code |
70 | 96 | Test | 96 | Test |
72 | 97 | TestCase | 97 | TestMeta |
73 | 98 | ExceptionGuard | 98 | ExceptionGuard |
74 | 99 | \endcode | 99 | \endcode |
75 | 100 | 100 | ||
76 | @@ -217,11 +217,11 @@ | |||
77 | 217 | - return type in function definitions should be | 217 | - return type in function definitions should be |
78 | 218 | \code | 218 | \code |
79 | 219 | // An example of constructor | 219 | // An example of constructor |
81 | 220 | TestCase::TestCase( const CppTL::Functor0 &setUp, | 220 | TestMeta::TestMeta( const CppTL::Functor0 &setUp, |
82 | 221 | const CppTL::Functor0 &run, | 221 | const CppTL::Functor0 &run, |
83 | 222 | const CppTL::Functor0 &tearDown, | 222 | const CppTL::Functor0 &tearDown, |
84 | 223 | const std::string &name ) | 223 | const std::string &name ) |
86 | 224 | : AbstractTestCase( name ) | 224 | : TestCase( name ) |
87 | 225 | , setUp_( setUp ) | 225 | , setUp_( setUp ) |
88 | 226 | , run_( run ) | 226 | , run_( run ) |
89 | 227 | , tearDown_( tearDown ) | 227 | , tearDown_( tearDown ) |
90 | 228 | 228 | ||
91 | === modified file 'cppunit2/doc/cpput.dox' | |||
92 | --- cppunit2/doc/cpput.dox 2007-08-16 13:51:04 +0000 | |||
93 | +++ cppunit2/doc/cpput.dox 2008-12-20 10:45:17 +0000 | |||
94 | @@ -43,8 +43,8 @@ | |||
95 | 43 | \section section_writing_test Writing tests | 43 | \section section_writing_test Writing tests |
96 | 44 | 44 | ||
97 | 45 | \subsection section_instantiating_test Instantiating tests | 45 | \subsection section_instantiating_test Instantiating tests |
100 | 46 | A test case is exposed by instantiating a subclass of CppUT::AbstractTestCase. Each | 46 | A test case is exposed by instantiating a subclass of CppUT::TestCase. Each |
101 | 47 | time a test case is executed, the \link CppUT::AbstractTestCase::runTest() runTest()\endlink | 47 | time a test case is executed, the \link CppUT::TestCase::runTest() runTest()\endlink |
102 | 48 | method is called. This method calls the virtual methods \testCaseSetup, \testCaseRun | 48 | method is called. This method calls the virtual methods \testCaseSetup, \testCaseRun |
103 | 49 | and \testCaseTearDown. | 49 | and \testCaseTearDown. |
104 | 50 | The \testCaseRun and \testCaseTearDown methods are only called if | 50 | The \testCaseRun and \testCaseTearDown methods are only called if |
105 | @@ -57,15 +57,15 @@ | |||
106 | 57 | automatically (see \ref section_skippingtest for detail). | 57 | automatically (see \ref section_skippingtest for detail). |
107 | 58 | 58 | ||
108 | 59 | There is mainly two ways to create test case: | 59 | There is mainly two ways to create test case: |
111 | 60 | - Subclassing CppUT::AbstractTestCase and overridding at least \testCaseRun. | 60 | - Subclassing CppUT::TestCase and overridding at least \testCaseRun. |
112 | 61 | - Instantiating CppUT::TestCase, which subclass CppUT::AbstractTestCase, and | 61 | - Instantiating CppUT::TestMeta, which subclass CppUT::TestCase, and |
113 | 62 | passing the function to execute in the constructor. | 62 | passing the function to execute in the constructor. |
114 | 63 | 63 | ||
115 | 64 | A test case is usually created using CppUT::makeTestCase() that instantiate | 64 | A test case is usually created using CppUT::makeTestCase() that instantiate |
117 | 65 | CppUT::TestCase. | 65 | CppUT::TestMeta. |
118 | 66 | 66 | ||
119 | 67 | Notes that test case instantiation is usually only done when you need to create your own | 67 | Notes that test case instantiation is usually only done when you need to create your own |
121 | 68 | convenience test case macro or you are populating a TestSuite with parametrized TestCase. | 68 | convenience test case macro or you are populating a Suite with parametrized TestMeta. |
122 | 69 | The framework provides severable way to create and register test case, see \ref section_lightfixture, | 69 | The framework provides severable way to create and register test case, see \ref section_lightfixture, |
123 | 70 | \ref section_testfixture, \ref section_testfunction. | 70 | \ref section_testfixture, \ref section_testfunction. |
124 | 71 | 71 | ||
125 | @@ -219,7 +219,7 @@ | |||
126 | 219 | Notes that a SkipTestException exception (a subclass of std::runtime_error) is thrown | 219 | Notes that a SkipTestException exception (a subclass of std::runtime_error) is thrown |
127 | 220 | to abort the test. | 220 | to abort the test. |
128 | 221 | 221 | ||
130 | 222 | \subsection section_testfixture Creating TestCase: TestFixture | 222 | \subsection section_testfixture Creating TestMeta: TestFixture |
131 | 223 | 223 | ||
132 | 224 | A TestFixture is a class that implements multiple test cases sharing the same setUp/tearDown steps. | 224 | A TestFixture is a class that implements multiple test cases sharing the same setUp/tearDown steps. |
133 | 225 | Test cases are implements as "void test()" member function and each test case has its own instance | 225 | Test cases are implements as "void test()" member function and each test case has its own instance |
134 | @@ -230,11 +230,11 @@ | |||
135 | 230 | - polymorphism: you can subclass a TestFixture and adds more test or override setUp/teardown | 230 | - polymorphism: you can subclass a TestFixture and adds more test or override setUp/teardown |
136 | 231 | virtual member functions. | 231 | virtual member functions. |
137 | 232 | - TestExtendedData can be specified for each test | 232 | - TestExtendedData can be specified for each test |
139 | 233 | - TestFixture test cases are grouped within a TestSuite | 233 | - TestFixture test cases are grouped within a Suite |
140 | 234 | - macro usage is limited to a declaration of the test member function and is clearly separated | 234 | - macro usage is limited to a declaration of the test member function and is clearly separated |
141 | 235 | from code. | 235 | from code. |
142 | 236 | 236 | ||
144 | 237 | \subsection section_lightfixture Creating TestCase: light Fixture | 237 | \subsection section_lightfixture Creating TestMeta: light Fixture |
145 | 238 | 238 | ||
146 | 239 | A Light test fixture is similar to a TestFixture but does not support the following features: | 239 | A Light test fixture is similar to a TestFixture but does not support the following features: |
147 | 240 | - templated test class | 240 | - templated test class |
148 | @@ -243,18 +243,18 @@ | |||
149 | 243 | 243 | ||
150 | 244 | On the positive side, it is easier on the wrist. | 244 | On the positive side, it is easier on the wrist. |
151 | 245 | 245 | ||
153 | 246 | \subsection section_testfunction Creating TestCase: test functions | 246 | \subsection section_testfunction Creating TestMeta: test functions |
154 | 247 | 247 | ||
155 | 248 | A test case can be implemented as a plain C function "void test()". | 248 | A test case can be implemented as a plain C function "void test()". |
156 | 249 | 249 | ||
158 | 250 | \subsection section_tablefixture Creating TestCase: using table fixture in test cases | 250 | \subsection section_tablefixture Creating TestMeta: using table fixture in test cases |
159 | 251 | 251 | ||
160 | 252 | Sometimes when writing test cases, you need to repeat the same test with different | 252 | Sometimes when writing test cases, you need to repeat the same test with different |
161 | 253 | input values. Table fixture are a way to do this. | 253 | input values. Table fixture are a way to do this. |
162 | 254 | 254 | ||
163 | 255 | \see CPPUT_TEST_TABLE(), CPPUT_REGISTER_TEST_FUNCTION_TABLE_IN(), CPPUT_TEST_FUNCTION_TABLE_IN(). | 255 | \see CPPUT_TEST_TABLE(), CPPUT_REGISTER_TEST_FUNCTION_TABLE_IN(), CPPUT_TEST_FUNCTION_TABLE_IN(). |
164 | 256 | 256 | ||
166 | 257 | \subsection section_inputfixture Creating TestCase: input fixture | 257 | \subsection section_inputfixture Creating TestMeta: input fixture |
167 | 258 | 258 | ||
168 | 259 | Input fixture are intended to run functional test cases with externalized input data. | 259 | Input fixture are intended to run functional test cases with externalized input data. |
169 | 260 | 260 | ||
170 | 261 | 261 | ||
171 | === modified file 'cppunit2/doc/doxyfile.in' | |||
172 | --- cppunit2/doc/doxyfile.in 2007-03-16 21:41:39 +0000 | |||
173 | +++ cppunit2/doc/doxyfile.in 2008-12-11 20:28:30 +0000 | |||
174 | @@ -26,9 +26,9 @@ | |||
175 | 26 | JAVADOC_AUTOBRIEF = YES | 26 | JAVADOC_AUTOBRIEF = YES |
176 | 27 | INHERIT_DOCS = YES | 27 | INHERIT_DOCS = YES |
177 | 28 | TAB_SIZE = 3 | 28 | TAB_SIZE = 3 |
181 | 29 | ALIASES = "testCaseSetup=\link CppUT::AbstractTestCase::setUp() setUp()\endlink" \ | 29 | ALIASES = "testCaseSetup=\link CppUT::TestCase::setUp() setUp()\endlink" \ |
182 | 30 | "testCaseRun=\link CppUT::AbstractTestCase::run() run()\endlink" \ | 30 | "testCaseRun=\link CppUT::TestCase::run() run()\endlink" \ |
183 | 31 | "testCaseTearDown=\link CppUT::AbstractTestCase::tearDown() tearDown()\endlink" \ | 31 | "testCaseTearDown=\link CppUT::TestCase::tearDown() tearDown()\endlink" \ |
184 | 32 | "json_ref=<a HREF='http://www.json.org/'>JSON (JavaScript Object Notation)</a>" | 32 | "json_ref=<a HREF='http://www.json.org/'>JSON (JavaScript Object Notation)</a>" |
185 | 33 | 33 | ||
186 | 34 | OPTIMIZE_OUTPUT_FOR_C = NO | 34 | OPTIMIZE_OUTPUT_FOR_C = NO |
187 | 35 | 35 | ||
188 | === modified file 'cppunit2/examples/checking_assertions/main.cpp' | |||
189 | --- cppunit2/examples/checking_assertions/main.cpp 2005-11-07 21:43:08 +0000 | |||
190 | +++ cppunit2/examples/checking_assertions/main.cpp 2009-03-13 20:59:56 +0000 | |||
191 | @@ -1,10 +1,9 @@ | |||
192 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
193 | 2 | #include <cpput/testcase.h> | ||
194 | 3 | 2 | ||
195 | 4 | 3 | ||
196 | 5 | // Checking assertion do not abort the test uppon failure: | 4 | // Checking assertion do not abort the test uppon failure: |
197 | 6 | // all the failing assertions below will be reported by the test framework | 5 | // all the failing assertions below will be reported by the test framework |
199 | 7 | static void testBasicCheckingAssertion() | 6 | CPPUT_TEST_FUNCTION( testBasicCheckingAssertion ) |
200 | 8 | { | 7 | { |
201 | 9 | CPPUT_CHECK( 1 == 2, "1 is not equal to 2..." ); | 8 | CPPUT_CHECK( 1 == 2, "1 is not equal to 2..." ); |
202 | 10 | CPPUT_CHECK_EXPR( 1 + 2 == 4 ); | 9 | CPPUT_CHECK_EXPR( 1 + 2 == 4 ); |
203 | @@ -18,8 +17,5 @@ | |||
204 | 18 | 17 | ||
205 | 19 | int main( int argc, const char *argv[] ) | 18 | int main( int argc, const char *argv[] ) |
206 | 20 | { | 19 | { |
211 | 21 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 20 | return runExampleTests( argc, argv ); |
208 | 22 | allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testBasicCheckingAssertion ), | ||
209 | 23 | "testBasicCheckingAssertion" ) ); | ||
210 | 24 | return runExampleTests( argc, argv, allSuite.get() ); | ||
212 | 25 | } | 21 | } |
213 | 26 | 22 | ||
214 | === modified file 'cppunit2/examples/common/examplecommon.h' | |||
215 | --- cppunit2/examples/common/examplecommon.h 2005-11-13 09:17:57 +0000 | |||
216 | +++ cppunit2/examples/common/examplecommon.h 2009-03-13 20:59:56 +0000 | |||
217 | @@ -1,22 +1,17 @@ | |||
218 | 1 | #ifndef CPPUT_EXAMPLES_EXAMPLECOMMON_H_INCLUDED | 1 | #ifndef CPPUT_EXAMPLES_EXAMPLECOMMON_H_INCLUDED |
219 | 2 | # define CPPUT_EXAMPLES_EXAMPLECOMMON_H_INCLUDED | 2 | # define CPPUT_EXAMPLES_EXAMPLECOMMON_H_INCLUDED |
220 | 3 | 3 | ||
222 | 4 | #include <cpput/testsuite.h> | 4 | #include <cpput/registry.h> |
223 | 5 | #include <cpput/lighttestrunner.h> | 5 | #include <cpput/lighttestrunner.h> |
224 | 6 | //#include <cpput/testrunner.h> // cppunit2 testrunner for opentest | ||
225 | 7 | #include <cpput/assertcommon.h> | 6 | #include <cpput/assertcommon.h> |
226 | 7 | #include <cpput/testfunction.h> | ||
227 | 8 | 8 | ||
228 | 9 | inline int runExampleTests( int argc, | 9 | inline int runExampleTests( int argc, |
231 | 10 | const char *argv[], | 10 | const char *argv[] ) |
230 | 11 | CppUT::Test *test ) | ||
232 | 12 | { | 11 | { |
233 | 13 | // CppUT::TestRunner runner; | ||
234 | 14 | // runner.setRootSuite( allSuite.get() ); | ||
235 | 15 | // OpenTest::TextTestDriver driver( runner ); | ||
236 | 16 | // bool sucessful = driver.run(); | ||
237 | 17 | CppUT::LightTestRunner runner; | 12 | CppUT::LightTestRunner runner; |
240 | 18 | runner.addTest( test ); | 13 | runner.addSuite( CppUT::Registry::getRootSuite() ); |
241 | 19 | bool sucessful = runner.runAllTests(); | 14 | bool sucessful = runner.runTests(); |
242 | 20 | return sucessful ? 0 : 1; | 15 | return sucessful ? 0 : 1; |
243 | 21 | } | 16 | } |
244 | 22 | 17 | ||
245 | 23 | 18 | ||
246 | === modified file 'cppunit2/examples/ignore_failure_demo/main.cpp' | |||
247 | --- cppunit2/examples/ignore_failure_demo/main.cpp 2005-11-11 19:54:15 +0000 | |||
248 | +++ cppunit2/examples/ignore_failure_demo/main.cpp 2009-03-13 20:59:56 +0000 | |||
249 | @@ -1,12 +1,11 @@ | |||
250 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
251 | 2 | #include <cpput/testcase.h> | ||
252 | 3 | 2 | ||
253 | 4 | static int half( int x ) | 3 | static int half( int x ) |
254 | 5 | { | 4 | { |
255 | 6 | return (x+1) / 2; | 5 | return (x+1) / 2; |
256 | 7 | } | 6 | } |
257 | 8 | 7 | ||
259 | 9 | static void testIgnoreFailure() | 8 | CPPUT_TEST_FUNCTION( testIgnoreFailure ) |
260 | 10 | { | 9 | { |
261 | 11 | CPPUT_CHECK_EQUAL( 1, half(2) ); | 10 | CPPUT_CHECK_EQUAL( 1, half(2) ); |
262 | 12 | CPPUT_IGNORE_FAILURE(( CPPUT_CHECK_EQUAL( 2, half(5) ) )); | 11 | CPPUT_IGNORE_FAILURE(( CPPUT_CHECK_EQUAL( 2, half(5) ) )); |
263 | @@ -17,8 +16,5 @@ | |||
264 | 17 | 16 | ||
265 | 18 | int main( int argc, const char *argv[] ) | 17 | int main( int argc, const char *argv[] ) |
266 | 19 | { | 18 | { |
271 | 20 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 19 | return runExampleTests( argc, argv ); |
268 | 21 | allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testIgnoreFailure ), | ||
269 | 22 | "testIgnoreFailure" ) ); | ||
270 | 23 | return runExampleTests( argc, argv, allSuite.get() ); | ||
272 | 24 | } | 20 | } |
273 | 25 | 21 | ||
274 | === modified file 'cppunit2/examples/input_test/main.cpp' | |||
275 | --- cppunit2/examples/input_test/main.cpp 2007-08-16 13:51:04 +0000 | |||
276 | +++ cppunit2/examples/input_test/main.cpp 2009-03-13 20:59:56 +0000 | |||
277 | @@ -1,6 +1,7 @@ | |||
278 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
279 | 2 | #include <cpput/testcase.h> | 2 | #include <cpput/testcase.h> |
280 | 3 | #include <cpput/testinfo.h> | 3 | #include <cpput/testinfo.h> |
281 | 4 | #include <cpput/testfunction.h> | ||
282 | 4 | #include <cpput/assertcommon.h> | 5 | #include <cpput/assertcommon.h> |
283 | 5 | #include <cpput/inputbasedtest.h> | 6 | #include <cpput/inputbasedtest.h> |
284 | 6 | #include <json/reader.h> | 7 | #include <json/reader.h> |
285 | @@ -38,7 +39,7 @@ | |||
286 | 38 | 39 | ||
287 | 39 | 40 | ||
288 | 40 | 41 | ||
290 | 41 | static void testOperations() | 42 | CPPUT_TEST_FUNCTION( testOperations ) |
291 | 42 | { | 43 | { |
292 | 43 | Json::Reader reader; | 44 | Json::Reader reader; |
293 | 44 | Json::Value data; | 45 | Json::Value data; |
294 | @@ -60,11 +61,5 @@ | |||
295 | 60 | 61 | ||
296 | 61 | int main( int argc, const char *argv[] ) | 62 | int main( int argc, const char *argv[] ) |
297 | 62 | { | 63 | { |
305 | 63 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 64 | return runExampleTests( argc, argv ); |
299 | 64 | |||
300 | 65 | CppUT::TestPtr test1 = CppUT::makeTestCase( CppTL::cfn0( testOperations ), | ||
301 | 66 | "testOperations" ); | ||
302 | 67 | allSuite->add( test1 ); | ||
303 | 68 | |||
304 | 69 | return runExampleTests( argc, argv, allSuite.get() ); | ||
306 | 70 | } | 65 | } |
307 | 71 | 66 | ||
308 | === modified file 'cppunit2/examples/light_fixture/main.cpp' | |||
309 | --- cppunit2/examples/light_fixture/main.cpp 2007-08-15 15:35:40 +0000 | |||
310 | +++ cppunit2/examples/light_fixture/main.cpp 2009-03-13 20:59:56 +0000 | |||
311 | @@ -25,7 +25,7 @@ | |||
312 | 25 | int y_; | 25 | int y_; |
313 | 26 | }; | 26 | }; |
314 | 27 | 27 | ||
316 | 28 | struct LineTest | 28 | struct LineTest : CppUT::TestCase |
317 | 29 | { | 29 | { |
318 | 30 | LineTest() | 30 | LineTest() |
319 | 31 | : p1_( 1, 0 ) | 31 | : p1_( 1, 0 ) |
320 | @@ -37,24 +37,21 @@ | |||
321 | 37 | }; | 37 | }; |
322 | 38 | 38 | ||
323 | 39 | // In the light fixture test you can directly access fixture members | 39 | // In the light fixture test you can directly access fixture members |
325 | 40 | CPPUT_TEST_LIGHT_FIXTURE( LineTest, testSquaredLength ) | 40 | CPPUT_FIXTURE_TEST( LineTest, testSquaredLength ) |
326 | 41 | { | 41 | { |
327 | 42 | CPPUT_CHECK_EQUAL( 1, p1_.squaredLength() ); | 42 | CPPUT_CHECK_EQUAL( 1, p1_.squaredLength() ); |
328 | 43 | CPPUT_CHECK_EQUAL( 2*2, p2_.squaredLength() ); | 43 | CPPUT_CHECK_EQUAL( 2*2, p2_.squaredLength() ); |
329 | 44 | } | 44 | } |
330 | 45 | 45 | ||
332 | 46 | CPPUT_TEST_LIGHT_FIXTURE_WITH_SPECIFICS( LineTest, testAdd, timeOut(0.2) ) | 46 | |
333 | 47 | CPPUT_FIXTURE_TEST_WITH_META( LineTest, testAdd, timeOut(0.2) ) | ||
334 | 47 | { | 48 | { |
335 | 48 | p1_.add( p2_ ); | 49 | p1_.add( p2_ ); |
336 | 49 | CPPUT_CHECK_EQUAL( 1+2*2, p1_.squaredLength() ); | 50 | CPPUT_CHECK_EQUAL( 1+2*2, p1_.squaredLength() ); |
337 | 50 | } | 51 | } |
338 | 51 | 52 | ||
339 | 52 | // Register the light fixture test suite to the default test suite. | ||
340 | 53 | CPPUT_REGISTER_LIGHT_FIXTURE( LineTest ); | ||
341 | 54 | |||
342 | 55 | 53 | ||
343 | 56 | int main( int argc, const char *argv[] ) | 54 | int main( int argc, const char *argv[] ) |
344 | 57 | { | 55 | { |
347 | 58 | CppUT::TestSuitePtr allSuite = CppUT::Registry::instance().createDefaultTests(); | 56 | return runExampleTests( argc, argv ); |
346 | 59 | return runExampleTests( argc, argv, allSuite.get() ); | ||
348 | 60 | } | 57 | } |
349 | 61 | 58 | ||
350 | === modified file 'cppunit2/examples/log_demo/main.cpp' | |||
351 | --- cppunit2/examples/log_demo/main.cpp 2005-11-08 19:25:50 +0000 | |||
352 | +++ cppunit2/examples/log_demo/main.cpp 2009-03-13 20:59:56 +0000 | |||
353 | @@ -1,9 +1,8 @@ | |||
354 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
355 | 2 | #include <cpput/testcase.h> | ||
356 | 3 | #include <cpptl/stringtools.h> | 2 | #include <cpptl/stringtools.h> |
357 | 4 | 3 | ||
358 | 5 | 4 | ||
360 | 6 | static void testLogDemo() | 5 | CPPUT_TEST_FUNCTION( testLogDemo ) |
361 | 7 | { | 6 | { |
362 | 8 | for ( int index =0; index < 5; ++index ) | 7 | for ( int index =0; index < 5; ++index ) |
363 | 9 | { | 8 | { |
364 | @@ -16,8 +15,5 @@ | |||
365 | 16 | 15 | ||
366 | 17 | int main( int argc, const char *argv[] ) | 16 | int main( int argc, const char *argv[] ) |
367 | 18 | { | 17 | { |
372 | 19 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 18 | return runExampleTests( argc, argv ); |
369 | 20 | allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testLogDemo ), | ||
370 | 21 | "testLogDemo" ) ); | ||
371 | 22 | return runExampleTests( argc, argv, allSuite.get() ); | ||
373 | 23 | } | 19 | } |
374 | 24 | 20 | ||
375 | === modified file 'cppunit2/examples/parametrized_test/main.cpp' | |||
376 | --- cppunit2/examples/parametrized_test/main.cpp 2005-11-13 09:17:57 +0000 | |||
377 | +++ cppunit2/examples/parametrized_test/main.cpp 2009-03-13 20:59:56 +0000 | |||
378 | @@ -12,11 +12,11 @@ | |||
379 | 12 | 12 | ||
380 | 13 | int main( int argc, const char *argv[] ) | 13 | int main( int argc, const char *argv[] ) |
381 | 14 | { | 14 | { |
384 | 15 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 15 | CppUT::Suite &rootSuite = CppUT::Registry::getRootSuite(); |
385 | 16 | allSuite->add( CppUT::makeTestCase( CppTL::bind_cfn( testMultiply, 7, 2, 7*2 ), | 16 | rootSuite.add( CppUT::makeTestCase( CppTL::bind_cfn( testMultiply, 7, 2, 7*2 ), |
386 | 17 | "multiply 7*2" ) ); | 17 | "multiply 7*2" ) ); |
388 | 18 | allSuite->add( CppUT::makeTestCase( CppTL::bind_cfn( testMultiply, 7, 5, 7*4 ), | 18 | rootSuite.add( CppUT::makeTestCase( CppTL::bind_cfn( testMultiply, 7, 5, 7*4 ), |
389 | 19 | "multiply 7*5 (failing demo)" ) ); | 19 | "multiply 7*5 (failing demo)" ) ); |
390 | 20 | 20 | ||
392 | 21 | return runExampleTests( argc, argv, allSuite.get() ); | 21 | return runExampleTests( argc, argv ); |
393 | 22 | } | 22 | } |
394 | 23 | 23 | ||
395 | === modified file 'cppunit2/examples/stringize_demo/main.cpp' | |||
396 | --- cppunit2/examples/stringize_demo/main.cpp 2005-11-08 19:25:50 +0000 | |||
397 | +++ cppunit2/examples/stringize_demo/main.cpp 2009-03-13 20:59:56 +0000 | |||
398 | @@ -1,5 +1,4 @@ | |||
399 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
400 | 2 | #include <cpput/testcase.h> | ||
401 | 3 | #include <cpptl/stringtools.h> | 2 | #include <cpptl/stringtools.h> |
402 | 4 | #include <cpput/assertenum.h> | 3 | #include <cpput/assertenum.h> |
403 | 5 | #include <deque> | 4 | #include <deque> |
404 | @@ -33,7 +32,7 @@ | |||
405 | 33 | } | 32 | } |
406 | 34 | 33 | ||
407 | 35 | 34 | ||
409 | 36 | static void testStringize() | 35 | CPPUT_TEST_FUNCTION( testStringize ) |
410 | 37 | { | 36 | { |
411 | 38 | CPPUT_CHECK_EQUAL( ExampleNamespace::WeirdType(5678), ExampleNamespace::WeirdType(1234) ); | 37 | CPPUT_CHECK_EQUAL( ExampleNamespace::WeirdType(5678), ExampleNamespace::WeirdType(1234) ); |
412 | 39 | 38 | ||
413 | @@ -47,8 +46,5 @@ | |||
414 | 47 | 46 | ||
415 | 48 | int main( int argc, const char *argv[] ) | 47 | int main( int argc, const char *argv[] ) |
416 | 49 | { | 48 | { |
421 | 50 | CppUT::TestSuitePtr allSuite = CppUT::makeTestSuite( "All tests" ); | 49 | return runExampleTests( argc, argv ); |
418 | 51 | allSuite->add( CppUT::makeTestCase( CppTL::cfn0( &testStringize ), | ||
419 | 52 | "testStringize" ) ); | ||
420 | 53 | return runExampleTests( argc, argv, allSuite.get() ); | ||
422 | 54 | } | 50 | } |
423 | 55 | 51 | ||
424 | === modified file 'cppunit2/examples/test_function/main.cpp' | |||
425 | --- cppunit2/examples/test_function/main.cpp 2007-08-15 15:35:40 +0000 | |||
426 | +++ cppunit2/examples/test_function/main.cpp 2009-03-13 20:59:56 +0000 | |||
427 | @@ -1,40 +1,38 @@ | |||
428 | 1 | #include <examples/common/examplecommon.h> | 1 | #include <examples/common/examplecommon.h> |
429 | 2 | #include <cpput/testfunction.h> | 2 | #include <cpput/testfunction.h> |
430 | 3 | 3 | ||
432 | 4 | static void test1() | 4 | // Register function test1 in the default test suite |
433 | 5 | |||
434 | 6 | CPPUT_TEST_FUNCTION( test1 ) | ||
435 | 5 | { | 7 | { |
436 | 6 | CPPUT_CHECK( 1 == 2, "1 is not equal to 2..." ); | 8 | CPPUT_CHECK( 1 == 2, "1 is not equal to 2..." ); |
437 | 7 | CPPUT_CHECK_EXPR( 1 + 2 == 4 ); | 9 | CPPUT_CHECK_EXPR( 1 + 2 == 4 ); |
438 | 8 | } | 10 | } |
439 | 9 | 11 | ||
440 | 10 | // Register function test1 in the default test suite | ||
441 | 11 | CPPUT_REGISTER_TEST_FUNCTION( test1 ); | ||
442 | 12 | |||
443 | 13 | 12 | ||
444 | 14 | // Register function test1 in the test suite named "MyTestSuite" | 13 | // Register function test1 in the test suite named "MyTestSuite" |
465 | 15 | CPPUT_REGISTER_TEST_FUNCTION_IN( test1, "MyTestSuite" ); | 14 | CPPUT_SUITE( "MyTestSuite" ) |
466 | 16 | 15 | { | |
467 | 17 | 16 | ||
468 | 18 | // Declare and register a function test2 in the default test suite | 17 | // Declare and register a function test2 in the default test suite |
469 | 19 | CPPUT_TEST_FUNCTION( test2 ) | 18 | CPPUT_TEST_FUNCTION( test2 ) |
470 | 20 | { | 19 | { |
471 | 21 | CPPUT_CHECK_FALSE( 1 == 1, "1 is equal to 1..." ); | 20 | CPPUT_CHECK_FALSE( 1 == 1, "1 is equal to 1..." ); |
472 | 22 | CPPUT_CHECK_EXPR_FALSE( 1 + 1 == 2 ); | 21 | CPPUT_CHECK_EXPR_FALSE( 1 + 1 == 2 ); |
473 | 23 | } | 22 | } |
474 | 24 | 23 | ||
475 | 25 | 24 | ||
476 | 26 | // Declare and register a function test2 in the test suite named "MyTestSuite" | 25 | // Declare and register a function test2 in the test suite named "MyTestSuite" |
477 | 27 | CPPUT_TEST_FUNCTION_IN( test3, "MyTestSuite" ) | 26 | CPPUT_TEST_FUNCTION( test3 ) |
478 | 28 | { | 27 | { |
479 | 29 | CPPUT_CHECK_EQUAL( 1, 2 ); | 28 | CPPUT_CHECK_EQUAL( 1, 2 ); |
480 | 30 | CPPUT_CHECK_NOT_EQUAL( 34, 34 ); | 29 | CPPUT_CHECK_NOT_EQUAL( 34, 34 ); |
481 | 31 | } | 30 | } |
482 | 32 | 31 | ||
483 | 33 | // Makes MyTestSuite a child of default. | 32 | } |
484 | 34 | CPPUT_REGISTER_SUITE_RELATIONSHIP_TO_DEFAULT( "MyTestSuite" ); | 33 | |
485 | 35 | 34 | ||
486 | 36 | int main( int argc, const char *argv[] ) | 35 | int main( int argc, const char *argv[] ) |
487 | 37 | { | 36 | { |
490 | 38 | CppUT::TestSuitePtr allSuite = CppUT::Registry::instance().createDefaultTests(); | 37 | return runExampleTests( argc, argv ); |
489 | 39 | return runExampleTests( argc, argv, allSuite.get() ); | ||
491 | 40 | } | 38 | } |
492 | 41 | 39 | ||
493 | === modified file 'cppunit2/include/cpptl/config.h' | |||
494 | --- cppunit2/include/cpptl/config.h 2007-08-15 09:20:57 +0000 | |||
495 | +++ cppunit2/include/cpptl/config.h 2009-03-12 21:42:38 +0000 | |||
496 | @@ -274,7 +274,7 @@ | |||
497 | 274 | 274 | ||
498 | 275 | template<class T> | 275 | template<class T> |
499 | 276 | inline void | 276 | inline void |
501 | 277 | swap( T &left, T &right ) | 277 | trivialSwap( T &left, T &right ) |
502 | 278 | { | 278 | { |
503 | 279 | T temp( left ); | 279 | T temp( left ); |
504 | 280 | left = right; | 280 | left = right; |
505 | 281 | 281 | ||
506 | === modified file 'cppunit2/include/cpptl/conststring.h' | |||
507 | --- cppunit2/include/cpptl/conststring.h 2005-11-08 20:44:55 +0000 | |||
508 | +++ cppunit2/include/cpptl/conststring.h 2009-03-12 21:42:38 +0000 | |||
509 | @@ -891,8 +891,8 @@ | |||
510 | 891 | inline void | 891 | inline void |
511 | 892 | ConstString::swap( ConstString &other ) | 892 | ConstString::swap( ConstString &other ) |
512 | 893 | { | 893 | { |
515 | 894 | CppTL::swap( length_, other.length_ ); | 894 | CppTL::trivialSwap( length_, other.length_ ); |
516 | 895 | CppTL::swap( buffer_, other.buffer_ ); | 895 | CppTL::trivialSwap( buffer_, other.buffer_ ); |
517 | 896 | } | 896 | } |
518 | 897 | 897 | ||
519 | 898 | 898 | ||
520 | @@ -1098,9 +1098,9 @@ | |||
521 | 1098 | inline void | 1098 | inline void |
522 | 1099 | StringBuffer::swap( StringBuffer &other ) | 1099 | StringBuffer::swap( StringBuffer &other ) |
523 | 1100 | { | 1100 | { |
527 | 1101 | CppTL::swap( capacity_, other.capacity_ ); | 1101 | CppTL::trivialSwap( capacity_, other.capacity_ ); |
528 | 1102 | CppTL::swap( length_, other.length_ ); | 1102 | CppTL::trivialSwap( length_, other.length_ ); |
529 | 1103 | CppTL::swap( buffer_, other.buffer_ ); | 1103 | CppTL::trivialSwap( buffer_, other.buffer_ ); |
530 | 1104 | } | 1104 | } |
531 | 1105 | 1105 | ||
532 | 1106 | 1106 | ||
533 | 1107 | 1107 | ||
534 | === modified file 'cppunit2/include/cpptl/intrusiveptr.h' | |||
535 | --- cppunit2/include/cpptl/intrusiveptr.h 2006-09-06 17:23:26 +0000 | |||
536 | +++ cppunit2/include/cpptl/intrusiveptr.h 2009-03-12 21:42:38 +0000 | |||
537 | @@ -103,7 +103,7 @@ | |||
538 | 103 | 103 | ||
539 | 104 | void swap( ThisType &other ) | 104 | void swap( ThisType &other ) |
540 | 105 | { | 105 | { |
542 | 106 | CppTL::swap( p_, other.p_ ); | 106 | CppTL::trivialSwap( p_, other.p_ ); |
543 | 107 | } | 107 | } |
544 | 108 | 108 | ||
545 | 109 | ThisType &operator =( const ThisType &other ) | 109 | ThisType &operator =( const ThisType &other ) |
546 | 110 | 110 | ||
547 | === modified file 'cppunit2/include/cpptl/scopedptr.h' | |||
548 | --- cppunit2/include/cpptl/scopedptr.h 2005-07-04 06:09:30 +0000 | |||
549 | +++ cppunit2/include/cpptl/scopedptr.h 2009-03-12 21:42:38 +0000 | |||
550 | @@ -23,7 +23,7 @@ | |||
551 | 23 | 23 | ||
552 | 24 | void swap( SelfType &other ) | 24 | void swap( SelfType &other ) |
553 | 25 | { | 25 | { |
555 | 26 | CppTL::swap( p_, other.p_ ); | 26 | CppTL::trivialSwap( p_, other.p_ ); |
556 | 27 | } | 27 | } |
557 | 28 | 28 | ||
558 | 29 | void reset( PointeeType *p = 0 ) | 29 | void reset( PointeeType *p = 0 ) |
559 | 30 | 30 | ||
560 | === modified file 'cppunit2/include/cpput/extendeddata.h' | |||
561 | --- cppunit2/include/cpput/extendeddata.h 2006-09-03 05:15:49 +0000 | |||
562 | +++ cppunit2/include/cpput/extendeddata.h 2008-12-25 17:01:58 +0000 | |||
563 | @@ -15,7 +15,7 @@ | |||
564 | 15 | * \code | 15 | * \code |
565 | 16 | * class SomeClass : public TestExtendedDataFactory { | 16 | * class SomeClass : public TestExtendedDataFactory { |
566 | 17 | * public: | 17 | * public: |
568 | 18 | * static void enrichTest( Test &test ) { | 18 | * static void enrichTest( MetaData &test ) { |
569 | 19 | * CppUT::TestExtendedDataHelper( test )( describe( "Test conversion" ), | 19 | * CppUT::TestExtendedDataHelper( test )( describe( "Test conversion" ), |
570 | 20 | * timeOut( 30.0 ), | 20 | * timeOut( 30.0 ), |
571 | 21 | * depends( "testInit" ) ); | 21 | * depends( "testInit" ) ); |
572 | @@ -26,7 +26,7 @@ | |||
573 | 26 | * The above code sample is equivalent to: | 26 | * The above code sample is equivalent to: |
574 | 27 | * | 27 | * |
575 | 28 | * \code | 28 | * \code |
577 | 29 | * static void enrichTest( Test &test ) { | 29 | * static void enrichTest( MetaData &test ) { |
578 | 30 | * test.setDescription( "Test conversion" ); | 30 | * test.setDescription( "Test conversion" ); |
579 | 31 | * test.setTimeOut( 30.0 ); | 31 | * test.setTimeOut( 30.0 ); |
580 | 32 | * test.setDependenciesFromPackedString( "testInit" ); | 32 | * test.setDependenciesFromPackedString( "testInit" ); |
581 | @@ -41,13 +41,13 @@ | |||
582 | 41 | class TestExtendedDataHelper | 41 | class TestExtendedDataHelper |
583 | 42 | { | 42 | { |
584 | 43 | public: | 43 | public: |
586 | 44 | TestExtendedDataHelper( Test &test ); | 44 | TestExtendedDataHelper( MetaData &test ); |
587 | 45 | virtual ~TestExtendedDataHelper(); | 45 | virtual ~TestExtendedDataHelper(); |
588 | 46 | 46 | ||
590 | 47 | Test &operator()( const TestExtendedData &data ) const; | 47 | MetaData &operator()( const TestExtendedData &data ) const; |
591 | 48 | 48 | ||
592 | 49 | private: | 49 | private: |
594 | 50 | Test &test_; | 50 | MetaData &test_; |
595 | 51 | }; | 51 | }; |
596 | 52 | 52 | ||
597 | 53 | 53 | ||
598 | @@ -58,7 +58,7 @@ | |||
599 | 58 | public: | 58 | public: |
600 | 59 | virtual ~TestExtendedData(); | 59 | virtual ~TestExtendedData(); |
601 | 60 | 60 | ||
603 | 61 | virtual void apply( Test &test ) const = 0; | 61 | virtual void apply( MetaData &test ) const = 0; |
604 | 62 | 62 | ||
605 | 63 | TestExtendedDataList operator ,( const TestExtendedData &other ) const; | 63 | TestExtendedDataList operator ,( const TestExtendedData &other ) const; |
606 | 64 | }; | 64 | }; |
607 | @@ -66,13 +66,22 @@ | |||
608 | 66 | 66 | ||
609 | 67 | /*! \ingroup group_testfixture | 67 | /*! \ingroup group_testfixture |
610 | 68 | */ | 68 | */ |
611 | 69 | class CPPUT_API NoTestExtendedData : public TestExtendedData | ||
612 | 70 | { | ||
613 | 71 | public: // overridden from TestExtendedData | ||
614 | 72 | void apply( MetaData &test ) const; | ||
615 | 73 | }; | ||
616 | 74 | |||
617 | 75 | |||
618 | 76 | /*! \ingroup group_testfixture | ||
619 | 77 | */ | ||
620 | 69 | class TestExtendedDataList : public TestExtendedData | 78 | class TestExtendedDataList : public TestExtendedData |
621 | 70 | { | 79 | { |
622 | 71 | public: | 80 | public: |
623 | 72 | TestExtendedDataList( const TestExtendedData &left, | 81 | TestExtendedDataList( const TestExtendedData &left, |
624 | 73 | const TestExtendedData &right ); | 82 | const TestExtendedData &right ); |
625 | 74 | public: // overridden from TestExtendedData | 83 | public: // overridden from TestExtendedData |
627 | 75 | void apply( Test &test ) const; | 84 | void apply( MetaData &test ) const; |
628 | 76 | 85 | ||
629 | 77 | private: | 86 | private: |
630 | 78 | const TestExtendedData &left_; | 87 | const TestExtendedData &left_; |
631 | @@ -88,7 +97,7 @@ | |||
632 | 88 | DescriptionData( const std::string &description ); | 97 | DescriptionData( const std::string &description ); |
633 | 89 | 98 | ||
634 | 90 | public: // overridden from TestExtendedData | 99 | public: // overridden from TestExtendedData |
636 | 91 | void apply( Test &test ) const; | 100 | void apply( MetaData &test ) const; |
637 | 92 | 101 | ||
638 | 93 | private: | 102 | private: |
639 | 94 | std::string description_; | 103 | std::string description_; |
640 | @@ -103,7 +112,7 @@ | |||
641 | 103 | TimeOutData( double timeOutInSeconds ); | 112 | TimeOutData( double timeOutInSeconds ); |
642 | 104 | 113 | ||
643 | 105 | public: // overridden from TestExtendedData | 114 | public: // overridden from TestExtendedData |
645 | 106 | void apply( Test &test ) const; | 115 | void apply( MetaData &test ) const; |
646 | 107 | 116 | ||
647 | 108 | private: | 117 | private: |
648 | 109 | double timeOutInSeconds_; | 118 | double timeOutInSeconds_; |
649 | @@ -118,7 +127,7 @@ | |||
650 | 118 | DependenciesData( const std::string &dependencies ); | 127 | DependenciesData( const std::string &dependencies ); |
651 | 119 | 128 | ||
652 | 120 | public: // overridden from TestExtendedData | 129 | public: // overridden from TestExtendedData |
654 | 121 | void apply( Test &test ) const; | 130 | void apply( MetaData &test ) const; |
655 | 122 | private: | 131 | private: |
656 | 123 | std::string dependencies_; | 132 | std::string dependencies_; |
657 | 124 | }; | 133 | }; |
658 | @@ -132,7 +141,7 @@ | |||
659 | 132 | GroupData( const std::string &groupName ); | 141 | GroupData( const std::string &groupName ); |
660 | 133 | 142 | ||
661 | 134 | public: // overridden from TestExtendedData | 143 | public: // overridden from TestExtendedData |
663 | 135 | void apply( Test &test ) const; | 144 | void apply( MetaData &test ) const; |
664 | 136 | private: | 145 | private: |
665 | 137 | std::string groupName_; | 146 | std::string groupName_; |
666 | 138 | }; | 147 | }; |
667 | @@ -149,7 +158,7 @@ | |||
668 | 149 | 158 | ||
669 | 150 | static TimeOutData timeOut( double timeOutInSeconds ); | 159 | static TimeOutData timeOut( double timeOutInSeconds ); |
670 | 151 | 160 | ||
672 | 152 | static DependenciesData depends( const std::string &dependencies ); | 161 | static DependenciesData depends( const std::string &dependency ); |
673 | 153 | 162 | ||
674 | 154 | static GroupData group( const std::string &groupName ); | 163 | static GroupData group( const std::string &groupName ); |
675 | 155 | }; | 164 | }; |
676 | 156 | 165 | ||
677 | === modified file 'cppunit2/include/cpput/forwards.h' | |||
678 | --- cppunit2/include/cpput/forwards.h 2008-07-13 06:19:20 +0000 | |||
679 | +++ cppunit2/include/cpput/forwards.h 2008-12-21 17:51:13 +0000 | |||
680 | @@ -7,18 +7,21 @@ | |||
681 | 7 | namespace CppUT { | 7 | namespace CppUT { |
682 | 8 | 8 | ||
683 | 9 | class AbortingAssertionException; | 9 | class AbortingAssertionException; |
686 | 10 | class AbstractTestCase; | 10 | class TestCase; |
685 | 11 | class AbstractTestSuite; | ||
687 | 12 | class Message; | 11 | class Message; |
688 | 13 | class StandardTestExceptionGuard; | 12 | class StandardTestExceptionGuard; |
691 | 14 | class Test; | 13 | class MetaData; |
692 | 15 | class TestCase; | 14 | class TestMeta; |
693 | 16 | class TestExtendedData; | 15 | class TestExtendedData; |
694 | 17 | class TestExtendedDataList; | 16 | class TestExtendedDataList; |
695 | 18 | class ExceptionGuardElement; | 17 | class ExceptionGuardElement; |
696 | 19 | class ExceptionGuard; | 18 | class ExceptionGuard; |
699 | 20 | class TestSuite; | 19 | |
700 | 21 | class TestVisitor; | 20 | // registry.h |
701 | 21 | class Registry; | ||
702 | 22 | class StaticSuite; | ||
703 | 23 | class Suite; | ||
704 | 24 | class SuiteMeta; | ||
705 | 22 | 25 | ||
706 | 23 | // testinfo.h | 26 | // testinfo.h |
707 | 24 | class CheckerResult; | 27 | class CheckerResult; |
708 | @@ -36,12 +39,10 @@ | |||
709 | 36 | typedef CppTL::ConstString ResourceName; | 39 | typedef CppTL::ConstString ResourceName; |
710 | 37 | 40 | ||
711 | 38 | // for ... | 41 | // for ... |
714 | 39 | typedef CppTL::IntrusivePtr<AbstractTestCase> AbstractTestCasePtr; | 42 | typedef CppTL::IntrusivePtr<TestCase> TestCasePtr; |
713 | 40 | typedef CppTL::IntrusivePtr<AbstractTestSuite> AbstractTestSuitePtr; | ||
715 | 41 | typedef CppTL::IntrusivePtr<ExceptionGuardElement> ExceptionGuardElementPtr; | 43 | typedef CppTL::IntrusivePtr<ExceptionGuardElement> ExceptionGuardElementPtr; |
717 | 42 | typedef CppTL::IntrusivePtr<Test> TestPtr; | 44 | //typedef CppTL::IntrusivePtr<MetaData> TestPtr; |
718 | 43 | typedef CppTL::IntrusivePtr<TestInfo> TestInfoPtr; | 45 | typedef CppTL::IntrusivePtr<TestInfo> TestInfoPtr; |
719 | 44 | typedef CppTL::IntrusivePtr<TestSuite> TestSuitePtr; | ||
720 | 45 | typedef CppTL::IntrusivePtr<TestResultUpdater> TestResultUpdaterPtr; | 46 | typedef CppTL::IntrusivePtr<TestResultUpdater> TestResultUpdaterPtr; |
721 | 46 | 47 | ||
722 | 47 | // for resource.h | 48 | // for resource.h |
723 | 48 | 49 | ||
724 | === added file 'cppunit2/include/cpput/interface.h' | |||
725 | --- cppunit2/include/cpput/interface.h 1970-01-01 00:00:00 +0000 | |||
726 | +++ cppunit2/include/cpput/interface.h 2008-12-20 10:45:17 +0000 | |||
727 | @@ -0,0 +1,119 @@ | |||
728 | 1 | #ifndef CPPUT_INTERFACE_INCLUDED_H | ||
729 | 2 | # define CPPUT_INTERFACE_INCLUDED_H | ||
730 | 3 | |||
731 | 4 | namespace CppUT { | ||
732 | 5 | |||
733 | 6 | /** Minimized and simple interface that expose all user oriented features. | ||
734 | 7 | * All implementation details are hidden behind pimpl idiom. | ||
735 | 8 | * Tests discovery: | ||
736 | 9 | * - list all tests | ||
737 | 10 | * - greping by test name, with stars matching | ||
738 | 11 | * Adding a test factory: | ||
739 | 12 | * - C function | ||
740 | 13 | * - Macro fixture | ||
741 | 14 | * - Polymorphic fixture | ||
742 | 15 | * Executing a list of test | ||
743 | 16 | * - events on test execution | ||
744 | 17 | * - list of all results | ||
745 | 18 | * Writing tests: | ||
746 | 19 | * - assertions | ||
747 | 20 | * - string converter | ||
748 | 21 | * - equality comparison | ||
749 | 22 | * => prefer predicates instead of operator customization (but may still be useful). | ||
750 | 23 | * - using resources | ||
751 | 24 | * Resources factory: | ||
752 | 25 | * - declaring resources | ||
753 | 26 | * | ||
754 | 27 | * - Major refactoring: | ||
755 | 28 | * Takes down the registry and replace it with a test case registry | ||
756 | 29 | * => we next to register factory for test case, not for test suite | ||
757 | 30 | * => test suite becomes only organizational element likes group | ||
758 | 31 | * => test suite just have a name & a parent suite name | ||
759 | 32 | |||
760 | 33 | 1) Split TestCase into | ||
761 | 34 | - TestMeta | ||
762 | 35 | => all description stuff: | ||
763 | 36 | - Test base class interface | ||
764 | 37 | - requireResource() | ||
765 | 38 | - factory function to create TestCase instance | ||
766 | 39 | - TestCase | ||
767 | 40 | => all behavior stuffs: | ||
768 | 41 | - virtual setUp/runTest/tearDown | ||
769 | 42 | 2) LightTestRunner | ||
770 | 43 | - accept TestMeta as input, not Test | ||
771 | 44 | |||
772 | 45 | How to proceed: | ||
773 | 46 | Step 1: introducing the test case factory | ||
774 | 47 | 1) Rename TestCase to TestMeta | ||
775 | 48 | 2) Change fixture factory to accept a factory for the fixture instead of an instance | ||
776 | 49 | 3) Introduce new TestCase class with setUp/run/tearDown | ||
777 | 50 | 4) Change parent class of subclass of TestMeta to TestCase and | ||
778 | 51 | create the TestMeta using makeFixtureTestCase | ||
779 | 52 | |||
780 | 53 | How to handle abstract test case: | ||
781 | 54 | - test may be defined in abstract base class | ||
782 | 55 | => fixture factory is only available if fixture was instantiated. | ||
783 | 56 | conclusion: | ||
784 | 57 | Subclassing need to be reworked to: | ||
785 | 58 | - instantiate the test case for real when a concrete derived class exist | ||
786 | 59 | - store an abstract test meta in suite | ||
787 | 60 | - materialize on concrete class | ||
788 | 61 | |||
789 | 62 | |||
790 | 63 | Need to separate Suite from TestMeta. | ||
791 | 64 | => break the inheritance, only test cases are runnable | ||
792 | 65 | |||
793 | 66 | Go for minimal test suite for now: | ||
794 | 67 | - has a name | ||
795 | 68 | - may have a parent test suite | ||
796 | 69 | - may have child test suites | ||
797 | 70 | - may have TestCaseMeta | ||
798 | 71 | |||
799 | 72 | How and where are suite stored ? | ||
800 | 73 | => want to make path separator configurable | ||
801 | 74 | => this means that static parent/child relationship must be stored | ||
802 | 75 | => but interpretation occurs at run-time | ||
803 | 76 | => need to keep a list of TestMeta associated to a suite | ||
804 | 77 | |||
805 | 78 | |||
806 | 79 | |||
807 | 80 | */ | ||
808 | 81 | |||
809 | 82 | |||
810 | 83 | /// Parent suite macro below can be implemented as follow: | ||
811 | 84 | /// Alls tests between BEGIN / END are registered in the specified suite. | ||
812 | 85 | /// @param name use '/' to separate parent and child suite | ||
813 | 86 | /// Starts the name with '/' to make the suite a root suite visible to all. | ||
814 | 87 | /// Notes: this can be implemented as a set of nested anonymous namespace: | ||
815 | 88 | /// using CppUT::parentSuite; | ||
816 | 89 | /// namespace { // CPPUT_BEGIN_SUITE( "Trading" ) | ||
817 | 90 | /// const char *currentSuite = "Trading"; | ||
818 | 91 | /// namespace { // CPPUT_BEGIN_SUITE( "Forex" ) | ||
819 | 92 | /// const char *currentSuite = "Forex"; | ||
820 | 93 | /// } // CPPUT_END_SUITE | ||
821 | 94 | /// } // CPPUT_END_SUITE | ||
822 | 95 | |||
823 | 96 | |||
824 | 97 | // Parent Suite Declaration | ||
825 | 98 | #define CPPUT_SET_DEFAULT_SUITE( name ) | ||
826 | 99 | #define CPPUT_SUITE( name ) | ||
827 | 100 | #define CPPUT_NESTED_SUITE( name ) | ||
828 | 101 | #define CPPUT_END_NESTED_SUITE | ||
829 | 102 | #define CPPUT_END_SUITE | ||
830 | 103 | |||
831 | 104 | // Parenting suite | ||
832 | 105 | #define CPPUT_PARENT_SUITE( parentName, childName ) | ||
833 | 106 | |||
834 | 107 | // Plain C function | ||
835 | 108 | #define CPPUT_REGISTER_TEST_FUNCTION( testFunction ) | ||
836 | 109 | #define CPPUT_TEST( testFunctionName ) | ||
837 | 110 | |||
838 | 111 | // Lightweight fixture | ||
839 | 112 | #define CPPUT_TEST_LIGHT_FIXTURE( FixtureType, testName ) | ||
840 | 113 | #define CPPUT_TEST_LIGHT_FIXTURE_WITH_SPECIFICS( FixtureType, testName, specifics ) | ||
841 | 114 | |||
842 | 115 | } // namespace CppUT | ||
843 | 116 | |||
844 | 117 | |||
845 | 118 | |||
846 | 119 | #endif // CPPUT_INTERFACE_INCLUDED_H | ||
847 | 0 | 120 | ||
848 | === modified file 'cppunit2/include/cpput/lightfixture.h' | |||
849 | --- cppunit2/include/cpput/lightfixture.h 2007-08-15 15:48:29 +0000 | |||
850 | +++ cppunit2/include/cpput/lightfixture.h 2009-03-13 20:59:56 +0000 | |||
851 | @@ -6,38 +6,54 @@ | |||
852 | 6 | # include "testcase.h" | 6 | # include "testcase.h" |
853 | 7 | # include "registry.h" | 7 | # include "registry.h" |
854 | 8 | 8 | ||
887 | 9 | /*! \bief Implementation detail for light fixture: make class name. | 9 | namespace CppUT { |
888 | 10 | */ | 10 | namespace Impl { |
889 | 11 | #define _CPPUT_LF_CLASS( FixtureType, testName ) \ | 11 | inline TestMeta |
890 | 12 | FixtureType##_##testName | 12 | declareFixtureTestCase( TestCaseFactoryFn factory, |
891 | 13 | 13 | const char *fixtureSuiteName, | |
892 | 14 | /*! \brief Implementation detail for light fixture. | 14 | const char *testCaseName, |
893 | 15 | * Implementation Notes: a class deriving from the \c FixtureType is created | 15 | Suite &parentSuite ) |
894 | 16 | * for each test. The user actually implement the member function named after \c testName. | 16 | { |
895 | 17 | */ | 17 | TestMeta test( factory, testCaseName ); |
896 | 18 | #define _CPPUT_TEST_LIGHT_FIXTURE_IMPL( FixtureType, testName, specificsCode ) \ | 18 | parentSuite.makeNestedSuite( fixtureSuiteName ).add( test ); |
897 | 19 | class _CPPUT_LF_CLASS(FixtureType,testName) : public FixtureType \ | 19 | return test; |
898 | 20 | , public ::CppUT::TestExtendedDataFactory \ | 20 | } |
899 | 21 | { \ | 21 | |
900 | 22 | public: \ | 22 | inline TestMeta |
901 | 23 | static ::CppUT::TestPtr cpputMakeTest() /* TestFactory */ \ | 23 | declareFixtureTestCase( TestCaseFactoryFn factory, |
902 | 24 | { \ | 24 | const char *fixtureSuiteName, |
903 | 25 | ::CppUT::TestPtr test( ::CppUT::makeTestCase( \ | 25 | const char *testCaseName, |
904 | 26 | &_CPPUT_LF_CLASS(FixtureType,testName)::cpputTest, #testName ) ); \ | 26 | const ::CppUT::TestExtendedData &metaData, |
905 | 27 | specificsCode \ | 27 | Suite &parentSuite ) |
906 | 28 | return test; \ | 28 | { |
907 | 29 | } \ | 29 | MetaData testMetaData( testCaseName ); |
908 | 30 | public: \ | 30 | metaData.apply( testMetaData ); |
909 | 31 | static void cpputTest() \ | 31 | TestMeta test( factory, testMetaData ); |
910 | 32 | { \ | 32 | parentSuite.makeNestedSuite( fixtureSuiteName ).add( test ); |
911 | 33 | _CPPUT_LF_CLASS(FixtureType,testName) fixture; \ | 33 | return test; |
912 | 34 | fixture.testName(); \ | 34 | } |
913 | 35 | } \ | 35 | } |
914 | 36 | void testName(); \ | 36 | } |
915 | 37 | }; \ | 37 | |
916 | 38 | CPPUT_REGISTER_TESTFACTORY_IN( &_CPPUT_LF_CLASS(FixtureType,testName)::cpputMakeTest, \ | 38 | #define _CPPUT_FIXTURE_TEST_COMMON( FixtureType, testFunction ) \ |
917 | 39 | #FixtureType ); \ | 39 | class FixtureType##testFunction : public FixtureType \ |
918 | 40 | void _CPPUT_LF_CLASS(FixtureType,testName)::testName() | 40 | { \ |
919 | 41 | static ::CppUT::TestMeta testMeta; \ | ||
920 | 42 | public: \ | ||
921 | 43 | static ::CppUT::TestCase *cpputFactory() \ | ||
922 | 44 | { \ | ||
923 | 45 | return new FixtureType##testFunction(); \ | ||
924 | 46 | } \ | ||
925 | 47 | \ | ||
926 | 48 | public: /* overriden from CppUT::TestCase */ \ | ||
927 | 49 | virtual void run(); \ | ||
928 | 50 | }; \ | ||
929 | 51 | \ | ||
930 | 52 | ::CppUT::TestMeta FixtureType##testFunction::testMeta( \ | ||
931 | 53 | ::CppUT::Impl::declareFixtureTestCase( \ | ||
932 | 54 | &FixtureType##testFunction::cpputFactory, \ | ||
933 | 55 | #FixtureType, \ | ||
934 | 56 | #testFunction, \ | ||
935 | 41 | 57 | ||
936 | 42 | /*! \brief Declare and register a light fixture test case. | 58 | /*! \brief Declare and register a light fixture test case. |
937 | 43 | * The test case is named after the function name and register in the suite named after | 59 | * The test case is named after the function name and register in the suite named after |
938 | @@ -57,8 +73,12 @@ | |||
939 | 57 | * } | 73 | * } |
940 | 58 | * \endCode | 74 | * \endCode |
941 | 59 | */ | 75 | */ |
944 | 60 | #define CPPUT_TEST_LIGHT_FIXTURE( FixtureType, testName ) \ | 76 | #define CPPUT_FIXTURE_TEST( FixtureType, testFunction ) \ |
945 | 61 | _CPPUT_TEST_LIGHT_FIXTURE_IMPL( FixtureType, testName, (void)0; ) | 77 | _CPPUT_FIXTURE_TEST_COMMON( FixtureType, testFunction ) \ |
946 | 78 | CPPUT_CURRENT_SUITE() ) ); \ | ||
947 | 79 | \ | ||
948 | 80 | void FixtureType##testFunction::run() | ||
949 | 81 | |||
950 | 62 | 82 | ||
951 | 63 | /*! \brief Declare and register a light fixture test case with extended data. | 83 | /*! \brief Declare and register a light fixture test case with extended data. |
952 | 64 | * The test case is named after the function name and register in the suite named after | 84 | * The test case is named after the function name and register in the suite named after |
953 | @@ -78,19 +98,16 @@ | |||
954 | 78 | * } | 98 | * } |
955 | 79 | * \endCode | 99 | * \endCode |
956 | 80 | */ | 100 | */ |
970 | 81 | #define CPPUT_TEST_LIGHT_FIXTURE_WITH_SPECIFICS( FixtureType, testName, specifics ) \ | 101 | #define CPPUT_FIXTURE_TEST_WITH_META( FixtureType, testFunction, metaData ) \ |
971 | 82 | _CPPUT_TEST_LIGHT_FIXTURE_IMPL( FixtureType, testName, \ | 102 | _CPPUT_FIXTURE_TEST_COMMON( FixtureType, testFunction ) \ |
972 | 83 | ( specifics ).apply( *test ); ) | 103 | metaData, \ |
973 | 84 | 104 | CPPUT_CURRENT_SUITE() ) ); \ | |
974 | 85 | /*! \brief register the light fixture suite to the default Registry suite. | 105 | \ |
975 | 86 | */ | 106 | void FixtureType##testFunction::run() |
976 | 87 | #define CPPUT_REGISTER_LIGHT_FIXTURE( FixtureType ) \ | 107 | |
977 | 88 | CPPUT_REGISTER_SUITE_RELATIONSHIP_TO_DEFAULT( #FixtureType ) | 108 | #define CPPUT_EXPORTED_FIXTURE_SUITE( FixtureType, exportedVariableName ) \ |
978 | 89 | 109 | extern ::CppUT::SuiteMeta exportedVariableName( \ | |
979 | 90 | /*! \brief register the light fixture suite to the specified Registry suite. | 110 | CPPUT_CURRENT_SUITE().makeNestedSuite( #FixtureType ) ) |
967 | 91 | */ | ||
968 | 92 | #define CPPUT_REGISTER_LIGHT_FIXTURE_IN( FixtureType, parentSuiteName ) \ | ||
969 | 93 | CPPUT_REGISTER_SUITE_RELATIONSHIP( #FixtureType, parentSuiteName ) | ||
980 | 94 | 111 | ||
981 | 95 | 112 | ||
982 | 96 | #endif // CPPUT_LIGHTFIXTURE_H_INCLUDED | 113 | #endif // CPPUT_LIGHTFIXTURE_H_INCLUDED |
983 | 97 | 114 | ||
984 | === modified file 'cppunit2/include/cpput/lighttestrunner.h' | |||
985 | --- cppunit2/include/cpput/lighttestrunner.h 2008-12-18 22:15:59 +0000 | |||
986 | +++ cppunit2/include/cpput/lighttestrunner.h 2008-12-21 13:50:58 +0000 | |||
987 | @@ -3,6 +3,7 @@ | |||
988 | 3 | 3 | ||
989 | 4 | # include <cpput/forwards.h> | 4 | # include <cpput/forwards.h> |
990 | 5 | # include <cpput/testinfo.h> | 5 | # include <cpput/testinfo.h> |
991 | 6 | # include <cpput/registry.h> | ||
992 | 6 | # include <cpptl/intrusiveptr.h> | 7 | # include <cpptl/intrusiveptr.h> |
993 | 7 | # include <deque> | 8 | # include <deque> |
994 | 8 | 9 | ||
995 | @@ -18,9 +19,9 @@ | |||
996 | 18 | 19 | ||
997 | 19 | virtual ~LightTestRunner(); | 20 | virtual ~LightTestRunner(); |
998 | 20 | 21 | ||
1000 | 21 | void addTest( const TestPtr &test ); | 22 | void addSuite( const Suite &suite ); |
1001 | 22 | 23 | ||
1003 | 23 | bool runAllTests(); | 24 | bool runTests(); |
1004 | 24 | 25 | ||
1005 | 25 | private: // overridden from TestResultUpdater | 26 | private: // overridden from TestResultUpdater |
1006 | 26 | virtual void addResultLog( const Json::Value &log ); | 27 | virtual void addResultLog( const Json::Value &log ); |
1007 | @@ -28,9 +29,8 @@ | |||
1008 | 28 | virtual void addResultAssertion( const Assertion &assertion ); | 29 | virtual void addResultAssertion( const Assertion &assertion ); |
1009 | 29 | 30 | ||
1010 | 30 | private: | 31 | private: |
1014 | 31 | void runTest( const TestPtr &test ); | 32 | void runTestSuite( const Suite &suite ); |
1015 | 32 | void runTestSuite( const TestSuitePtr &suite ); | 33 | void runTestCase( const TestMeta &testCase ); |
1013 | 33 | void runTestCase( const AbstractTestCasePtr &testCase ); | ||
1016 | 34 | CppTL::ConstString getTestPath() const; | 34 | CppTL::ConstString getTestPath() const; |
1017 | 35 | void reportFailure( const Assertion &failure ); | 35 | void reportFailure( const Assertion &failure ); |
1018 | 36 | void reportLog( const Json::Value &log ); | 36 | void reportLog( const Json::Value &log ); |
1019 | @@ -41,8 +41,8 @@ | |||
1020 | 41 | bool isLog_; | 41 | bool isLog_; |
1021 | 42 | }; | 42 | }; |
1022 | 43 | 43 | ||
1025 | 44 | typedef std::deque<TestPtr> Tests; | 44 | typedef std::deque<Suite> SuitesToRun; |
1026 | 45 | Tests tests_; | 45 | SuitesToRun suitesToRun_; |
1027 | 46 | typedef std::deque<CppTL::ConstString> TestPath; | 46 | typedef std::deque<CppTL::ConstString> TestPath; |
1028 | 47 | TestPath testPath_; | 47 | TestPath testPath_; |
1029 | 48 | CppTL::StringBuffer report_; | 48 | CppTL::StringBuffer report_; |
1030 | 49 | 49 | ||
1031 | === renamed file 'cppunit2/include/cpput/test.h' => 'cppunit2/include/cpput/metadata.h' | |||
1032 | --- cppunit2/include/cpput/test.h 2006-09-03 05:15:49 +0000 | |||
1033 | +++ cppunit2/include/cpput/metadata.h 2009-03-13 21:39:02 +0000 | |||
1034 | @@ -1,30 +1,37 @@ | |||
1037 | 1 | #ifndef CPPUT_TEST_H_INCLUDED | 1 | #ifndef CPPUT_METADATA_H_INCLUDED |
1038 | 2 | # define CPPUT_TEST_H_INCLUDED | 2 | # define CPPUT_METADATA_H_INCLUDED |
1039 | 3 | 3 | ||
1040 | 4 | # include <cpput/forwards.h> | 4 | # include <cpput/forwards.h> |
1041 | 5 | # include <json/value.h> | 5 | # include <json/value.h> |
1042 | 6 | # include <cpptl/conststring.h> | 6 | # include <cpptl/conststring.h> |
1043 | 7 | # include <cpptl/intrusiveptr.h> | 7 | # include <cpptl/intrusiveptr.h> |
1044 | 8 | # include <cpput/extendeddata.h> | ||
1045 | 8 | # include <string> | 9 | # include <string> |
1046 | 9 | 10 | ||
1047 | 10 | 11 | ||
1048 | 11 | namespace CppUT { | 12 | namespace CppUT { |
1049 | 12 | 13 | ||
1050 | 13 | class TestVisitor; | ||
1051 | 14 | |||
1052 | 15 | /*! This class represents the data about a test. | 14 | /*! This class represents the data about a test. |
1053 | 16 | * \ingroup group_testcases | 15 | * \ingroup group_testcases |
1054 | 17 | * | 16 | * |
1056 | 18 | * It is the base class of AbstractTestCase and AbstractTestSuite. | 17 | * It is the base class of TestMeta. |
1057 | 19 | */ | 18 | */ |
1059 | 20 | class CPPUT_API Test : public CppTL::IntrusiveCount | 19 | class CPPUT_API MetaData : public CppTL::IntrusiveCount |
1060 | 21 | { | 20 | { |
1061 | 22 | // ensure that this class can only be derived by AbstractTestCase and | ||
1062 | 23 | // AbstractTestSuite. | ||
1063 | 24 | friend class AbstractTestCase; | ||
1064 | 25 | friend class AbstractTestSuite; | ||
1065 | 26 | public: | 21 | public: |
1067 | 27 | virtual ~Test() | 22 | explicit MetaData( const std::string &name ) |
1068 | 23 | { | ||
1069 | 24 | info_["configuration/name"] = name; | ||
1070 | 25 | } | ||
1071 | 26 | |||
1072 | 27 | explicit MetaData( const std::string &name, | ||
1073 | 28 | const TestExtendedData &metaDataFactory ) | ||
1074 | 29 | { | ||
1075 | 30 | info_["configuration/name"] = name; | ||
1076 | 31 | metaDataFactory.apply( *this ); | ||
1077 | 32 | } | ||
1078 | 33 | |||
1079 | 34 | virtual ~MetaData() | ||
1080 | 28 | { | 35 | { |
1081 | 29 | } | 36 | } |
1082 | 30 | 37 | ||
1083 | @@ -68,13 +75,6 @@ | |||
1084 | 68 | return info_["configuration"]["groups"][index].asString(); | 75 | return info_["configuration"]["groups"][index].asString(); |
1085 | 69 | } | 76 | } |
1086 | 70 | 77 | ||
1087 | 71 | /// @warning You must never change the name of the test after | ||
1088 | 72 | /// registering the test or scheduling it for running. | ||
1089 | 73 | void setName( const std::string &name ) | ||
1090 | 74 | { | ||
1091 | 75 | info_["configuration/name"] = name; | ||
1092 | 76 | } | ||
1093 | 77 | |||
1094 | 78 | //OpenTest::PropertiesAccessor info() const | 78 | //OpenTest::PropertiesAccessor info() const |
1095 | 79 | //{ | 79 | //{ |
1096 | 80 | // return info_.accessor(); | 80 | // return info_.accessor(); |
1097 | @@ -87,28 +87,6 @@ | |||
1098 | 87 | // return info_; | 87 | // return info_; |
1099 | 88 | //} | 88 | //} |
1100 | 89 | 89 | ||
1101 | 90 | /// Returns \c true if the class is derived from AbstractTestSuite. | ||
1102 | 91 | bool isTestSuite() const | ||
1103 | 92 | { | ||
1104 | 93 | return !isTestCase(); | ||
1105 | 94 | } | ||
1106 | 95 | |||
1107 | 96 | virtual void accept( TestVisitor &visitor ) = 0; | ||
1108 | 97 | |||
1109 | 98 | /// Returns \c true if the class is derived from AbstractTestCase. | ||
1110 | 99 | virtual bool isTestCase() const = 0; | ||
1111 | 100 | |||
1112 | 101 | private: | ||
1113 | 102 | Test() | ||
1114 | 103 | { | ||
1115 | 104 | setName( "<undefined>" ); | ||
1116 | 105 | } | ||
1117 | 106 | |||
1118 | 107 | Test( const std::string &name ) | ||
1119 | 108 | { | ||
1120 | 109 | setName( name ); | ||
1121 | 110 | } | ||
1122 | 111 | |||
1123 | 112 | private: | 90 | private: |
1124 | 113 | Json::Value info_; | 91 | Json::Value info_; |
1125 | 114 | }; | 92 | }; |
1126 | @@ -116,4 +94,4 @@ | |||
1127 | 116 | 94 | ||
1128 | 117 | } // namespace CppUT | 95 | } // namespace CppUT |
1129 | 118 | 96 | ||
1131 | 119 | #endif // CPPUT_TEST_H_INCLUDED | 97 | #endif // CPPUT_METADATA_H_INCLUDED |
1132 | 120 | 98 | ||
1133 | === modified file 'cppunit2/include/cpput/parametrizedsource.h' | |||
1134 | --- cppunit2/include/cpput/parametrizedsource.h 2005-02-27 13:38:28 +0000 | |||
1135 | +++ cppunit2/include/cpput/parametrizedsource.h 2008-12-11 20:28:30 +0000 | |||
1136 | @@ -78,7 +78,7 @@ | |||
1137 | 78 | SuitePaths suitePath_; | 78 | SuitePaths suitePath_; |
1138 | 79 | }; | 79 | }; |
1139 | 80 | /* | 80 | /* |
1141 | 81 | class ParametrizedTestCase : public AbstractTestCase | 81 | class ParametrizedTestCase : public TestCase |
1142 | 82 | { | 82 | { |
1143 | 83 | public: | 83 | public: |
1144 | 84 | }; | 84 | }; |
1145 | 85 | 85 | ||
1146 | === modified file 'cppunit2/include/cpput/registry.h' | |||
1147 | --- cppunit2/include/cpput/registry.h 2007-08-15 09:20:57 +0000 | |||
1148 | +++ cppunit2/include/cpput/registry.h 2008-12-21 13:50:58 +0000 | |||
1149 | @@ -1,288 +1,248 @@ | |||
1438 | 1 | #ifndef CPPUT_REGISTRY_H_INCLUDED | 1 | #ifndef CPPUT_REGISTRY_H_INCLUDED |
1439 | 2 | # define CPPUT_REGISTRY_H_INCLUDED | 2 | # define CPPUT_REGISTRY_H_INCLUDED |
1440 | 3 | 3 | ||
1441 | 4 | # include <cpput/forwards.h> | 4 | # include <cpput/forwards.h> |
1442 | 5 | # include <cpptl/conststring.h> | 5 | # include <cpptl/conststring.h> |
1443 | 6 | # include <cpptl/functor.h> | 6 | # include <cpptl/functor.h> |
1444 | 7 | # include <deque> | 7 | # include <deque> |
1445 | 8 | # include <map> | 8 | # include <map> |
1446 | 9 | 9 | ||
1447 | 10 | 10 | namespace CppUT { | |
1448 | 11 | namespace CppUT { | 11 | namespace Impl { |
1449 | 12 | 12 | class RegistryImpl; | |
1450 | 13 | /*! \ingroup group_testregistry | 13 | class SuiteImpl; |
1451 | 14 | */ | 14 | |
1452 | 15 | typedef CppTL::Functor0R<TestPtr> TestFactory; | 15 | /// Creates a suite with the specified name and makes it the new default root suite. |
1453 | 16 | 16 | /// The suite is nested into the current default root suite if any, | |
1454 | 17 | /*! \ingroup group_testregistry | 17 | /// or the top level root suite otherwise. |
1455 | 18 | */ | 18 | /// @return Always \c NULL. |
1456 | 19 | typedef int TestFactoryId; | 19 | StaticSuite *makeAndSetDefaultRootSuite( const char *name ); |
1457 | 20 | 20 | ||
1458 | 21 | 21 | /// Sets the default root suite to the top level root suite. | |
1459 | 22 | /*! \ingroup group_testregistry | 22 | /// @return Always \c NULL. |
1460 | 23 | * Static registry for all tests. | 23 | StaticSuite *resetDefaultRootSuite(); |
1461 | 24 | * Any suite or test added to the registry by a dynamic library that contains test should | 24 | |
1462 | 25 | * be removed using remove(). Helper macros take carre of this. | 25 | /// Creates a suite with the specified name. |
1463 | 26 | */ | 26 | /// The suite is nested into the current default suite if any, |
1464 | 27 | class CPPUT_API Registry | 27 | /// or the top level root suite otherwise. |
1465 | 28 | { | 28 | /// @return Always \c NULL. |
1466 | 29 | public: | 29 | StaticSuite *makeNestedSuiteInDefaultRootSuite( const char *name ); |
1467 | 30 | static std::string defaultParentSuiteName(); | 30 | |
1468 | 31 | 31 | /// Makes \c suite a child of \c parentSuite. | |
1469 | 32 | static Registry &instance(); | 32 | /// \c suite is removed from its current parent and make |
1470 | 33 | 33 | /// a nested suite of \c parentSuite. | |
1471 | 34 | Registry(); | 34 | /// @return Always \c NULL. |
1472 | 35 | 35 | StaticSuite *reparentSuite( Suite &parentSuite, | |
1473 | 36 | void addChild( const std::string &parentSuiteName, | 36 | Suite &suite ); |
1474 | 37 | const std::string &childSuiteName ); | 37 | |
1475 | 38 | void addChildToDefault( const std::string &childSuiteName ); | 38 | |
1476 | 39 | 39 | SuiteMeta currentSuite(); | |
1477 | 40 | bool removeChild( const std::string &parentSuiteName, | 40 | } // namespace Impl |
1478 | 41 | const std::string &childSuiteName ); | 41 | |
1479 | 42 | 42 | // internal | |
1480 | 43 | TestFactoryId add( const std::string &parentSuiteName, | 43 | #define _CPPUT_DECLARE_ROOT_SUITE( name, factory ) \ |
1481 | 44 | const TestFactory &testFactory ); | 44 | static ::CppUT::StaticSuite * \ |
1482 | 45 | TestFactoryId add( const std::string &parentSuiteName, | 45 | CPPTL_MAKE_UNIQUE_NAME(cpputRootSuite) = \ |
1483 | 46 | TestPtr (*factory)() ); | 46 | ::CppUT::Impl::factory( name ) |
1484 | 47 | TestFactoryId add( const std::string &parentSuiteName, | 47 | |
1485 | 48 | TestPtr (*factory)( const std::string &suiteName ), | 48 | |
1486 | 49 | const std::string &suiteName = std::string("") ); | 49 | ///*! \ingroup group_testregistry |
1487 | 50 | 50 | class Suite | |
1488 | 51 | TestFactoryId addToDefault( const TestFactory &testFactory ); | 51 | { |
1489 | 52 | TestFactoryId addToDefault( TestPtr (*factory)() ); | 52 | friend class Impl::RegistryImpl; |
1490 | 53 | TestFactoryId addToDefault( TestPtr (*factory)( const std::string &suiteName ), | 53 | friend class SuiteMeta; |
1491 | 54 | const std::string &suiteName = std::string("") ); | 54 | public: |
1492 | 55 | 55 | /// Creates an invalid suite. | |
1493 | 56 | bool remove( TestFactoryId testFactoryId ); | 56 | Suite(); |
1494 | 57 | 57 | ||
1495 | 58 | TestSuitePtr createTests( const std::string &suiteName ) const; | 58 | /// Creates a new orphaned suite |
1496 | 59 | 59 | Suite( const std::string &name ); | |
1497 | 60 | TestSuitePtr createDefaultTests() const; | 60 | |
1498 | 61 | 61 | //Suite( const Suite &other ); | |
1499 | 62 | void addCreatedTests( const std::string &suiteName, | 62 | ~Suite(); |
1500 | 63 | const TestSuitePtr &suite ) const; | 63 | |
1501 | 64 | 64 | //Suite &operator =( const Suite &other ); | |
1502 | 65 | private: | 65 | |
1503 | 66 | void addChildSuite( const std::string &suiteName, | 66 | Suite parent() const; |
1504 | 67 | const TestSuitePtr &suite ) const; | 67 | |
1505 | 68 | 68 | bool isValid() const; | |
1506 | 69 | void addSuiteRegisteredTests( const std::string &suiteName, | 69 | |
1507 | 70 | const TestSuitePtr &suite ) const; | 70 | std::string name() const; |
1508 | 71 | 71 | ||
1509 | 72 | TestFactoryId nextFactoryId(); | 72 | int nestedSuiteCount() const; |
1510 | 73 | 73 | Suite nestedSuiteAt( int index ) const; | |
1511 | 74 | typedef std::pair<TestFactory, TestFactoryId> TestFactoryWithId; | 74 | Suite nestedSuiteByName( const std::string &name ) const; |
1512 | 75 | 75 | Suite makeNestedSuite( const std::string &name ); | |
1513 | 76 | typedef std::deque<TestFactoryWithId> TestFactories; | 76 | |
1514 | 77 | typedef std::map<CppTL::ConstString,TestFactories> TestFactoryRegistry; | 77 | int testCaseCount() const; |
1515 | 78 | TestFactoryRegistry registry_; | 78 | const TestMeta *testCaseAt( int index ) const; |
1516 | 79 | 79 | ||
1517 | 80 | typedef std::multimap<CppTL::ConstString,CppTL::ConstString> ParentChildRelationShips; | 80 | void add( const TestMeta &testCase ); |
1518 | 81 | ParentChildRelationShips relations_; | 81 | |
1519 | 82 | 82 | private: | |
1520 | 83 | typedef std::map<TestFactoryId,CppTL::ConstString> TestFactoryParentSuiteById; | 83 | Suite( Impl::SuiteImpl *suite ); |
1521 | 84 | TestFactoryParentSuiteById parentSuiteById_; | 84 | Impl::SuiteImpl *impl_; |
1522 | 85 | 85 | }; | |
1523 | 86 | TestFactoryId nextId_; | 86 | |
1524 | 87 | }; | 87 | |
1525 | 88 | 88 | /*! \ingroup group_testregistry | |
1526 | 89 | 89 | * \brief Static Suite description handle. | |
1527 | 90 | namespace Impl { | 90 | */ |
1528 | 91 | 91 | class SuiteMeta : public Suite | |
1529 | 92 | enum RegisterToNamedSuiteTag { | 92 | { |
1530 | 93 | registerToNamedSuite | 93 | friend class Impl::RegistryImpl; |
1531 | 94 | }; | 94 | public: |
1532 | 95 | 95 | ~SuiteMeta(); | |
1533 | 96 | } // namespace Impl | 96 | |
1534 | 97 | 97 | /// Returns the suite. | |
1535 | 98 | 98 | /// \internal Implementation detail of for CPPUT_CURRENT_SUITE(). | |
1536 | 99 | /*! \ingroup group_testregistry | 99 | SuiteMeta &operator()(); |
1537 | 100 | */ | 100 | |
1538 | 101 | template<class SuiteType> | 101 | private: |
1539 | 102 | class SuiteRegisterer | 102 | explicit SuiteMeta( Impl::SuiteImpl *impl ); |
1540 | 103 | { | 103 | }; |
1541 | 104 | public: | 104 | |
1542 | 105 | SuiteRegisterer() | 105 | |
1543 | 106 | { | 106 | /*! \ingroup group_testregistry |
1544 | 107 | testFactoryId_ = Registry::instance().addToDefault( &SuiteType::suite ); | 107 | * Static registry for all tests. |
1545 | 108 | } | 108 | * Any suite or test added to the registry by a dynamic library that contains test should |
1546 | 109 | 109 | * be removed using remove(). Helper macros take carre of this. | |
1547 | 110 | SuiteRegisterer( const std::string &suiteName ) | 110 | */ |
1548 | 111 | { | 111 | class CPPUT_API Registry |
1549 | 112 | testFactoryId_ = Registry::instance().addToDefault( &SuiteType::suite, | 112 | { |
1550 | 113 | suiteName ); | 113 | public: |
1551 | 114 | } | 114 | static Suite getRootSuite(); |
1552 | 115 | 115 | ||
1553 | 116 | SuiteRegisterer( Impl::RegisterToNamedSuiteTag, | 116 | static std::string dump(); |
1554 | 117 | const std::string &parentSuiteName ) | 117 | |
1555 | 118 | { | 118 | private: |
1556 | 119 | testFactoryId_ = Registry::instance().add( parentSuiteName, | 119 | |
1557 | 120 | &SuiteType::suite ); | 120 | // |
1558 | 121 | } | 121 | // static std::string defaultParentSuiteName(); |
1559 | 122 | 122 | // | |
1560 | 123 | SuiteRegisterer( Impl::RegisterToNamedSuiteTag, | 123 | // static Registry &instance(); |
1561 | 124 | const std::string &parentSuiteName, | 124 | // |
1562 | 125 | const std::string &suiteName ) | 125 | // Registry(); |
1563 | 126 | { | 126 | // |
1564 | 127 | testFactoryId_ = Registry::instance().add( parentSuiteName, | 127 | // void addChild( const std::string &parentSuiteName, |
1565 | 128 | &SuiteType::suite, | 128 | // const std::string &childSuiteName ); |
1566 | 129 | suiteName ); | 129 | // void addChildToDefault( const std::string &childSuiteName ); |
1567 | 130 | } | 130 | // |
1568 | 131 | 131 | // bool removeChild( const std::string &parentSuiteName, | |
1569 | 132 | ~SuiteRegisterer() | 132 | // const std::string &childSuiteName ); |
1570 | 133 | { | 133 | // |
1571 | 134 | Registry::instance().remove( testFactoryId_ ); | 134 | // TestFactoryId add( const std::string &parentSuiteName, |
1572 | 135 | } | 135 | // const TestFactory &testFactory ); |
1573 | 136 | 136 | // TestFactoryId add( const std::string &parentSuiteName, | |
1574 | 137 | protected: | 137 | // TestPtr (*factory)() ); |
1575 | 138 | SuiteRegisterer( TestFactoryId testFactoryId ): | 138 | // TestFactoryId add( const std::string &parentSuiteName, |
1576 | 139 | testFactoryId_( testFactoryId ) | 139 | // TestPtr (*factory)( const std::string &suiteName ), |
1577 | 140 | { | 140 | // const std::string &suiteName = std::string("") ); |
1578 | 141 | } | 141 | // |
1579 | 142 | 142 | // TestFactoryId addToDefault( const TestFactory &testFactory ); | |
1580 | 143 | private: | 143 | // TestFactoryId addToDefault( TestPtr (*factory)() ); |
1581 | 144 | TestFactoryId testFactoryId_; | 144 | // TestFactoryId addToDefault( TestPtr (*factory)( const std::string &suiteName ), |
1582 | 145 | }; | 145 | // const std::string &suiteName = std::string("") ); |
1583 | 146 | 146 | // | |
1584 | 147 | 147 | // bool remove( TestFactoryId testFactoryId ); | |
1585 | 148 | 148 | // | |
1586 | 149 | /*! \ingroup group_testregistry | 149 | // TestSuitePtr createTests( const std::string &suiteName ) const; |
1587 | 150 | */ | 150 | // |
1588 | 151 | #define CPPUT_REGISTER_NAMED_SUITE_TO_DEFAULT( TestFixtureType, suiteName ) \ | 151 | // TestSuitePtr createDefaultTests() const; |
1589 | 152 | static CppUT::SuiteRegisterer< TestFixtureType > \ | 152 | // |
1590 | 153 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRegisterer )(suiteName); | 153 | // void addCreatedTests( const std::string &suiteName, |
1591 | 154 | 154 | // const TestSuitePtr &suite ) const; | |
1592 | 155 | 155 | // | |
1593 | 156 | /*! \ingroup group_testregistry | 156 | //private: |
1594 | 157 | */ | 157 | // void addChildSuite( const std::string &suiteName, |
1595 | 158 | #define CPPUT_REGISTER_SUITE_TO_DEFAULT( TestFixtureType ) \ | 158 | // const TestSuitePtr &suite ) const; |
1596 | 159 | static CppUT::SuiteRegisterer< TestFixtureType > \ | 159 | // |
1597 | 160 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRegisterer ); | 160 | // void addSuiteRegisteredTests( const std::string &suiteName, |
1598 | 161 | 161 | // const TestSuitePtr &suite ) const; | |
1599 | 162 | 162 | // | |
1600 | 163 | /*! \ingroup group_testregistry | 163 | // TestFactoryId nextFactoryId(); |
1601 | 164 | */ | 164 | // |
1602 | 165 | #define CPPUT_REGISTER_SUITE_IN( TestFixtureType, parentSuiteName ) \ | 165 | // typedef std::pair<TestFactory, TestFactoryId> TestFactoryWithId; |
1603 | 166 | static CppUT::SuiteRegisterer< TestFixtureType > \ | 166 | // |
1604 | 167 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRegisterer)( \ | 167 | // typedef std::deque<TestFactoryWithId> TestFactories; |
1605 | 168 | CppUT::Impl::registerToNamedSuite, \ | 168 | // typedef std::map<CppTL::ConstString,TestFactories> TestFactoryRegistry; |
1606 | 169 | parentSuiteName ); | 169 | // TestFactoryRegistry registry_; |
1607 | 170 | 170 | // | |
1608 | 171 | 171 | // typedef std::multimap<CppTL::ConstString,CppTL::ConstString> ParentChildRelationShips; | |
1609 | 172 | /*! \ingroup group_testregistry | 172 | // ParentChildRelationShips relations_; |
1610 | 173 | */ | 173 | // |
1611 | 174 | #define CPPUT_REGISTER_NAMED_SUITE_IN( TestFixtureType, \ | 174 | // typedef std::map<TestFactoryId,CppTL::ConstString> TestFactoryParentSuiteById; |
1612 | 175 | parentSuiteName, \ | 175 | // TestFactoryParentSuiteById parentSuiteById_; |
1613 | 176 | suiteName ) \ | 176 | // |
1614 | 177 | static CppUT::SuiteRegisterer< TestFixtureType > \ | 177 | // TestFactoryId nextId_; |
1615 | 178 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRegisterer )( \ | 178 | }; |
1616 | 179 | CppUT::Impl::registerToNamedSuite, \ | 179 | |
1617 | 180 | parentSuiteName, \ | 180 | |
1618 | 181 | suiteName ); | 181 | /*! \ingroup group_testregistry |
1619 | 182 | 182 | * \brief Set the default test suite. | |
1620 | 183 | /*! \ingroup group_testregistry | 183 | * This is a convenience function to be used in an header. It defined the default |
1621 | 184 | */ | 184 | * parent suite for all tests including that headers. This is typically used to |
1622 | 185 | class SuiteRelationshipRegisterer | 185 | * group all tests of a given library under the same parent suite. |
1623 | 186 | { | 186 | * |
1624 | 187 | public: | 187 | * \code |
1625 | 188 | explicit SuiteRelationshipRegisterer( const std::string &childSuiteName ) | 188 | * // MyLib/testing.h |
1626 | 189 | : childSuiteName_( childSuiteName ) | 189 | * #ifndef MYLIB_TESTING_H_INCLUDED |
1627 | 190 | , parentSuiteName_( Registry::defaultParentSuiteName() ) | 190 | * # define MYLIB_TESTING_H_INCLUDED |
1628 | 191 | { | 191 | * # include <cpput/registry.h> |
1629 | 192 | Registry::instance().addChildToDefault( childSuiteName ); | 192 | * CPPUT_SET_DEFAULT_SUITE( "MyLib" ); |
1630 | 193 | } | 193 | * #endif |
1631 | 194 | 194 | * // MyLib/test1.cpp | |
1632 | 195 | SuiteRelationshipRegisterer( const std::string &parentSuiteName, | 195 | * #include "testing.h" |
1633 | 196 | const std::string &childSuiteName ) | 196 | * // TestCase "test1" will be placed into the suite "MyLib" |
1634 | 197 | : parentSuiteName_( parentSuiteName ) | 197 | * CPPUT_TEST( test1 ) { // ... |
1635 | 198 | , childSuiteName_( childSuiteName ) | 198 | * } |
1636 | 199 | { | 199 | * // MyLib/test2.cpp |
1637 | 200 | Registry::instance().addChild( parentSuiteName, childSuiteName ); | 200 | * #include "testing.h" |
1638 | 201 | } | 201 | * // TestCase "test1" will be placed into the suite "MyLib" |
1639 | 202 | 202 | * CPPUT_TEST( test1 ) { // ... | |
1640 | 203 | ~SuiteRelationshipRegisterer() | 203 | * } |
1641 | 204 | { | 204 | * \endcode |
1642 | 205 | Registry::instance().removeChild( parentSuiteName_.str(), | 205 | * \warning You must use CPPUT_NESTED_SUITE if you want to put test in a child suite of |
1643 | 206 | childSuiteName_.str() ); | 206 | * MyLib. |
1644 | 207 | } | 207 | */ |
1645 | 208 | 208 | #define CPPUT_SET_DEFAULT_SUITE( name ) \ | |
1646 | 209 | private: | 209 | namespace { \ |
1647 | 210 | CppTL::ConstString parentSuiteName_; | 210 | _CPPUT_DECLARE_ROOT_SUITE( name, makeAndSetDefaultRootSuite ); \ |
1648 | 211 | CppTL::ConstString childSuiteName_; | 211 | } |
1649 | 212 | }; | 212 | |
1650 | 213 | 213 | /*! \ingroup group_testregistry | |
1651 | 214 | 214 | * \brief Returns the suite test will register in the context were the macro occurs. | |
1652 | 215 | /*! \ingroup group_testregistry | 215 | * Notes: this is mostly an implementation detail. Should not need this unless you are |
1653 | 216 | */ | 216 | * creating some new kind of test case factor like CPPUT_TEST, CPPUT_FIXTURE_TEST... |
1654 | 217 | #define CPPUT_REGISTER_SUITE_RELATIONSHIP( parentSuiteName, childSuiteName ) \ | 217 | * @return This macro expand into an expression of type CppUT::SuiteMeta. |
1655 | 218 | static ::CppUT::SuiteRelationshipRegisterer \ | 218 | */ |
1656 | 219 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRelationShipRegisterer )( \ | 219 | #define CPPUT_CURRENT_SUITE() \ |
1657 | 220 | parentSuiteName, \ | 220 | ::CppUT::Impl::currentSuite() |
1658 | 221 | childSuiteName ) | 221 | |
1659 | 222 | 222 | ||
1660 | 223 | 223 | /*! \ingroup group_testregistry | |
1661 | 224 | /*! \ingroup group_testregistry | 224 | * \brief Declares the root parent suite of tests until CPPUT_END_SUITE. |
1662 | 225 | */ | 225 | */ |
1663 | 226 | #define CPPUT_REGISTER_SUITE_RELATIONSHIP_TO_DEFAULT( childSuiteName ) \ | 226 | #define CPPUT_SUITE( name ) \ |
1664 | 227 | static ::CppUT::SuiteRelationshipRegisterer \ | 227 | _CPPUT_DECLARE_ROOT_SUITE( name, makeNestedSuiteInDefaultRootSuite ); \ |
1665 | 228 | CPPTL_MAKE_UNIQUE_NAME(cpputSuiteRelationShipRegisterer )( \ | 228 | namespace |
1666 | 229 | childSuiteName ) | 229 | |
1667 | 230 | 230 | #define CPPUT_SUITE_REGISTER( FixtureType ) \ | |
1668 | 231 | 231 | static ::CppUT::StaticSuite * \ | |
1669 | 232 | // Plain C function tests | 232 | CPPTL_MAKE_UNIQUE_NAME(cpputRegisterFixtureSuite) = \ |
1670 | 233 | 233 | ::CppUT::Impl::reparentSuite( CPPUT_CURRENT_SUITE(), \ | |
1671 | 234 | /*! \ingroup group_testregistry | 234 | FixtureType :: suite() ) |
1672 | 235 | * \brief Helper object used to statically register a TestFactory. | 235 | |
1673 | 236 | */ | 236 | } // namespace CppUT |
1674 | 237 | class TestFactoryRegisterer | 237 | |
1675 | 238 | { | 238 | |
1676 | 239 | public: | 239 | namespace { |
1677 | 240 | typedef TestPtr (*FactoryFn)(); | 240 | // Cause the static initializer to be called in each translation unit, |
1678 | 241 | 241 | // Reset the current suite to the top root suite. | |
1679 | 242 | TestFactoryRegisterer( FactoryFn testFactory ) | 242 | static ::CppUT::StaticSuite *cpputTopRootSuite = |
1680 | 243 | { | 243 | ::CppUT::Impl::resetDefaultRootSuite(); |
1681 | 244 | testFactoryId_ = Registry::instance().addToDefault( CppTL::cfn0r<TestPtr>(testFactory) ); | 244 | } // end anonymous namespace |
1682 | 245 | } | 245 | |
1683 | 246 | 246 | ||
1684 | 247 | TestFactoryRegisterer( TestFactory testFactory ) | 247 | |
1685 | 248 | { | 248 | #endif // CPPUT_REGISTRY_H_INCLUDED |
1398 | 249 | testFactoryId_ = Registry::instance().addToDefault( testFactory ); | ||
1399 | 250 | } | ||
1400 | 251 | |||
1401 | 252 | TestFactoryRegisterer( TestFactory testFactory, const std::string &parentSuiteName ) | ||
1402 | 253 | { | ||
1403 | 254 | testFactoryId_ = Registry::instance().add( parentSuiteName, testFactory ); | ||
1404 | 255 | } | ||
1405 | 256 | |||
1406 | 257 | TestFactoryRegisterer( FactoryFn testFactory, const std::string &parentSuiteName ) | ||
1407 | 258 | { | ||
1408 | 259 | testFactoryId_ = Registry::instance().add( parentSuiteName, CppTL::cfn0r<TestPtr>(testFactory) ); | ||
1409 | 260 | } | ||
1410 | 261 | |||
1411 | 262 | ~TestFactoryRegisterer() | ||
1412 | 263 | { | ||
1413 | 264 | Registry::instance().remove( testFactoryId_ ); | ||
1414 | 265 | } | ||
1415 | 266 | |||
1416 | 267 | private: | ||
1417 | 268 | TestFactoryId testFactoryId_; | ||
1418 | 269 | }; | ||
1419 | 270 | |||
1420 | 271 | /*! \ingroup group_testregistry | ||
1421 | 272 | * \brief Register the specified TestFactory in the default Registry suite. | ||
1422 | 273 | */ | ||
1423 | 274 | #define CPPUT_REGISTER_TESTFACTORY_TO_DEFAULT( testFactory ) \ | ||
1424 | 275 | static ::CppUT::TestFactoryRegisterer \ | ||
1425 | 276 | CPPTL_MAKE_UNIQUE_NAME(cpputTestFactoryRegisterer)( testFactory ) | ||
1426 | 277 | |||
1427 | 278 | /*! \ingroup group_testregistry | ||
1428 | 279 | * \brief Register the specified TestFactory in the specified Registry suite. | ||
1429 | 280 | */ | ||
1430 | 281 | #define CPPUT_REGISTER_TESTFACTORY_IN( testFactory, parentSuiteName ) \ | ||
1431 | 282 | static ::CppUT::TestFactoryRegisterer \ | ||
1432 | 283 | CPPTL_MAKE_UNIQUE_NAME(cpputTestFactoryRegisterer)( testFactory, parentSuiteName ) | ||
1433 | 284 | |||
1434 | 285 | } // namespace CppUT | ||
1435 | 286 | |||
1436 | 287 | |||
1437 | 288 | #endif // CPPUT_REGISTRY_H_INCLUDED | ||
1686 | 289 | 249 | ||
1687 | === modified file 'cppunit2/include/cpput/tablefixture.h' | |||
1688 | --- cppunit2/include/cpput/tablefixture.h 2007-08-16 13:51:04 +0000 | |||
1689 | +++ cppunit2/include/cpput/tablefixture.h 2008-12-11 20:28:30 +0000 | |||
1690 | @@ -453,7 +453,7 @@ | |||
1691 | 453 | }; | 453 | }; |
1692 | 454 | 454 | ||
1693 | 455 | 455 | ||
1695 | 456 | class TableFixture : public AbstractTestCase | 456 | class TableFixture : public TestCase |
1696 | 457 | { | 457 | { |
1697 | 458 | public: | 458 | public: |
1698 | 459 | typedef void (TableFixture::*ActionFn)(); | 459 | typedef void (TableFixture::*ActionFn)(); |
1699 | 460 | 460 | ||
1700 | === modified file 'cppunit2/include/cpput/testcase.h' | |||
1701 | --- cppunit2/include/cpput/testcase.h 2008-07-13 06:19:20 +0000 | |||
1702 | +++ cppunit2/include/cpput/testcase.h 2009-03-13 21:39:02 +0000 | |||
1703 | @@ -2,9 +2,10 @@ | |||
1704 | 2 | # define CPPUT_TESTCASE_H_INCLUDED | 2 | # define CPPUT_TESTCASE_H_INCLUDED |
1705 | 3 | 3 | ||
1706 | 4 | # include <cpput/forwards.h> | 4 | # include <cpput/forwards.h> |
1707 | 5 | # include <cpput/extendeddata.h> | ||
1708 | 5 | # include <cpptl/functor.h> | 6 | # include <cpptl/functor.h> |
1709 | 6 | # include <cpput/resource.h> | 7 | # include <cpput/resource.h> |
1711 | 7 | # include <cpput/test.h> | 8 | # include <cpput/metadata.h> |
1712 | 8 | # include <string> | 9 | # include <string> |
1713 | 9 | # include <set> | 10 | # include <set> |
1714 | 10 | # include <vector> | 11 | # include <vector> |
1715 | @@ -12,41 +13,93 @@ | |||
1716 | 12 | 13 | ||
1717 | 13 | namespace CppUT { | 14 | namespace CppUT { |
1718 | 14 | 15 | ||
1719 | 16 | typedef CppTL::Functor0R<TestCase *> TestCaseFactory; | ||
1720 | 17 | typedef TestCase *(*TestCaseFactoryFn)(); | ||
1721 | 18 | |||
1722 | 15 | /*! \brief An abstract test case that can be run. | 19 | /*! \brief An abstract test case that can be run. |
1723 | 16 | * \ingroup group_testcases | 20 | * \ingroup group_testcases |
1724 | 17 | */ | 21 | */ |
1729 | 18 | class CPPUT_API AbstractTestCase : public Test | 22 | class CPPUT_API TestCase : public TestExtendedDataFactory |
1730 | 19 | { | 23 | { |
1731 | 20 | public: | 24 | friend class TestMeta; |
1732 | 21 | AbstractTestCase( const std::string &name ); | 25 | public: |
1733 | 26 | TestCase(); | ||
1734 | 27 | |||
1735 | 28 | virtual ~TestCase(); | ||
1736 | 29 | |||
1737 | 30 | virtual void setUp(); | ||
1738 | 31 | |||
1739 | 32 | virtual void run() = 0; | ||
1740 | 33 | |||
1741 | 34 | virtual void tearDown(); | ||
1742 | 35 | |||
1743 | 36 | //void setUpTestResources(); | ||
1744 | 37 | |||
1745 | 38 | //void tearDownTestResources(); | ||
1746 | 39 | }; | ||
1747 | 40 | |||
1748 | 41 | |||
1749 | 42 | template<class FunctorType> | ||
1750 | 43 | class FunctorTestCase : public TestCase | ||
1751 | 44 | { | ||
1752 | 45 | public: | ||
1753 | 46 | static TestCase *factory( FunctorType run ) | ||
1754 | 47 | { | ||
1755 | 48 | return new FunctorTestCase<FunctorType>( run ); | ||
1756 | 49 | } | ||
1757 | 50 | |||
1758 | 51 | FunctorTestCase( FunctorType run ) | ||
1759 | 52 | : run_( run ) | ||
1760 | 53 | { | ||
1761 | 54 | } | ||
1762 | 55 | |||
1763 | 56 | public: // overriden from TestCase | ||
1764 | 57 | virtual void run() | ||
1765 | 58 | { | ||
1766 | 59 | run_(); | ||
1767 | 60 | } | ||
1768 | 61 | |||
1769 | 62 | private: | ||
1770 | 63 | FunctorType run_; | ||
1771 | 64 | }; | ||
1772 | 65 | |||
1773 | 66 | |||
1774 | 67 | |||
1775 | 68 | |||
1776 | 69 | /*! \brief A test case that can be run. | ||
1777 | 70 | * \ingroup group_testcases | ||
1778 | 71 | */ | ||
1779 | 72 | class CPPUT_API TestMeta : public MetaData | ||
1780 | 73 | { | ||
1781 | 74 | public: | ||
1782 | 75 | TestMeta( const TestCaseFactory &factory, | ||
1783 | 76 | const std::string &name ); | ||
1784 | 77 | |||
1785 | 78 | TestMeta( TestCaseFactoryFn factory, | ||
1786 | 79 | const std::string &name ); | ||
1787 | 80 | |||
1788 | 81 | TestMeta( const TestCaseFactory &factory, | ||
1789 | 82 | const MetaData &metaData ); | ||
1790 | 83 | |||
1791 | 84 | TestMeta( TestCaseFactoryFn factory, | ||
1792 | 85 | const MetaData &metaData ); | ||
1793 | 22 | 86 | ||
1794 | 23 | /*! \brief Indicates that the test case requires the specified resource. | 87 | /*! \brief Indicates that the test case requires the specified resource. |
1795 | 24 | * | 88 | * |
1796 | 25 | * The specified resource will be acquired before calling setUp() and | 89 | * The specified resource will be acquired before calling setUp() and |
1798 | 26 | * will be at the earliest after calling tearDown(). | 90 | * will be released at the earliest after calling tearDown(). |
1799 | 27 | * | 91 | * |
1800 | 28 | * \param resourceName Name of the resource to acquire. | 92 | * \param resourceName Name of the resource to acquire. |
1801 | 29 | * \see ResourceHandlerRegistry, getResource(). | 93 | * \see ResourceHandlerRegistry, getResource(). |
1802 | 30 | */ | 94 | */ |
1803 | 31 | void requireResource( const std::string &resourceName ); | 95 | void requireResource( const std::string &resourceName ); |
1804 | 32 | 96 | ||
1805 | 33 | /*! \brief Prepare the acquisition of resource at the beginning of the test run. | ||
1806 | 34 | * | ||
1807 | 35 | * This must be called at the beginning of the test run for each test case. | ||
1808 | 36 | * It allows couting how many time a resource will be used and during | ||
1809 | 37 | * the test run, determining when a resource is no longer needed to free it. | ||
1810 | 38 | * | ||
1811 | 39 | * A ResourceLazyPtr is obtained for each required resource via the | ||
1812 | 40 | * ResourceHandlerRegistry. | ||
1813 | 41 | */ | ||
1814 | 42 | void prepareResourceAcquisition(); | ||
1815 | 43 | |||
1816 | 44 | /*! \brief Run the test case using the default ExceptionGuard. | 97 | /*! \brief Run the test case using the default ExceptionGuard. |
1817 | 45 | * | 98 | * |
1818 | 46 | * The default exception guard only detect | 99 | * The default exception guard only detect |
1819 | 47 | * | 100 | * |
1820 | 48 | */ | 101 | */ |
1822 | 49 | bool runTest(); | 102 | bool runTest() const; |
1823 | 50 | 103 | ||
1824 | 51 | /*! \brief Run the test case using the specified ExceptionGuard. | 104 | /*! \brief Run the test case using the specified ExceptionGuard. |
1825 | 52 | * | 105 | * |
1826 | @@ -60,126 +113,94 @@ | |||
1827 | 60 | * information for failure report from exception | 113 | * information for failure report from exception |
1828 | 61 | * that do not subclass std::exception. | 114 | * that do not subclass std::exception. |
1829 | 62 | */ | 115 | */ |
1845 | 63 | bool runTest( const ExceptionGuard &guardsChain ); | 116 | bool runTest( const ExceptionGuard &guardsChain ) const; |
1831 | 64 | |||
1832 | 65 | public: // overridden from Test | ||
1833 | 66 | void accept( TestVisitor &visitor ); | ||
1834 | 67 | |||
1835 | 68 | /// Returns \c true if the class is derived from AbstractTestCase. | ||
1836 | 69 | bool isTestCase() const; | ||
1837 | 70 | |||
1838 | 71 | // Those member functions are public to allow decoration of setUp/run/tearDown | ||
1839 | 72 | public: | ||
1840 | 73 | virtual void setUp(); | ||
1841 | 74 | |||
1842 | 75 | virtual void run() = 0; | ||
1843 | 76 | |||
1844 | 77 | virtual void tearDown(); | ||
1846 | 78 | 117 | ||
1847 | 79 | private: | 118 | private: |
1848 | 119 | typedef std::vector<ResourceLazyPtr> RequiredResources; | ||
1849 | 120 | |||
1850 | 121 | /// @todo fix framework to call this when scheduling tests | ||
1851 | 122 | /*! \brief Prepare the acquisition of resource at the beginning of the test run. | ||
1852 | 123 | * | ||
1853 | 124 | * This must be called at the beginning of the test run for each test case. | ||
1854 | 125 | * It allows couting how many time a resource will be used and during | ||
1855 | 126 | * the test run, determining when a resource is no longer needed to free it. | ||
1856 | 127 | * | ||
1857 | 128 | * A ResourceLazyPtr is obtained for each required resource via the | ||
1858 | 129 | * ResourceHandlerRegistry. | ||
1859 | 130 | */ | ||
1860 | 131 | void prepareResourceAcquisition( RequiredResources &requiredResources) const; | ||
1861 | 132 | |||
1862 | 80 | /*! \brief Acquires and setup the resource required by the test case. | 133 | /*! \brief Acquires and setup the resource required by the test case. |
1863 | 81 | * Notes: If you decorate the test case, you must ensure | 134 | * Notes: If you decorate the test case, you must ensure |
1864 | 82 | * that you also decorate call to acquireTestResource(). | 135 | * that you also decorate call to acquireTestResource(). |
1865 | 83 | * \return \c true if all resources were acquired, \c false otherwise. | 136 | * \return \c true if all resources were acquired, \c false otherwise. |
1866 | 84 | */ | 137 | */ |
1874 | 85 | virtual void acquireTestResources( bool &allResourceAcquired ); | 138 | void acquireTestResources( bool &allResourceAcquired ) const; |
1868 | 86 | |||
1869 | 87 | /*! \brief | ||
1870 | 88 | */ | ||
1871 | 89 | void setUpTestResources(); | ||
1872 | 90 | |||
1873 | 91 | void tearDownTestResources(); | ||
1875 | 92 | 139 | ||
1876 | 93 | private: | 140 | private: |
1877 | 94 | typedef std::set<ResourceName> ResourceNames; | 141 | typedef std::set<ResourceName> ResourceNames; |
1878 | 95 | /// Required resource names | 142 | /// Required resource names |
1879 | 96 | ResourceNames resourceNames_; | 143 | ResourceNames resourceNames_; |
1937 | 97 | typedef std::vector<ResourceLazyPtr> RequiredResources; | 144 | TestCaseFactory factory_; |
1938 | 98 | RequiredResources requiredResources_; | 145 | }; |
1939 | 99 | }; | 146 | |
1940 | 100 | 147 | // Implementation Notes: | |
1941 | 101 | 148 | // Be wary of makeTestCase overloading. There is an optimizer bug in MSVC6 that cause it | |
1942 | 102 | /*! \brief A test case that can be run. | 149 | // to recursively call makeTestCase(CppTL::Functor0) when such an overloading exist |
1943 | 103 | * \ingroup group_testcases | 150 | // and makeTestCase is called with a functor. This has been worked around by removing that |
1944 | 104 | */ | 151 | // overloading. |
1945 | 105 | class CPPUT_API TestCase : public AbstractTestCase | 152 | |
1946 | 106 | { | 153 | |
1947 | 107 | public: | 154 | |
1948 | 108 | TestCase( const CppTL::Functor0 &run, | 155 | /*! \brief Creates a TestMeta with the specified name and run function. |
1949 | 109 | const std::string &name ); | 156 | * \ingroup group_testcases |
1950 | 110 | 157 | */ | |
1951 | 111 | TestCase( const CppTL::Functor0 &setUp, | 158 | TestMeta CPPUT_API makeTestCase( void (*run)(), |
1952 | 112 | const CppTL::Functor0 &run, | 159 | const std::string &name ); |
1953 | 113 | const CppTL::Functor0 &tearDown, | 160 | |
1954 | 114 | const std::string &name ); | 161 | |
1955 | 115 | 162 | /*! \brief Creates a TestMeta with the specified name, run function and metaData. | |
1956 | 116 | public: // overridden from AbstractTestCase | 163 | * \ingroup group_testcases |
1957 | 117 | void setUp(); | 164 | */ |
1958 | 118 | 165 | TestMeta CPPUT_API makeTestCase( void (*run)(), | |
1959 | 119 | void run(); | 166 | const MetaData &metaData ); |
1960 | 120 | 167 | ||
1961 | 121 | void tearDown(); | 168 | |
1962 | 122 | 169 | /*! \brief Creates a TestMeta with the specified name and run functor. | |
1963 | 123 | private: | 170 | * \ingroup group_testcases |
1964 | 124 | CppTL::Functor0 setUp_; | 171 | * FunctorType must be copyable and callable with no parameter. |
1965 | 125 | CppTL::Functor0 run_; | 172 | */ |
1966 | 126 | CppTL::Functor0 tearDown_; | 173 | template<class FunctorType> |
1967 | 127 | }; | 174 | TestMeta makeTestCase( FunctorType run, |
1968 | 128 | 175 | const std::string &name ) | |
1969 | 129 | 176 | { | |
1970 | 130 | 177 | return TestMeta( CppTL::bind_cfnr( &FunctorTestCase<FunctorType>::factory, run ), name ); | |
1971 | 131 | /*! \brief Creates a TestCase with the specified name and run functor. | 178 | } |
1972 | 132 | * \ingroup group_testcases | 179 | |
1973 | 133 | */ | 180 | |
1974 | 134 | TestPtr CPPUT_API makeTestCase( void (*run)(), | 181 | /*! \brief Creates a TestMeta with the specified name and run functor. |
1975 | 135 | const std::string &name ); | 182 | * \ingroup group_testcases |
1976 | 136 | 183 | * FunctorType must be copyable and callable with no parameter. | |
1977 | 137 | 184 | */ | |
1978 | 138 | /*! \brief Creates a TestCase with the specified name and run functor. | 185 | template<class FunctorType> |
1979 | 139 | * \ingroup group_testcases | 186 | TestMeta makeTestCase( FunctorType run, |
1980 | 140 | */ | 187 | const MetaData &metaData ) |
1981 | 141 | TestPtr CPPUT_API makeTestCase( const CppTL::Functor0 &run, | 188 | { |
1982 | 142 | const std::string &name ); | 189 | return TestMeta( CppTL::bind_cfnr( &FunctorTestCase<FunctorType>::factory, run ), metaData ); |
1983 | 143 | 190 | } | |
1984 | 144 | 191 | ||
1985 | 145 | /*! \brief Creates a TestCase with the specified name and setUp, run, and tearDown functor. | 192 | |
1986 | 146 | * \ingroup group_testcases | 193 | /*! \brief Creates a TestMeta with the specified name that will always fail. |
1930 | 147 | */ | ||
1931 | 148 | TestPtr CPPUT_API makeTestCase( const CppTL::Functor0 &setUp, | ||
1932 | 149 | const CppTL::Functor0 &run, | ||
1933 | 150 | const CppTL::Functor0 &tearDown, | ||
1934 | 151 | const std::string &name ); | ||
1935 | 152 | |||
1936 | 153 | /*! \brief Creates a TestCase with the specified name that will always fail. | ||
1987 | 154 | * \ingroup group_testcases | 194 | * \ingroup group_testcases |
1988 | 155 | * | 195 | * |
1989 | 156 | * The test case run body simply call CPPUT_FAIL() with the specified message. | 196 | * The test case run body simply call CPPUT_FAIL() with the specified message. |
1990 | 157 | * | 197 | * |
1992 | 158 | * This is useful for example when a TestSuite is created from input data | 198 | * This is useful for example when a Suite is created from input data |
1993 | 159 | * and those an invalid or inaccessible. A failing test case can be added to | 199 | * and those an invalid or inaccessible. A failing test case can be added to |
1994 | 160 | * the suite to report the error. | 200 | * the suite to report the error. |
1995 | 161 | */ | 201 | */ |
2017 | 162 | TestPtr CPPUT_API makeFailingTestCase( const std::string &name, | 202 | TestMeta CPPUT_API makeFailingTestCase( const std::string &name, |
2018 | 163 | const Message &message ); | 203 | const Message &message ); |
1998 | 164 | |||
1999 | 165 | /*! \brief Creates a TestCase using a fixture-like object. | ||
2000 | 166 | * \ingroup group_testcases | ||
2001 | 167 | * | ||
2002 | 168 | * The test case will delegate implementation of AbstractTestCase setUp() and | ||
2003 | 169 | * tearDown() to method of the same name on the given \c fixture object. | ||
2004 | 170 | */ | ||
2005 | 171 | template<typename FixtureType> | ||
2006 | 172 | TestPtr makeFixtureTestCase( const CppTL::IntrusivePtr<FixtureType> &fixture, | ||
2007 | 173 | const CppTL::Functor0 &run, | ||
2008 | 174 | const std::string &name ) | ||
2009 | 175 | { | ||
2010 | 176 | /// @todo Use traits to get smart-pointer type and allow for any type of smart-pointer | ||
2011 | 177 | return makeTestCase( CppTL::memfn0( fixture, &FixtureType::setUp ), | ||
2012 | 178 | run, | ||
2013 | 179 | CppTL::memfn0( fixture, &FixtureType::tearDown ), | ||
2014 | 180 | name ); | ||
2015 | 181 | } | ||
2016 | 182 | |||
2019 | 183 | 204 | ||
2020 | 184 | } // namespace CppUT | 205 | } // namespace CppUT |
2021 | 185 | 206 | ||
2022 | 186 | 207 | ||
2023 | === modified file 'cppunit2/include/cpput/testfixture.h' | |||
2024 | --- cppunit2/include/cpput/testfixture.h 2005-11-13 09:12:01 +0000 | |||
2025 | +++ cppunit2/include/cpput/testfixture.h 2008-12-31 19:13:19 +0000 | |||
2026 | @@ -4,13 +4,217 @@ | |||
2027 | 4 | # include <cpput/forwards.h> | 4 | # include <cpput/forwards.h> |
2028 | 5 | # include <cpput/extendeddata.h> | 5 | # include <cpput/extendeddata.h> |
2029 | 6 | # include <cpput/testcase.h> | 6 | # include <cpput/testcase.h> |
2031 | 7 | # include <cpput/testsuite.h> | 7 | # include <cpput/registry.h> |
2032 | 8 | # include <cpput/translate.h> | 8 | # include <cpput/translate.h> |
2033 | 9 | # include <cpptl/typename.h> | 9 | # include <cpptl/typename.h> |
2034 | 10 | 10 | ||
2035 | 11 | 11 | ||
2036 | 12 | namespace CppUT { | 12 | namespace CppUT { |
2037 | 13 | 13 | ||
2038 | 14 | // ////////////////////////////////////////////////////////////////// | ||
2039 | 15 | // ////////////////////////////////////////////////////////////////// | ||
2040 | 16 | // Internal implementation macros | ||
2041 | 17 | // ////////////////////////////////////////////////////////////////// | ||
2042 | 18 | // ////////////////////////////////////////////////////////////////// | ||
2043 | 19 | |||
2044 | 20 | // Internal | ||
2045 | 21 | // Prolog parts that is common to abstract, base and derived fixture classes. | ||
2046 | 22 | // Declares test case factory and run member function pointer. | ||
2047 | 23 | #define _CPPUT_TESTSUITE_COMMON( FixtureType ) \ | ||
2048 | 24 | public: \ | ||
2049 | 25 | void (FixtureType :: *cpputRun_)(); \ | ||
2050 | 26 | \ | ||
2051 | 27 | typedef FixtureType CppUTSelfType; \ | ||
2052 | 28 | \ | ||
2053 | 29 | struct FixtureTestFactory \ | ||
2054 | 30 | { \ | ||
2055 | 31 | typedef ::CppUT::TestCase *result_type; \ | ||
2056 | 32 | \ | ||
2057 | 33 | void (FixtureType :: *run_)(); \ | ||
2058 | 34 | ::CppUT::TestCaseFactoryFn factory_; \ | ||
2059 | 35 | \ | ||
2060 | 36 | \ | ||
2061 | 37 | static void addTest( ::CppUT::Suite &suite, \ | ||
2062 | 38 | ::CppUT::TestCaseFactoryFn fixtureFactory, \ | ||
2063 | 39 | const char *name, \ | ||
2064 | 40 | void (FixtureType :: *run)() ) \ | ||
2065 | 41 | { \ | ||
2066 | 42 | FixtureTestFactory factory; \ | ||
2067 | 43 | factory.run_ = run; \ | ||
2068 | 44 | factory.factory_ = fixtureFactory; \ | ||
2069 | 45 | suite.add( ::CppUT::TestMeta( ::CppTL::fn0r( factory ), \ | ||
2070 | 46 | name ) ); \ | ||
2071 | 47 | } \ | ||
2072 | 48 | \ | ||
2073 | 49 | static void addTest( ::CppUT::Suite &suite, \ | ||
2074 | 50 | ::CppUT::TestCaseFactoryFn fixtureFactory, \ | ||
2075 | 51 | const char *name, \ | ||
2076 | 52 | void (FixtureType :: *run)(), \ | ||
2077 | 53 | const ::CppUT::TestExtendedData &metaData ) \ | ||
2078 | 54 | { \ | ||
2079 | 55 | FixtureTestFactory factory; \ | ||
2080 | 56 | factory.run_ = run; \ | ||
2081 | 57 | factory.factory_ = fixtureFactory; \ | ||
2082 | 58 | suite.add( ::CppUT::TestMeta( ::CppTL::fn0r( factory ), \ | ||
2083 | 59 | ::CppUT::MetaData( name, metaData ) \ | ||
2084 | 60 | ) ); \ | ||
2085 | 61 | } \ | ||
2086 | 62 | \ | ||
2087 | 63 | \ | ||
2088 | 64 | ::CppUT::TestCase *operator()() const \ | ||
2089 | 65 | { \ | ||
2090 | 66 | FixtureType *fixture = static_cast<FixtureType *>( factory_() ); \ | ||
2091 | 67 | if ( fixture != 0 ) \ | ||
2092 | 68 | { \ | ||
2093 | 69 | fixture->cpputClearRunnable(); \ | ||
2094 | 70 | fixture->cpputRun_ = run_; \ | ||
2095 | 71 | } \ | ||
2096 | 72 | return fixture; \ | ||
2097 | 73 | } \ | ||
2098 | 74 | }; \ | ||
2099 | 75 | \ | ||
2100 | 76 | \ | ||
2101 | 77 | virtual void cpputClearRunnable() \ | ||
2102 | 78 | { \ | ||
2103 | 79 | cpputRun_ = 0; \ | ||
2104 | 80 | } | ||
2105 | 81 | |||
2106 | 82 | |||
2107 | 83 | // Internal | ||
2108 | 84 | // Part that is common to all concrete fixture classes | ||
2109 | 85 | // Declares fixture, and suite factories. | ||
2110 | 86 | #define _CPPUT_TESTSUITE_COMMON_CONCRETE( FixtureType ) \ | ||
2111 | 87 | static ::CppUT::TestCase *fixtureFactory() \ | ||
2112 | 88 | { \ | ||
2113 | 89 | return new FixtureType(); \ | ||
2114 | 90 | } \ | ||
2115 | 91 | \ | ||
2116 | 92 | static ::CppUT::Suite suite() \ | ||
2117 | 93 | { \ | ||
2118 | 94 | ::CppUT::Suite thisSuite( #FixtureType ); \ | ||
2119 | 95 | addTests( thisSuite ); \ | ||
2120 | 96 | return thisSuite; \ | ||
2121 | 97 | } \ | ||
2122 | 98 | \ | ||
2123 | 99 | static void addTests( ::CppUT::Suite &suite, \ | ||
2124 | 100 | ::CppUT::TestCaseFactoryFn factory = &FixtureType :: fixtureFactory )\ | ||
2125 | 101 | { | ||
2126 | 102 | |||
2127 | 103 | // Internal | ||
2128 | 104 | // Part that is common to all abstract fixture classes. | ||
2129 | 105 | // Declares suite factory. | ||
2130 | 106 | # define _CPPUT_TESTSUITE_COMMON_ABSTRACT( FixtureType ) \ | ||
2131 | 107 | static void addTests( ::CppUT::Suite &suite, \ | ||
2132 | 108 | ::CppUT::TestCaseFactoryFn factory ) \ | ||
2133 | 109 | { | ||
2134 | 110 | |||
2135 | 111 | |||
2136 | 112 | // Internal | ||
2137 | 113 | // Part that is common to all derived fixture classes. | ||
2138 | 114 | // Chaine suite factory with parent class factory. | ||
2139 | 115 | # define _CPPUT_TESTSUITE_COMMON_EXTEND( FixtureType, ParentFixtureType ) \ | ||
2140 | 116 | ParentFixtureType :: addTests( suite, factory ) | ||
2141 | 117 | |||
2142 | 118 | |||
2143 | 119 | // Internal | ||
2144 | 120 | // Part that is common to all base hierarchy fixture classes. | ||
2145 | 121 | // Run test based on content of member function pointer cpputRun_. | ||
2146 | 122 | # define _CPPUT_TESTSUITE_BASE_RUN( FixtureType ) \ | ||
2147 | 123 | /* overridden from CppUT::TestCase */ \ | ||
2148 | 124 | virtual void run() \ | ||
2149 | 125 | { \ | ||
2150 | 126 | (this->*cpputRun_)(); \ | ||
2151 | 127 | } | ||
2152 | 128 | |||
2153 | 129 | |||
2154 | 130 | // Internal | ||
2155 | 131 | // Part that is common to all derived fixture classes. | ||
2156 | 132 | // Run test based on content of member function pointer cpputRun_ if set, | ||
2157 | 133 | // otherwise forward run call to base class. | ||
2158 | 134 | # define _CPPUT_TESTSUITE_DERIVED_RUN( FixtureType, ParentFixtureType ) \ | ||
2159 | 135 | /* overridden from CppUT::TestCase */ \ | ||
2160 | 136 | virtual void run() \ | ||
2161 | 137 | { \ | ||
2162 | 138 | if ( cpputRun_ == 0 ) \ | ||
2163 | 139 | ParentFixtureType :: run(); \ | ||
2164 | 140 | else \ | ||
2165 | 141 | (this->*cpputRun_)(); \ | ||
2166 | 142 | } | ||
2167 | 143 | |||
2168 | 144 | |||
2169 | 145 | |||
2170 | 146 | // ////////////////////////////////////////////////////////////////// | ||
2171 | 147 | // ////////////////////////////////////////////////////////////////// | ||
2172 | 148 | // Interface macros | ||
2173 | 149 | // ////////////////////////////////////////////////////////////////// | ||
2174 | 150 | // ////////////////////////////////////////////////////////////////// | ||
2175 | 151 | |||
2176 | 152 | |||
2177 | 153 | # define CPPUT_TESTSUITE_BEGIN( FixtureType ) \ | ||
2178 | 154 | _CPPUT_TESTSUITE_COMMON( FixtureType ) \ | ||
2179 | 155 | _CPPUT_TESTSUITE_BASE_RUN( FixtureType ) \ | ||
2180 | 156 | _CPPUT_TESTSUITE_COMMON_CONCRETE( FixtureType ) \ | ||
2181 | 157 | |||
2182 | 158 | # define CPPUT_TESTSUITE_ABSTRACT_BEGIN( FixtureType ) \ | ||
2183 | 159 | _CPPUT_TESTSUITE_COMMON( FixtureType ) \ | ||
2184 | 160 | _CPPUT_TESTSUITE_BASE_RUN( FixtureType ) \ | ||
2185 | 161 | _CPPUT_TESTSUITE_COMMON_ABSTRACT( FixtureType ) | ||
2186 | 162 | |||
2187 | 163 | # define CPPUT_TESTSUITE_ABSTRACT_EXTEND( FixtureType, ParentFixtureType ) \ | ||
2188 | 164 | _CPPUT_TESTSUITE_COMMON( FixtureType ) \ | ||
2189 | 165 | _CPPUT_TESTSUITE_DERIVED_RUN( FixtureType, ParentFixtureType ) \ | ||
2190 | 166 | _CPPUT_TESTSUITE_COMMON_ABSTRACT( FixtureType ) \ | ||
2191 | 167 | _CPPUT_TESTSUITE_COMMON_EXTEND( FixtureType, ParentFixtureType ); | ||
2192 | 168 | |||
2193 | 169 | # define CPPUT_TESTSUITE_EXTEND( FixtureType, ParentFixtureType ) \ | ||
2194 | 170 | _CPPUT_TESTSUITE_COMMON( FixtureType ) \ | ||
2195 | 171 | _CPPUT_TESTSUITE_DERIVED_RUN( FixtureType, ParentFixtureType ) \ | ||
2196 | 172 | _CPPUT_TESTSUITE_COMMON_CONCRETE( FixtureType ) \ | ||
2197 | 173 | _CPPUT_TESTSUITE_COMMON_EXTEND( FixtureType, ParentFixtureType ); | ||
2198 | 174 | |||
2199 | 175 | # define CPPUT_TESTSUITE_TEST( testMethod ) \ | ||
2200 | 176 | FixtureTestFactory::addTest( suite, factory, #testMethod, \ | ||
2201 | 177 | &CppUTSelfType :: testMethod ) | ||
2202 | 178 | |||
2203 | 179 | # define CPPUT_TESTSUITE_TEST_WITH_META( testMethod, theMetaData ) \ | ||
2204 | 180 | FixtureTestFactory::addTest( suite, factory, #testMethod, \ | ||
2205 | 181 | &CppUTSelfType :: testMethod, \ | ||
2206 | 182 | theMetaData ) | ||
2207 | 183 | |||
2208 | 184 | # define CPPUT_TESTSUITE_END() \ | ||
2209 | 185 | } \ | ||
2210 | 186 | private: | ||
2211 | 187 | |||
2212 | 188 | #if 0 | ||
2213 | 189 | |||
2214 | 190 | |||
2215 | 191 | /// @todo somehow hide this | ||
2216 | 192 | template<class FixtureType> | ||
2217 | 193 | class CallFixtureRunMethod | ||
2218 | 194 | { | ||
2219 | 195 | public: | ||
2220 | 196 | typedef FixtureType *first_argument_type; | ||
2221 | 197 | typedef void (FixtureType::*RunFn)(); | ||
2222 | 198 | |||
2223 | 199 | static ::CppTL::Functor1<FixtureType *> make( RunFn run ) | ||
2224 | 200 | { | ||
2225 | 201 | return ::CppTL::fn1( CallFixtureRunMethod( run ) ); | ||
2226 | 202 | } | ||
2227 | 203 | |||
2228 | 204 | explicit CallFixtureRunMethod( RunFn run ) | ||
2229 | 205 | : run_( run ) | ||
2230 | 206 | { | ||
2231 | 207 | } | ||
2232 | 208 | |||
2233 | 209 | void operator()( FixtureType *fixture ) const | ||
2234 | 210 | { | ||
2235 | 211 | (fixture->*run_)(); | ||
2236 | 212 | } | ||
2237 | 213 | |||
2238 | 214 | private: | ||
2239 | 215 | RunFn run_; | ||
2240 | 216 | }; | ||
2241 | 217 | |||
2242 | 14 | 218 | ||
2243 | 15 | /*! \ingroup group_testfixture | 219 | /*! \ingroup group_testfixture |
2244 | 16 | */ | 220 | */ |
2245 | @@ -42,102 +246,6 @@ | |||
2246 | 42 | 246 | ||
2247 | 43 | 247 | ||
2248 | 44 | 248 | ||
2249 | 45 | /// \cond implementation_detail | ||
2250 | 46 | namespace Impl { | ||
2251 | 47 | |||
2252 | 48 | typedef CppTL::IntrusivePtr<TestFixture> TestFixturePtr; | ||
2253 | 49 | |||
2254 | 50 | class CPPUT_API FixtureFactory | ||
2255 | 51 | { | ||
2256 | 52 | public: | ||
2257 | 53 | virtual ~FixtureFactory() | ||
2258 | 54 | { | ||
2259 | 55 | } | ||
2260 | 56 | |||
2261 | 57 | TestFixturePtr operator()() | ||
2262 | 58 | { | ||
2263 | 59 | return createNewFixture(); | ||
2264 | 60 | } | ||
2265 | 61 | |||
2266 | 62 | private: | ||
2267 | 63 | virtual TestFixturePtr createNewFixture() =0; | ||
2268 | 64 | }; | ||
2269 | 65 | |||
2270 | 66 | |||
2271 | 67 | template<typename FixtureType> | ||
2272 | 68 | class FixtureFactoryImpl : public FixtureFactory | ||
2273 | 69 | { | ||
2274 | 70 | public: | ||
2275 | 71 | TestFixturePtr createNewFixture() | ||
2276 | 72 | { | ||
2277 | 73 | return TestFixturePtr( new FixtureType() ); | ||
2278 | 74 | } | ||
2279 | 75 | }; | ||
2280 | 76 | |||
2281 | 77 | template<typename FixtureType> | ||
2282 | 78 | class FixtureFactoryWrapper | ||
2283 | 79 | { | ||
2284 | 80 | public: | ||
2285 | 81 | FixtureFactoryWrapper( FixtureFactory &factory ) | ||
2286 | 82 | : factory_( factory ) | ||
2287 | 83 | { | ||
2288 | 84 | } | ||
2289 | 85 | |||
2290 | 86 | CppTL::IntrusivePtr<FixtureType> operator()() | ||
2291 | 87 | { | ||
2292 | 88 | return ::CppTL::staticPointerCast<FixtureType>( factory_() ); | ||
2293 | 89 | } | ||
2294 | 90 | |||
2295 | 91 | private: | ||
2296 | 92 | FixtureFactory &factory_; | ||
2297 | 93 | }; | ||
2298 | 94 | } // namespace Impl | ||
2299 | 95 | /// \endcond implementation_detail | ||
2300 | 96 | |||
2301 | 97 | |||
2302 | 98 | /* Code generated by the helper macros is roughly like this: | ||
2303 | 99 | |||
2304 | 100 | class SomeTest : public CppUT::TestFixture | ||
2305 | 101 | { | ||
2306 | 102 | public: // CPPUT_TESTSUITE_BEGIN | ||
2307 | 103 | typedef FixtureType CppUT_ThisType; | ||
2308 | 104 | |||
2309 | 105 | static std::string defaultSuiteName() | ||
2310 | 106 | { | ||
2311 | 107 | return ::CppTL::getTypeName<CppUT_ThisType>( #FixtureType ); | ||
2312 | 108 | } | ||
2313 | 109 | |||
2314 | 110 | void addTests_( const ::CppUT::TestSuitePtr &suite, | ||
2315 | 111 | ::CppUT::Impl::FixtureFactory &factory_ ) | ||
2316 | 112 | { | ||
2317 | 113 | ::CppUT::Impl::FixtureFactoryWrapper<CppUT_ThisType> fixtureFactory( factory_ ); | ||
2318 | 114 | ::CppTL::IntrusivePtr<FixtureType> fixture; | ||
2319 | 115 | |||
2320 | 116 | // CPPUT_TESTSUITE_EXTEND (if defined) | ||
2321 | 117 | ParentFixtureType::addTests_( suite, factory_ ); | ||
2322 | 118 | |||
2323 | 119 | // CPPUT_TEST( testMethod ) | ||
2324 | 120 | fixture = fixtureFactory(); | ||
2325 | 121 | suite->add( ::CppUT::makeFixtureTestCase( fixture, | ||
2326 | 122 | &FixtureType::testMethod, | ||
2327 | 123 | #testMethod ) ); | ||
2328 | 124 | |||
2329 | 125 | |||
2330 | 126 | } // if ended using CPPUT_ABSTRACT_TESTSUITE_END, stop there (suite() is not defined) | ||
2331 | 127 | |||
2332 | 128 | // if ended using CPPUT_TESTSUITE_END, define the static function suite | ||
2333 | 129 | static ::CppUT::TestSuitePtr suite() | ||
2334 | 130 | { | ||
2335 | 131 | ::CppUT::TestSuitePtr testSuite( ::CppUT::makeTestSuite( defaultSuiteName() ) ); | ||
2336 | 132 | ::CppUT::Impl::FixtureFactoryImpl<CppUT_ThisType> factory; | ||
2337 | 133 | addTests_( testSuite, factory ); | ||
2338 | 134 | return testSuite; | ||
2339 | 135 | } | ||
2340 | 136 | }; | ||
2341 | 137 | |||
2342 | 138 | */ | ||
2343 | 139 | |||
2344 | 140 | |||
2345 | 141 | 249 | ||
2346 | 142 | # if CPPUT_USE_RTTI_TO_NAME_SUITE | 250 | # if CPPUT_USE_RTTI_TO_NAME_SUITE |
2347 | 143 | # define CPPUT_TESTSUITE_NAME_FROM_TYPE( FixtureType ) \ | 251 | # define CPPUT_TESTSUITE_NAME_FROM_TYPE( FixtureType ) \ |
2348 | @@ -148,72 +256,19 @@ | |||
2349 | 148 | # endif // if CPPUT_USE_RTTI_TO_NAME_SUITE | 256 | # endif // if CPPUT_USE_RTTI_TO_NAME_SUITE |
2350 | 149 | 257 | ||
2351 | 150 | 258 | ||
2410 | 151 | 259 | /*! \ingroup group_testfixture | |
2411 | 152 | /*! \ingroup group_testfixture | 260 | */ |
2412 | 153 | */ | 261 | # define CPPUT_TESTSUITE_TEST_WITH_SPECIFICS( testMethod, specifics ) \ |
2355 | 154 | # define CPPUT_TESTSUITE_BEGIN( FixtureType ) \ | ||
2356 | 155 | public: \ | ||
2357 | 156 | typedef FixtureType CppUT_ThisType; \ | ||
2358 | 157 | \ | ||
2359 | 158 | static std::string defaultSuiteName() \ | ||
2360 | 159 | { \ | ||
2361 | 160 | return CPPUT_TESTSUITE_NAME_FROM_TYPE( FixtureType ); \ | ||
2362 | 161 | } \ | ||
2363 | 162 | \ | ||
2364 | 163 | static void addTests_( const ::CppUT::TestSuitePtr &suite, \ | ||
2365 | 164 | ::CppUT::Impl::FixtureFactory &factory_ ) \ | ||
2366 | 165 | { \ | ||
2367 | 166 | ::CppUT::Impl::FixtureFactoryWrapper<CppUT_ThisType> fixtureFactory( \ | ||
2368 | 167 | factory_ ); \ | ||
2369 | 168 | ::CppTL::IntrusivePtr<FixtureType> fixture | ||
2370 | 169 | |||
2371 | 170 | /*! \ingroup group_testfixture | ||
2372 | 171 | */ | ||
2373 | 172 | # define CPPUT_TESTSUITE_EXTEND( FixtureType, ParentFixtureType ) \ | ||
2374 | 173 | CPPUT_TESTSUITE_BEGIN( FixtureType ); \ | ||
2375 | 174 | ParentFixtureType::addTests_( suite, factory_ ) | ||
2376 | 175 | |||
2377 | 176 | /*! \ingroup group_testfixture | ||
2378 | 177 | */ | ||
2379 | 178 | # define CPPUT_TESTSUITE_END() \ | ||
2380 | 179 | } \ | ||
2381 | 180 | \ | ||
2382 | 181 | static ::CppUT::TestPtr suite( const std::string &name = std::string("") ) \ | ||
2383 | 182 | { \ | ||
2384 | 183 | std::string suiteName = name; \ | ||
2385 | 184 | if ( suiteName.empty() ) \ | ||
2386 | 185 | suiteName = defaultSuiteName(); \ | ||
2387 | 186 | ::CppUT::TestSuitePtr testSuite = ::CppUT::makeTestSuite( suiteName ); \ | ||
2388 | 187 | ::CppUT::Impl::FixtureFactoryImpl<CppUT_ThisType> factory; \ | ||
2389 | 188 | addTests_( testSuite, factory ); \ | ||
2390 | 189 | return ::CppTL::staticPointerCast< ::CppUT::Test >( testSuite ); \ | ||
2391 | 190 | } | ||
2392 | 191 | |||
2393 | 192 | /*! \ingroup group_testfixture | ||
2394 | 193 | */ | ||
2395 | 194 | # define CPPUT_ABSTRACT_TESTSUITE_END() \ | ||
2396 | 195 | } | ||
2397 | 196 | |||
2398 | 197 | /*! \ingroup group_testfixture | ||
2399 | 198 | */ | ||
2400 | 199 | # define CPPUT_TEST( testMethod ) \ | ||
2401 | 200 | fixture = fixtureFactory(); \ | ||
2402 | 201 | suite->add( ::CppUT::makeFixtureTestCase( fixture, \ | ||
2403 | 202 | ::CppTL::memfn0( fixture, \ | ||
2404 | 203 | &CppUT_ThisType::testMethod ), \ | ||
2405 | 204 | #testMethod ) ) | ||
2406 | 205 | |||
2407 | 206 | /*! \ingroup group_testfixture | ||
2408 | 207 | */ | ||
2409 | 208 | # define CPPUT_TEST_WITH_SPECIFICS( testMethod, specifics ) \ | ||
2413 | 209 | fixture = fixtureFactory(); \ | 262 | fixture = fixtureFactory(); \ |
2414 | 210 | addTestWithSpecifics( *suite, \ | 263 | addTestWithSpecifics( *suite, \ |
2419 | 211 | ::CppUT::makeFixtureTestCase( fixture, \ | 264 | ::CppUT::makeFixtureTestCase( ::CppTL::Type<CppUT_ThisType>(), \ |
2420 | 212 | ::CppTL::memfn0( fixture, \ | 265 | ::CppUT::CallFixtureRunMethod<CppUT_ThisType>::make( \ |
2421 | 213 | &CppUT_ThisType::testMethod ), \ | 266 | &CppUT_ThisType::testMethod ), \ |
2422 | 214 | #testMethod ), \ | 267 | #testMethod ), \ |
2423 | 215 | specifics ) | 268 | specifics ) |
2425 | 216 | 269 | ||
2426 | 270 | #endif | ||
2427 | 271 | |||
2428 | 217 | } // namespace CppUT | 272 | } // namespace CppUT |
2429 | 218 | 273 | ||
2430 | 219 | 274 | ||
2431 | 220 | 275 | ||
2432 | === modified file 'cppunit2/include/cpput/testfunction.h' | |||
2433 | --- cppunit2/include/cpput/testfunction.h 2007-08-15 15:48:29 +0000 | |||
2434 | +++ cppunit2/include/cpput/testfunction.h 2008-12-29 20:51:19 +0000 | |||
2435 | @@ -9,30 +9,31 @@ | |||
2436 | 9 | 9 | ||
2437 | 10 | namespace CppUT | 10 | namespace CppUT |
2438 | 11 | { | 11 | { |
2460 | 12 | class TestFunctionFactory | 12 | /// @todo move it to .cpp |
2461 | 13 | { | 13 | inline TestMeta |
2462 | 14 | public: | 14 | declareTestCaseFunction( void (*run)(), |
2463 | 15 | typedef TestPtr result_type; // Functor return type | 15 | const char *name, |
2464 | 16 | 16 | Suite &parentSuite ) | |
2465 | 17 | typedef void (*TestFn)(); | 17 | { |
2466 | 18 | 18 | TestMeta test = makeTestCase( run, name ); | |
2467 | 19 | TestFunctionFactory( TestFn test, const char *name ) | 19 | parentSuite.add( test ); |
2468 | 20 | : test_( test ) | 20 | return test; |
2469 | 21 | , name_( name ) | 21 | } |
2470 | 22 | { | 22 | |
2471 | 23 | } | 23 | /// @todo move it to .cpp |
2472 | 24 | 24 | inline TestMeta | |
2473 | 25 | TestPtr operator()() const | 25 | declareTestCaseFunction( void (*run)(), |
2474 | 26 | { | 26 | const MetaData &metaData, |
2475 | 27 | return makeTestCase( test_, name_ ); | 27 | Suite &parentSuite ) |
2476 | 28 | } | 28 | { |
2477 | 29 | 29 | TestMeta test = makeTestCase( run, metaData ); | |
2478 | 30 | TestFn test_; | 30 | parentSuite.add( test ); |
2479 | 31 | const char *name_; | 31 | return test; |
2480 | 32 | }; | 32 | } |
2481 | 33 | |||
2482 | 33 | } // end namespace CppUT | 34 | } // end namespace CppUT |
2483 | 34 | 35 | ||
2485 | 35 | /*! \brief Make the specified C function a test case and register it in the default Registry suite. | 36 | /*! \brief Make the specified C function a test case and register it in the current suite. |
2486 | 36 | * \code | 37 | * \code |
2487 | 37 | * static void myTest1() { | 38 | * static void myTest1() { |
2488 | 38 | * CPPUT_ASSERT_TRUE( false ); | 39 | * CPPUT_ASSERT_TRUE( false ); |
2489 | @@ -40,55 +41,58 @@ | |||
2490 | 40 | * CPPUT_REGISTER_TEST_FUNCTION( myTest1 ); | 41 | * CPPUT_REGISTER_TEST_FUNCTION( myTest1 ); |
2491 | 41 | * \endcode | 42 | * \endcode |
2492 | 42 | */ | 43 | */ |
2542 | 43 | #define CPPUT_REGISTER_TEST_FUNCTION( testFunction ) \ | 44 | #define _CPPUT_REGISTER_TEST_FUNCTION( testFunction ) \ |
2543 | 44 | CPPUT_REGISTER_TESTFACTORY_TO_DEFAULT( \ | 45 | static ::CppUT::TestMeta \ |
2544 | 45 | ::CppTL::fn0r( ::CppUT::TestFunctionFactory( &testFunction, #testFunction ) ) ) | 46 | CPPTL_MAKE_UNIQUE_NAME( cpputmeta ## testFunctionName ) = \ |
2545 | 46 | 47 | ::CppUT::declareTestCaseFunction( &testFunction, \ | |
2546 | 47 | /*! \brief Make the specified C function a test case and register it in the specified Registry suite. | 48 | #testFunction, \ |
2547 | 48 | * \code | 49 | CPPUT_CURRENT_SUITE() ) |
2548 | 49 | * static void myTest1() { | 50 | |
2549 | 50 | * CPPUT_ASSERT_TRUE( false ); | 51 | #define _CPPUT_REGISTER_TEST_FUNCTION_WITH_META( testFunction, metaData ) \ |
2550 | 51 | * } | 52 | static ::CppUT::TestMeta \ |
2551 | 52 | * CPPUT_REGISTER_TEST_FUNCTION_IN( myTest1, "BoolTest" ); | 53 | CPPTL_MAKE_UNIQUE_NAME( cpputmeta ## testFunctionName ) = \ |
2552 | 53 | * \endcode | 54 | ::CppUT::declareTestCaseFunction( &testFunction, \ |
2553 | 54 | */ | 55 | metaData, \ |
2554 | 55 | #define CPPUT_REGISTER_TEST_FUNCTION_IN( testFunction, parentSuiteName ) \ | 56 | CPPUT_CURRENT_SUITE() ) |
2555 | 56 | CPPUT_REGISTER_TESTFACTORY_IN( \ | 57 | |
2556 | 57 | ::CppTL::fn0r( ::CppUT::TestFunctionFactory( &testFunction, #testFunction )), \ | 58 | |
2557 | 58 | parentSuiteName ) | 59 | /*! \brief Declare and register a simple test case in the current suite. |
2558 | 59 | 60 | * The function is declared as a static void testFunction(). | |
2559 | 60 | /*! \brief Declare and register a simple test case in the default Registry suite. | 61 | * \code |
2560 | 61 | * The function is declared as a static void testFunction(). | 62 | * CPPUT_TEST_FUNCTION( myTest1 ) { |
2561 | 62 | * \code | 63 | * CPPUT_ASSERT_TRUE( false ); |
2562 | 63 | * CPPUT_TEST_FUNCTION( myTest1 ) { | 64 | * } |
2563 | 64 | * CPPUT_ASSERT_TRUE( false ); | 65 | * \endcode |
2564 | 65 | * } | 66 | */ |
2565 | 66 | * \endcode | 67 | #define CPPUT_TEST_FUNCTION( testFunctionName ) \ |
2566 | 67 | */ | 68 | static void testFunctionName(); \ |
2567 | 68 | #define CPPUT_TEST_FUNCTION( testFunctionName ) \ | 69 | _CPPUT_REGISTER_TEST_FUNCTION( testFunctionName ); \ |
2568 | 69 | static void testFunctionName(); \ | 70 | static void testFunctionName() |
2569 | 70 | CPPUT_REGISTER_TEST_FUNCTION( testFunctionName ); \ | 71 | |
2570 | 71 | static void testFunctionName() | 72 | /*! \brief Declare and register a simple test case in the current suite. |
2571 | 72 | 73 | * The function is declared as a static void testFunction(). | |
2572 | 73 | /*! \brief Declare and register a simple test case in the specified Registry suite. | 74 | * \code |
2573 | 74 | * The function is declared as a static void testFunction(). | 75 | * CPPUT_TEST_FUNCTION( myTest1 ) { |
2574 | 75 | * \code | 76 | * CPPUT_ASSERT_TRUE( false ); |
2575 | 76 | * CPPUT_TEST_FUNCTION_IN( myTest1, "BoolTests" ) { | 77 | * } |
2576 | 77 | * CPPUT_ASSERT_TRUE( false ); | 78 | * \endcode |
2577 | 78 | * } | 79 | */ |
2578 | 79 | * \endcode | 80 | #define CPPUT_TEST_FUNCTION_WITH_META( testFunctionName, metaData ) \ |
2579 | 80 | */ | 81 | namespace { \ |
2580 | 81 | #define CPPUT_TEST_FUNCTION_IN( testFunctionName, parentSuiteName ) \ | 82 | class CppUT##testFunctionName##Meta : public ::CppUT::TestExtendedDataFactory \ |
2581 | 82 | static void testFunctionName(); \ | 83 | { \ |
2582 | 83 | CPPUT_REGISTER_TEST_FUNCTION_IN( testFunctionName, parentSuiteName ); \ | 84 | public: \ |
2583 | 84 | static void testFunctionName() | 85 | static ::CppUT::MetaData cppUTRegisterTestCase() \ |
2584 | 85 | 86 | { \ | |
2585 | 86 | /* @todo support for extended test data | 87 | return ::CppUT::MetaData( #testFunctionName, metaData ); \ |
2586 | 87 | CPPUT_REGISTER_TEST_FUNCTION_IN_DEFAULT_WITH_SPECIFICS( | 88 | } \ |
2587 | 88 | myTest, | 89 | }; \ |
2588 | 89 | (timeOut(0.2), | 90 | } \ |
2589 | 90 | describe("Always fails")) ) | 91 | static void testFunctionName(); \ |
2590 | 91 | */ | 92 | _CPPUT_REGISTER_TEST_FUNCTION_WITH_META( testFunctionName, \ |
2591 | 93 | CppUT##testFunctionName##Meta::cppUTRegisterTestCase() ); \ | ||
2592 | 94 | static void testFunctionName() | ||
2593 | 95 | |||
2594 | 92 | 96 | ||
2595 | 93 | 97 | ||
2596 | 94 | #endif // CPPUT_TESTFUNCTION_H_INCLUDED | 98 | #endif // CPPUT_TESTFUNCTION_H_INCLUDED |
2597 | 95 | 99 | ||
2598 | === modified file 'cppunit2/include/cpput/testinfo.h' | |||
2599 | --- cppunit2/include/cpput/testinfo.h 2008-07-13 06:19:20 +0000 | |||
2600 | +++ cppunit2/include/cpput/testinfo.h 2008-12-13 10:11:21 +0000 | |||
2601 | @@ -303,7 +303,7 @@ | |||
2602 | 303 | * For simplicity, we will use the following compact form for reference : | 303 | * For simplicity, we will use the following compact form for reference : |
2603 | 304 | * x += f + l / checkCond( condition ); | 304 | * x += f + l / checkCond( condition ); |
2604 | 305 | * checkCond must returns an CheckerResult which as overloaded operator /. | 305 | * checkCond must returns an CheckerResult which as overloaded operator /. |
2606 | 306 | * operator = evaluate right to left | 306 | * operator += evaluate right to left |
2607 | 307 | * operator + evaluate left to right | 307 | * operator + evaluate left to right |
2608 | 308 | * operator / evaluate left to right and as priority over +. | 308 | * operator / evaluate left to right and as priority over +. |
2609 | 309 | * So 'condition expression' is evaluted first, then checkCond(condition) is evaluated. | 309 | * So 'condition expression' is evaluted first, then checkCond(condition) is evaluated. |
2610 | @@ -428,7 +428,7 @@ | |||
2611 | 428 | * \param name Name of the resource to obtains. This resource must have been | 428 | * \param name Name of the resource to obtains. This resource must have been |
2612 | 429 | * declared in the list of resource required by the test case. | 429 | * declared in the list of resource required by the test case. |
2613 | 430 | * \warning This function may only be called inside a test case (setUp, run or tearDown). | 430 | * \warning This function may only be called inside a test case (setUp, run or tearDown). |
2615 | 431 | * \see AbstractTestCase::requireResource, ResourceHandlerRegistry. | 431 | * \see TestCase::requireResource, ResourceHandlerRegistry. |
2616 | 432 | */ | 432 | */ |
2617 | 433 | Resource &getResource( const ResourceName &name ); | 433 | Resource &getResource( const ResourceName &name ); |
2618 | 434 | 434 | ||
2619 | @@ -460,7 +460,7 @@ | |||
2620 | 460 | * \param name Name of the resource to obtains. This resource must have been | 460 | * \param name Name of the resource to obtains. This resource must have been |
2621 | 461 | * declared in the list of resource required by the test case. | 461 | * declared in the list of resource required by the test case. |
2622 | 462 | * \warning This function may only be called inside a test case (setUp, run or tearDown). | 462 | * \warning This function may only be called inside a test case (setUp, run or tearDown). |
2624 | 463 | * \see AbstractTestCase::requireResource, ResourceHandlerRegistry. | 463 | * \see TestCase::requireResource, ResourceHandlerRegistry. |
2625 | 464 | */ | 464 | */ |
2626 | 465 | Resource &CPPUT_API getResource( const ResourceName &name ); | 465 | Resource &CPPUT_API getResource( const ResourceName &name ); |
2627 | 466 | 466 | ||
2628 | 467 | 467 | ||
2629 | === removed file 'cppunit2/include/cpput/testsuite.h' | |||
2630 | --- cppunit2/include/cpput/testsuite.h 2006-06-05 10:02:56 +0000 | |||
2631 | +++ cppunit2/include/cpput/testsuite.h 1970-01-01 00:00:00 +0000 | |||
2632 | @@ -1,64 +0,0 @@ | |||
2633 | 1 | #ifndef CPPUT_TESTSUITE_H_INCLUDED | ||
2634 | 2 | # define CPPUT_TESTSUITE_H_INCLUDED | ||
2635 | 3 | |||
2636 | 4 | # include <cpput/test.h> | ||
2637 | 5 | # include <deque> | ||
2638 | 6 | |||
2639 | 7 | |||
2640 | 8 | namespace CppUT { | ||
2641 | 9 | |||
2642 | 10 | /*! \brief An abstract test suite that represents a collection of Test. | ||
2643 | 11 | * \ingroup group_testcases | ||
2644 | 12 | */ | ||
2645 | 13 | class CPPUT_API AbstractTestSuite : public Test | ||
2646 | 14 | { | ||
2647 | 15 | public: | ||
2648 | 16 | AbstractTestSuite(); | ||
2649 | 17 | |||
2650 | 18 | AbstractTestSuite( const std::string &name ); | ||
2651 | 19 | |||
2652 | 20 | virtual int testCount() const = 0; | ||
2653 | 21 | |||
2654 | 22 | virtual TestPtr testAt( int index ) const = 0; | ||
2655 | 23 | |||
2656 | 24 | public: // overridden from Test | ||
2657 | 25 | void accept( TestVisitor &visitor ); | ||
2658 | 26 | |||
2659 | 27 | /// Returns \c true if the class is derived from AbstractTestCase. | ||
2660 | 28 | bool isTestCase() const; | ||
2661 | 29 | }; | ||
2662 | 30 | |||
2663 | 31 | |||
2664 | 32 | /*! \brief A test suite that represents a collection of Test. | ||
2665 | 33 | * \ingroup group_testcases | ||
2666 | 34 | */ | ||
2667 | 35 | class CPPUT_API TestSuite : public AbstractTestSuite | ||
2668 | 36 | { | ||
2669 | 37 | public: | ||
2670 | 38 | TestSuite( const std::string &name ); | ||
2671 | 39 | |||
2672 | 40 | void add( const TestPtr &test ); | ||
2673 | 41 | |||
2674 | 42 | void add( const TestSuitePtr &test ); | ||
2675 | 43 | |||
2676 | 44 | // overridden from AbstractTestSuite | ||
2677 | 45 | int testCount() const; | ||
2678 | 46 | |||
2679 | 47 | TestPtr testAt( int index ) const; | ||
2680 | 48 | |||
2681 | 49 | private: | ||
2682 | 50 | typedef std::deque<TestPtr> Tests; | ||
2683 | 51 | Tests tests_; | ||
2684 | 52 | }; | ||
2685 | 53 | |||
2686 | 54 | |||
2687 | 55 | /*! \brief Creates a TestSuite with the specified name. | ||
2688 | 56 | * \ingroup group_testcases | ||
2689 | 57 | */ | ||
2690 | 58 | TestSuitePtr CPPUT_API makeTestSuite( const std::string &name ); | ||
2691 | 59 | |||
2692 | 60 | } // namespace CppUT | ||
2693 | 61 | |||
2694 | 62 | |||
2695 | 63 | |||
2696 | 64 | #endif // CPPUT_TESTSUITE_H_INCLUDED | ||
2697 | 65 | 0 | ||
2698 | === removed file 'cppunit2/include/cpput/testvisitor.h' | |||
2699 | --- cppunit2/include/cpput/testvisitor.h 2005-09-06 05:14:49 +0000 | |||
2700 | +++ cppunit2/include/cpput/testvisitor.h 1970-01-01 00:00:00 +0000 | |||
2701 | @@ -1,26 +0,0 @@ | |||
2702 | 1 | #ifndef CPPUT_TESTVISITOR_H_INCLUDED | ||
2703 | 2 | # define CPPUT_TESTVISITOR_H_INCLUDED | ||
2704 | 3 | |||
2705 | 4 | # include <cpput/config.h> | ||
2706 | 5 | # include <cpput/forwards.h> | ||
2707 | 6 | |||
2708 | 7 | namespace CppUT { | ||
2709 | 8 | |||
2710 | 9 | class CPPUT_API TestVisitor | ||
2711 | 10 | { | ||
2712 | 11 | public: | ||
2713 | 12 | virtual ~TestVisitor() | ||
2714 | 13 | { | ||
2715 | 14 | } | ||
2716 | 15 | |||
2717 | 16 | virtual void visitTestCase( AbstractTestCase &test ) = 0; | ||
2718 | 17 | |||
2719 | 18 | virtual void visitTestSuite( AbstractTestSuite &suite ) = 0; | ||
2720 | 19 | }; | ||
2721 | 20 | |||
2722 | 21 | |||
2723 | 22 | } // namespace CppUT | ||
2724 | 23 | |||
2725 | 24 | |||
2726 | 25 | |||
2727 | 26 | #endif // CPPUT_TESTVISITOR_H_INCLUDED | ||
2728 | 27 | 0 | ||
2729 | === added directory 'cppunit2/makefiles/vs6' | |||
2730 | === added file 'cppunit2/makefiles/vs6/cpput_lib.dsp' | |||
2731 | --- cppunit2/makefiles/vs6/cpput_lib.dsp 1970-01-01 00:00:00 +0000 | |||
2732 | +++ cppunit2/makefiles/vs6/cpput_lib.dsp 2009-03-13 21:31:02 +0000 | |||
2733 | @@ -0,0 +1,360 @@ | |||
2734 | 1 | # Microsoft Developer Studio Project File - Name="cpput_lib" - Package Owner=<4> | ||
2735 | 2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 | ||
2736 | 3 | # ** DO NOT EDIT ** | ||
2737 | 4 | |||
2738 | 5 | # TARGTYPE "Win32 (x86) Static Library" 0x0104 | ||
2739 | 6 | |||
2740 | 7 | CFG=cpput_lib - Win32 Debug | ||
2741 | 8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE, | ||
2742 | 9 | !MESSAGE use the Export Makefile command and run | ||
2743 | 10 | !MESSAGE | ||
2744 | 11 | !MESSAGE NMAKE /f "cpput_lib.mak". | ||
2745 | 12 | !MESSAGE | ||
2746 | 13 | !MESSAGE You can specify a configuration when running NMAKE | ||
2747 | 14 | !MESSAGE by defining the macro CFG on the command line. For example: | ||
2748 | 15 | !MESSAGE | ||
2749 | 16 | !MESSAGE NMAKE /f "cpput_lib.mak" CFG="cpput_lib - Win32 Debug" | ||
2750 | 17 | !MESSAGE | ||
2751 | 18 | !MESSAGE Possible choices for configuration are: | ||
2752 | 19 | !MESSAGE | ||
2753 | 20 | !MESSAGE "cpput_lib - Win32 Release" (based on "Win32 (x86) Static Library") | ||
2754 | 21 | !MESSAGE "cpput_lib - Win32 Debug" (based on "Win32 (x86) Static Library") | ||
2755 | 22 | !MESSAGE | ||
2756 | 23 | |||
2757 | 24 | # Begin Project | ||
2758 | 25 | # PROP AllowPerConfigDependencies 0 | ||
2759 | 26 | # PROP Scc_ProjName "" | ||
2760 | 27 | # PROP Scc_LocalPath "" | ||
2761 | 28 | CPP=cl.exe | ||
2762 | 29 | RSC=rc.exe | ||
2763 | 30 | |||
2764 | 31 | !IF "$(CFG)" == "cpput_lib - Win32 Release" | ||
2765 | 32 | |||
2766 | 33 | # PROP BASE Use_MFC 0 | ||
2767 | 34 | # PROP BASE Use_Debug_Libraries 0 | ||
2768 | 35 | # PROP BASE Output_Dir "Release" | ||
2769 | 36 | # PROP BASE Intermediate_Dir "Release" | ||
2770 | 37 | # PROP BASE Target_Dir "" | ||
2771 | 38 | # PROP Use_MFC 0 | ||
2772 | 39 | # PROP Use_Debug_Libraries 0 | ||
2773 | 40 | # PROP Output_Dir "../../build/msvc6/cpput_lib/Release" | ||
2774 | 41 | # PROP Intermediate_Dir "../../build/msvc6/cpput_lib/Release" | ||
2775 | 42 | # PROP Target_Dir "" | ||
2776 | 43 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c | ||
2777 | 44 | # ADD CPP /nologo /MD /W3 /GR /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c | ||
2778 | 45 | # ADD BASE RSC /l 0x40c /d "NDEBUG" | ||
2779 | 46 | # ADD RSC /l 0x40c /d "NDEBUG" | ||
2780 | 47 | BSC32=bscmake.exe | ||
2781 | 48 | # ADD BASE BSC32 /nologo | ||
2782 | 49 | # ADD BSC32 /nologo | ||
2783 | 50 | LIB32=link.exe -lib | ||
2784 | 51 | # ADD BASE LIB32 /nologo | ||
2785 | 52 | # ADD LIB32 /nologo | ||
2786 | 53 | |||
2787 | 54 | !ELSEIF "$(CFG)" == "cpput_lib - Win32 Debug" | ||
2788 | 55 | |||
2789 | 56 | # PROP BASE Use_MFC 0 | ||
2790 | 57 | # PROP BASE Use_Debug_Libraries 1 | ||
2791 | 58 | # PROP BASE Output_Dir "Debug" | ||
2792 | 59 | # PROP BASE Intermediate_Dir "Debug" | ||
2793 | 60 | # PROP BASE Target_Dir "" | ||
2794 | 61 | # PROP Use_MFC 0 | ||
2795 | 62 | # PROP Use_Debug_Libraries 1 | ||
2796 | 63 | # PROP Output_Dir "../../build/msvc6/cpput_lib/Debug" | ||
2797 | 64 | # PROP Intermediate_Dir "../../build/msvc6/cpput_lib/Debug" | ||
2798 | 65 | # PROP Target_Dir "" | ||
2799 | 66 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c | ||
2800 | 67 | # ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c | ||
2801 | 68 | # ADD BASE RSC /l 0x40c /d "_DEBUG" | ||
2802 | 69 | # ADD RSC /l 0x40c /d "_DEBUG" | ||
2803 | 70 | BSC32=bscmake.exe | ||
2804 | 71 | # ADD BASE BSC32 /nologo | ||
2805 | 72 | # ADD BSC32 /nologo | ||
2806 | 73 | LIB32=link.exe -lib | ||
2807 | 74 | # ADD BASE LIB32 /nologo | ||
2808 | 75 | # ADD LIB32 /nologo | ||
2809 | 76 | |||
2810 | 77 | !ENDIF | ||
2811 | 78 | |||
2812 | 79 | # Begin Target | ||
2813 | 80 | |||
2814 | 81 | # Name "cpput_lib - Win32 Release" | ||
2815 | 82 | # Name "cpput_lib - Win32 Debug" | ||
2816 | 83 | # Begin Group "cpptl" | ||
2817 | 84 | |||
2818 | 85 | # PROP Default_Filter "" | ||
2819 | 86 | # Begin Source File | ||
2820 | 87 | |||
2821 | 88 | SOURCE=..\..\include\cpptl\_stlimpl.h | ||
2822 | 89 | # End Source File | ||
2823 | 90 | # Begin Source File | ||
2824 | 91 | |||
2825 | 92 | SOURCE=..\..\include\cpptl\any.h | ||
2826 | 93 | # End Source File | ||
2827 | 94 | # Begin Source File | ||
2828 | 95 | |||
2829 | 96 | SOURCE=..\..\include\cpptl\atomiccounter.h | ||
2830 | 97 | # End Source File | ||
2831 | 98 | # Begin Source File | ||
2832 | 99 | |||
2833 | 100 | SOURCE=..\..\include\cpptl\autolink.h | ||
2834 | 101 | # End Source File | ||
2835 | 102 | # Begin Source File | ||
2836 | 103 | |||
2837 | 104 | SOURCE=..\..\include\cpptl\config.h | ||
2838 | 105 | # End Source File | ||
2839 | 106 | # Begin Source File | ||
2840 | 107 | |||
2841 | 108 | SOURCE=..\..\include\cpptl\conststring.h | ||
2842 | 109 | # End Source File | ||
2843 | 110 | # Begin Source File | ||
2844 | 111 | |||
2845 | 112 | SOURCE=..\..\include\cpptl\cpptl_autolink.h | ||
2846 | 113 | # End Source File | ||
2847 | 114 | # Begin Source File | ||
2848 | 115 | |||
2849 | 116 | SOURCE=..\..\include\cpptl\enumerator.h | ||
2850 | 117 | # End Source File | ||
2851 | 118 | # Begin Source File | ||
2852 | 119 | |||
2853 | 120 | SOURCE=..\..\include\cpptl\format.h | ||
2854 | 121 | # End Source File | ||
2855 | 122 | # Begin Source File | ||
2856 | 123 | |||
2857 | 124 | SOURCE=..\..\include\cpptl\forwards.h | ||
2858 | 125 | # End Source File | ||
2859 | 126 | # Begin Source File | ||
2860 | 127 | |||
2861 | 128 | SOURCE=..\..\include\cpptl\functor.h | ||
2862 | 129 | # End Source File | ||
2863 | 130 | # Begin Source File | ||
2864 | 131 | |||
2865 | 132 | SOURCE=..\..\include\cpptl\intrusiveptr.h | ||
2866 | 133 | # End Source File | ||
2867 | 134 | # Begin Source File | ||
2868 | 135 | |||
2869 | 136 | SOURCE=..\..\src\cpptl\json_reader.cpp | ||
2870 | 137 | # End Source File | ||
2871 | 138 | # Begin Source File | ||
2872 | 139 | |||
2873 | 140 | SOURCE=..\..\src\cpptl\json_value.cpp | ||
2874 | 141 | # End Source File | ||
2875 | 142 | # Begin Source File | ||
2876 | 143 | |||
2877 | 144 | SOURCE=..\..\src\cpptl\json_valueiterator.inl | ||
2878 | 145 | # End Source File | ||
2879 | 146 | # Begin Source File | ||
2880 | 147 | |||
2881 | 148 | SOURCE=..\..\src\cpptl\json_writer.cpp | ||
2882 | 149 | # End Source File | ||
2883 | 150 | # Begin Source File | ||
2884 | 151 | |||
2885 | 152 | SOURCE=..\..\include\cpptl\reflection.h | ||
2886 | 153 | # End Source File | ||
2887 | 154 | # Begin Source File | ||
2888 | 155 | |||
2889 | 156 | SOURCE=..\..\include\cpptl\reflection.inl | ||
2890 | 157 | # End Source File | ||
2891 | 158 | # Begin Source File | ||
2892 | 159 | |||
2893 | 160 | SOURCE=..\..\include\cpptl\reflectionimpl10.h | ||
2894 | 161 | # End Source File | ||
2895 | 162 | # Begin Source File | ||
2896 | 163 | |||
2897 | 164 | SOURCE=..\..\include\cpptl\scopedptr.h | ||
2898 | 165 | # End Source File | ||
2899 | 166 | # Begin Source File | ||
2900 | 167 | |||
2901 | 168 | SOURCE=..\..\include\cpptl\sharedptr.h | ||
2902 | 169 | # End Source File | ||
2903 | 170 | # Begin Source File | ||
2904 | 171 | |||
2905 | 172 | SOURCE=..\..\include\cpptl\smallmap.h | ||
2906 | 173 | # End Source File | ||
2907 | 174 | # Begin Source File | ||
2908 | 175 | |||
2909 | 176 | SOURCE=..\..\include\cpptl\stringtools.h | ||
2910 | 177 | # End Source File | ||
2911 | 178 | # Begin Source File | ||
2912 | 179 | |||
2913 | 180 | SOURCE=..\..\src\cpptl\thread.cpp | ||
2914 | 181 | # End Source File | ||
2915 | 182 | # Begin Source File | ||
2916 | 183 | |||
2917 | 184 | SOURCE=..\..\include\cpptl\thread.h | ||
2918 | 185 | # End Source File | ||
2919 | 186 | # Begin Source File | ||
2920 | 187 | |||
2921 | 188 | SOURCE=..\..\include\cpptl\thread.inl | ||
2922 | 189 | # End Source File | ||
2923 | 190 | # Begin Source File | ||
2924 | 191 | |||
2925 | 192 | SOURCE=..\..\include\cpptl\typeinfo.h | ||
2926 | 193 | # End Source File | ||
2927 | 194 | # Begin Source File | ||
2928 | 195 | |||
2929 | 196 | SOURCE=..\..\include\cpptl\typename.h | ||
2930 | 197 | # End Source File | ||
2931 | 198 | # Begin Source File | ||
2932 | 199 | |||
2933 | 200 | SOURCE=..\..\include\cpptl\typetraits.h | ||
2934 | 201 | # End Source File | ||
2935 | 202 | # Begin Source File | ||
2936 | 203 | |||
2937 | 204 | SOURCE=..\..\include\cpptl\value.h | ||
2938 | 205 | # End Source File | ||
2939 | 206 | # End Group | ||
2940 | 207 | # Begin Group "cpput" | ||
2941 | 208 | |||
2942 | 209 | # PROP Default_Filter "" | ||
2943 | 210 | # Begin Source File | ||
2944 | 211 | |||
2945 | 212 | SOURCE=..\..\src\cpput\assert.cpp | ||
2946 | 213 | # End Source File | ||
2947 | 214 | # Begin Source File | ||
2948 | 215 | |||
2949 | 216 | SOURCE=..\..\include\cpput\assertcommon.h | ||
2950 | 217 | # End Source File | ||
2951 | 218 | # Begin Source File | ||
2952 | 219 | |||
2953 | 220 | SOURCE=..\..\include\cpput\assertenum.h | ||
2954 | 221 | # End Source File | ||
2955 | 222 | # Begin Source File | ||
2956 | 223 | |||
2957 | 224 | SOURCE=..\..\src\cpput\assertstring.cpp | ||
2958 | 225 | # End Source File | ||
2959 | 226 | # Begin Source File | ||
2960 | 227 | |||
2961 | 228 | SOURCE=..\..\include\cpput\assertstring.h | ||
2962 | 229 | # End Source File | ||
2963 | 230 | # Begin Source File | ||
2964 | 231 | |||
2965 | 232 | SOURCE=..\..\include\cpput\autolink.h | ||
2966 | 233 | # End Source File | ||
2967 | 234 | # Begin Source File | ||
2968 | 235 | |||
2969 | 236 | SOURCE=..\..\include\cpput\config.h | ||
2970 | 237 | # End Source File | ||
2971 | 238 | # Begin Source File | ||
2972 | 239 | |||
2973 | 240 | SOURCE=..\..\src\cpput\dllproxy.cpp | ||
2974 | 241 | # End Source File | ||
2975 | 242 | # Begin Source File | ||
2976 | 243 | |||
2977 | 244 | SOURCE=..\..\include\cpput\dllproxy.h | ||
2978 | 245 | # End Source File | ||
2979 | 246 | # Begin Source File | ||
2980 | 247 | |||
2981 | 248 | SOURCE=..\..\include\cpput\equality.h | ||
2982 | 249 | # End Source File | ||
2983 | 250 | # Begin Source File | ||
2984 | 251 | |||
2985 | 252 | SOURCE=..\..\src\cpput\exceptionguard.cpp | ||
2986 | 253 | # End Source File | ||
2987 | 254 | # Begin Source File | ||
2988 | 255 | |||
2989 | 256 | SOURCE=..\..\include\cpput\exceptionguard.h | ||
2990 | 257 | # End Source File | ||
2991 | 258 | # Begin Source File | ||
2992 | 259 | |||
2993 | 260 | SOURCE=..\..\src\cpput\extendeddata.cpp | ||
2994 | 261 | # End Source File | ||
2995 | 262 | # Begin Source File | ||
2996 | 263 | |||
2997 | 264 | SOURCE=..\..\include\cpput\extendeddata.h | ||
2998 | 265 | # End Source File | ||
2999 | 266 | # Begin Source File | ||
3000 | 267 | |||
3001 | 268 | SOURCE=..\..\include\cpput\forwards.h | ||
3002 | 269 | # End Source File | ||
3003 | 270 | # Begin Source File | ||
3004 | 271 | |||
3005 | 272 | SOURCE=..\..\include\cpput\inputbasedtest.h | ||
3006 | 273 | # End Source File | ||
3007 | 274 | # Begin Source File | ||
3008 | 275 | |||
3009 | 276 | SOURCE=..\..\include\cpput\interface.h | ||
3010 | 277 | # End Source File | ||
3011 | 278 | # Begin Source File | ||
3012 | 279 | |||
3013 | 280 | SOURCE=..\..\include\cpput\lightfixture.h | ||
3014 | 281 | # End Source File | ||
3015 | 282 | # Begin Source File | ||
3016 | 283 | |||
3017 | 284 | SOURCE=..\..\src\cpput\lighttestrunner.cpp | ||
3018 | 285 | # End Source File | ||
3019 | 286 | # Begin Source File | ||
3020 | 287 | |||
3021 | 288 | SOURCE=..\..\include\cpput\lighttestrunner.h | ||
3022 | 289 | # End Source File | ||
3023 | 290 | # Begin Source File | ||
3024 | 291 | |||
3025 | 292 | SOURCE=..\..\src\cpput\message.cpp | ||
3026 | 293 | # End Source File | ||
3027 | 294 | # Begin Source File | ||
3028 | 295 | |||
3029 | 296 | SOURCE=..\..\include\cpput\message.h | ||
3030 | 297 | # End Source File | ||
3031 | 298 | # Begin Source File | ||
3032 | 299 | |||
3033 | 300 | SOURCE=..\..\include\cpput\opentestadaptor.h | ||
3034 | 301 | # End Source File | ||
3035 | 302 | # Begin Source File | ||
3036 | 303 | |||
3037 | 304 | SOURCE=..\..\src\cpput\registry.cpp | ||
3038 | 305 | # End Source File | ||
3039 | 306 | # Begin Source File | ||
3040 | 307 | |||
3041 | 308 | SOURCE=..\..\include\cpput\registry.h | ||
3042 | 309 | # End Source File | ||
3043 | 310 | # Begin Source File | ||
3044 | 311 | |||
3045 | 312 | SOURCE=..\..\src\cpput\resource.cpp | ||
3046 | 313 | # End Source File | ||
3047 | 314 | # Begin Source File | ||
3048 | 315 | |||
3049 | 316 | SOURCE=..\..\include\cpput\resource.h | ||
3050 | 317 | # End Source File | ||
3051 | 318 | # Begin Source File | ||
3052 | 319 | |||
3053 | 320 | SOURCE=..\..\include\cpput\stringize.h | ||
3054 | 321 | # End Source File | ||
3055 | 322 | # Begin Source File | ||
3056 | 323 | |||
3057 | 324 | SOURCE=..\..\include\cpput\tablefixture.h | ||
3058 | 325 | # End Source File | ||
3059 | 326 | # Begin Source File | ||
3060 | 327 | |||
3061 | 328 | SOURCE=..\..\include\cpput\test.h | ||
3062 | 329 | # End Source File | ||
3063 | 330 | # Begin Source File | ||
3064 | 331 | |||
3065 | 332 | SOURCE=..\..\src\cpput\testcase.cpp | ||
3066 | 333 | # End Source File | ||
3067 | 334 | # Begin Source File | ||
3068 | 335 | |||
3069 | 336 | SOURCE=..\..\include\cpput\testcase.h | ||
3070 | 337 | # End Source File | ||
3071 | 338 | # Begin Source File | ||
3072 | 339 | |||
3073 | 340 | SOURCE=..\..\include\cpput\testfixture.h | ||
3074 | 341 | # End Source File | ||
3075 | 342 | # Begin Source File | ||
3076 | 343 | |||
3077 | 344 | SOURCE=..\..\include\cpput\testfunction.h | ||
3078 | 345 | # End Source File | ||
3079 | 346 | # Begin Source File | ||
3080 | 347 | |||
3081 | 348 | SOURCE=..\..\src\cpput\testinfo.cpp | ||
3082 | 349 | # End Source File | ||
3083 | 350 | # Begin Source File | ||
3084 | 351 | |||
3085 | 352 | SOURCE=..\..\include\cpput\testinfo.h | ||
3086 | 353 | # End Source File | ||
3087 | 354 | # Begin Source File | ||
3088 | 355 | |||
3089 | 356 | SOURCE=..\..\include\cpput\translate.h | ||
3090 | 357 | # End Source File | ||
3091 | 358 | # End Group | ||
3092 | 359 | # End Target | ||
3093 | 360 | # End Project | ||
3094 | 0 | 361 | ||
3095 | === added file 'cppunit2/makefiles/vs6/cpput_lib.dsw' | |||
3096 | --- cppunit2/makefiles/vs6/cpput_lib.dsw 1970-01-01 00:00:00 +0000 | |||
3097 | +++ cppunit2/makefiles/vs6/cpput_lib.dsw 2009-03-13 21:31:02 +0000 | |||
3098 | @@ -0,0 +1,44 @@ | |||
3099 | 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 | ||
3100 | 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! | ||
3101 | 3 | |||
3102 | 4 | ############################################################################### | ||
3103 | 5 | |||
3104 | 6 | Project: "cpput_lib"=".\cpput_lib.dsp" - Package Owner=<4> | ||
3105 | 7 | |||
3106 | 8 | Package=<5> | ||
3107 | 9 | {{{ | ||
3108 | 10 | }}} | ||
3109 | 11 | |||
3110 | 12 | Package=<4> | ||
3111 | 13 | {{{ | ||
3112 | 14 | }}} | ||
3113 | 15 | |||
3114 | 16 | ############################################################################### | ||
3115 | 17 | |||
3116 | 18 | Project: "cpput_test"=".\cpput_test.dsp" - Package Owner=<4> | ||
3117 | 19 | |||
3118 | 20 | Package=<5> | ||
3119 | 21 | {{{ | ||
3120 | 22 | }}} | ||
3121 | 23 | |||
3122 | 24 | Package=<4> | ||
3123 | 25 | {{{ | ||
3124 | 26 | Begin Project Dependency | ||
3125 | 27 | Project_Dep_Name cpput_lib | ||
3126 | 28 | End Project Dependency | ||
3127 | 29 | }}} | ||
3128 | 30 | |||
3129 | 31 | ############################################################################### | ||
3130 | 32 | |||
3131 | 33 | Global: | ||
3132 | 34 | |||
3133 | 35 | Package=<5> | ||
3134 | 36 | {{{ | ||
3135 | 37 | }}} | ||
3136 | 38 | |||
3137 | 39 | Package=<3> | ||
3138 | 40 | {{{ | ||
3139 | 41 | }}} | ||
3140 | 42 | |||
3141 | 43 | ############################################################################### | ||
3142 | 44 | |||
3143 | 0 | 45 | ||
3144 | === added file 'cppunit2/makefiles/vs6/cpput_test.dsp' | |||
3145 | --- cppunit2/makefiles/vs6/cpput_test.dsp 1970-01-01 00:00:00 +0000 | |||
3146 | +++ cppunit2/makefiles/vs6/cpput_test.dsp 2009-03-13 21:31:02 +0000 | |||
3147 | @@ -0,0 +1,178 @@ | |||
3148 | 1 | # Microsoft Developer Studio Project File - Name="cpput_test" - Package Owner=<4> | ||
3149 | 2 | # Microsoft Developer Studio Generated Build File, Format Version 6.00 | ||
3150 | 3 | # ** DO NOT EDIT ** | ||
3151 | 4 | |||
3152 | 5 | # TARGTYPE "Win32 (x86) Console Application" 0x0103 | ||
3153 | 6 | |||
3154 | 7 | CFG=cpput_test - Win32 Debug | ||
3155 | 8 | !MESSAGE This is not a valid makefile. To build this project using NMAKE, | ||
3156 | 9 | !MESSAGE use the Export Makefile command and run | ||
3157 | 10 | !MESSAGE | ||
3158 | 11 | !MESSAGE NMAKE /f "cpput_test.mak". | ||
3159 | 12 | !MESSAGE | ||
3160 | 13 | !MESSAGE You can specify a configuration when running NMAKE | ||
3161 | 14 | !MESSAGE by defining the macro CFG on the command line. For example: | ||
3162 | 15 | !MESSAGE | ||
3163 | 16 | !MESSAGE NMAKE /f "cpput_test.mak" CFG="cpput_test - Win32 Debug" | ||
3164 | 17 | !MESSAGE | ||
3165 | 18 | !MESSAGE Possible choices for configuration are: | ||
3166 | 19 | !MESSAGE | ||
3167 | 20 | !MESSAGE "cpput_test - Win32 Release" (based on "Win32 (x86) Console Application") | ||
3168 | 21 | !MESSAGE "cpput_test - Win32 Debug" (based on "Win32 (x86) Console Application") | ||
3169 | 22 | !MESSAGE | ||
3170 | 23 | |||
3171 | 24 | # Begin Project | ||
3172 | 25 | # PROP AllowPerConfigDependencies 0 | ||
3173 | 26 | # PROP Scc_ProjName "" | ||
3174 | 27 | # PROP Scc_LocalPath "" | ||
3175 | 28 | CPP=cl.exe | ||
3176 | 29 | RSC=rc.exe | ||
3177 | 30 | |||
3178 | 31 | !IF "$(CFG)" == "cpput_test - Win32 Release" | ||
3179 | 32 | |||
3180 | 33 | # PROP BASE Use_MFC 0 | ||
3181 | 34 | # PROP BASE Use_Debug_Libraries 0 | ||
3182 | 35 | # PROP BASE Output_Dir "Release" | ||
3183 | 36 | # PROP BASE Intermediate_Dir "Release" | ||
3184 | 37 | # PROP BASE Target_Dir "" | ||
3185 | 38 | # PROP Use_MFC 0 | ||
3186 | 39 | # PROP Use_Debug_Libraries 0 | ||
3187 | 40 | # PROP Output_Dir "../../build/msvc6/cpput_lib/Release" | ||
3188 | 41 | # PROP Intermediate_Dir "../../build/msvc6/cpput_lib/Release" | ||
3189 | 42 | # PROP Ignore_Export_Lib 0 | ||
3190 | 43 | # PROP Target_Dir "" | ||
3191 | 44 | # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c | ||
3192 | 45 | # ADD CPP /nologo /MD /W3 /GR /GX /O2 /I "../../include" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /FR /YX /FD /c | ||
3193 | 46 | # ADD BASE RSC /l 0x40c /d "NDEBUG" | ||
3194 | 47 | # ADD RSC /l 0x40c /d "NDEBUG" | ||
3195 | 48 | BSC32=bscmake.exe | ||
3196 | 49 | # ADD BASE BSC32 /nologo | ||
3197 | 50 | # ADD BSC32 /nologo | ||
3198 | 51 | LINK32=link.exe | ||
3199 | 52 | # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 | ||
3200 | 53 | # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /map /debug /debugtype:both /machine:I386 | ||
3201 | 54 | # SUBTRACT LINK32 /pdbtype:<none> | ||
3202 | 55 | |||
3203 | 56 | !ELSEIF "$(CFG)" == "cpput_test - Win32 Debug" | ||
3204 | 57 | |||
3205 | 58 | # PROP BASE Use_MFC 0 | ||
3206 | 59 | # PROP BASE Use_Debug_Libraries 1 | ||
3207 | 60 | # PROP BASE Output_Dir "Debug" | ||
3208 | 61 | # PROP BASE Intermediate_Dir "Debug" | ||
3209 | 62 | # PROP BASE Target_Dir "" | ||
3210 | 63 | # PROP Use_MFC 0 | ||
3211 | 64 | # PROP Use_Debug_Libraries 1 | ||
3212 | 65 | # PROP Output_Dir "../../build/msvc6/cpput_lib/Debug" | ||
3213 | 66 | # PROP Intermediate_Dir "../../build/msvc6/cpput_lib/Debug" | ||
3214 | 67 | # PROP Target_Dir "" | ||
3215 | 68 | # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c | ||
3216 | 69 | # ADD CPP /nologo /MDd /W3 /Gm /GR /GX /ZI /Od /I "../../include" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c | ||
3217 | 70 | # ADD BASE RSC /l 0x40c /d "_DEBUG" | ||
3218 | 71 | # ADD RSC /l 0x40c /d "_DEBUG" | ||
3219 | 72 | BSC32=bscmake.exe | ||
3220 | 73 | # ADD BASE BSC32 /nologo | ||
3221 | 74 | # ADD BSC32 /nologo | ||
3222 | 75 | LINK32=link.exe | ||
3223 | 76 | # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept | ||
3224 | 77 | # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept | ||
3225 | 78 | |||
3226 | 79 | !ENDIF | ||
3227 | 80 | |||
3228 | 81 | # Begin Target | ||
3229 | 82 | |||
3230 | 83 | # Name "cpput_test - Win32 Release" | ||
3231 | 84 | # Name "cpput_test - Win32 Debug" | ||
3232 | 85 | # Begin Source File | ||
3233 | 86 | |||
3234 | 87 | SOURCE=..\..\src\cpputtest\assertenumtest.cpp | ||
3235 | 88 | # End Source File | ||
3236 | 89 | # Begin Source File | ||
3237 | 90 | |||
3238 | 91 | SOURCE=..\..\src\cpputtest\assertenumtest.h | ||
3239 | 92 | # End Source File | ||
3240 | 93 | # Begin Source File | ||
3241 | 94 | |||
3242 | 95 | SOURCE=..\..\src\cpputtest\assertstringtest.cpp | ||
3243 | 96 | # End Source File | ||
3244 | 97 | # Begin Source File | ||
3245 | 98 | |||
3246 | 99 | SOURCE=..\..\src\cpputtest\enumeratortest.cpp | ||
3247 | 100 | # End Source File | ||
3248 | 101 | # Begin Source File | ||
3249 | 102 | |||
3250 | 103 | SOURCE=..\..\src\cpputtest\enumeratortest.h | ||
3251 | 104 | # End Source File | ||
3252 | 105 | # Begin Source File | ||
3253 | 106 | |||
3254 | 107 | SOURCE=..\..\src\cpputtest\main.cpp | ||
3255 | 108 | # End Source File | ||
3256 | 109 | # Begin Source File | ||
3257 | 110 | |||
3258 | 111 | SOURCE=..\..\src\cpputtest\minitestrunner.h | ||
3259 | 112 | # End Source File | ||
3260 | 113 | # Begin Source File | ||
3261 | 114 | |||
3262 | 115 | SOURCE=..\..\src\cpputtest\mocktestlistener.h | ||
3263 | 116 | # End Source File | ||
3264 | 117 | # Begin Source File | ||
3265 | 118 | |||
3266 | 119 | SOURCE=..\..\src\cpputtest\reflectiontest.cpp | ||
3267 | 120 | # End Source File | ||
3268 | 121 | # Begin Source File | ||
3269 | 122 | |||
3270 | 123 | SOURCE=..\..\src\cpputtest\reflectiontest.h | ||
3271 | 124 | # End Source File | ||
3272 | 125 | # Begin Source File | ||
3273 | 126 | |||
3274 | 127 | SOURCE=..\..\src\cpputtest\registrytest.cpp | ||
3275 | 128 | # End Source File | ||
3276 | 129 | # Begin Source File | ||
3277 | 130 | |||
3278 | 131 | SOURCE=..\..\src\cpputtest\registrytest.h | ||
3279 | 132 | # End Source File | ||
3280 | 133 | # Begin Source File | ||
3281 | 134 | |||
3282 | 135 | SOURCE=..\..\src\cpputtest\smallmaptest.cpp | ||
3283 | 136 | # End Source File | ||
3284 | 137 | # Begin Source File | ||
3285 | 138 | |||
3286 | 139 | SOURCE=..\..\src\cpputtest\smallmaptest.h | ||
3287 | 140 | # End Source File | ||
3288 | 141 | # Begin Source File | ||
3289 | 142 | |||
3290 | 143 | SOURCE=..\..\src\cpputtest\testbasicassertion.cpp | ||
3291 | 144 | # End Source File | ||
3292 | 145 | # Begin Source File | ||
3293 | 146 | |||
3294 | 147 | SOURCE=..\..\src\cpputtest\testexceptionguard.cpp | ||
3295 | 148 | # End Source File | ||
3296 | 149 | # Begin Source File | ||
3297 | 150 | |||
3298 | 151 | SOURCE=..\..\src\cpputtest\testfixturetest.cpp | ||
3299 | 152 | # End Source File | ||
3300 | 153 | # Begin Source File | ||
3301 | 154 | |||
3302 | 155 | SOURCE=..\..\src\cpputtest\testfunctor.cpp | ||
3303 | 156 | # End Source File | ||
3304 | 157 | # Begin Source File | ||
3305 | 158 | |||
3306 | 159 | SOURCE=..\..\src\cpputtest\testinfotest.cpp | ||
3307 | 160 | # End Source File | ||
3308 | 161 | # Begin Source File | ||
3309 | 162 | |||
3310 | 163 | SOURCE=..\..\src\cpputtest\testing.h | ||
3311 | 164 | # End Source File | ||
3312 | 165 | # Begin Source File | ||
3313 | 166 | |||
3314 | 167 | SOURCE=..\..\src\cpputtest\testtestcase.cpp | ||
3315 | 168 | # End Source File | ||
3316 | 169 | # Begin Source File | ||
3317 | 170 | |||
3318 | 171 | SOURCE=..\..\src\cpputtest\valuetest.cpp | ||
3319 | 172 | # End Source File | ||
3320 | 173 | # Begin Source File | ||
3321 | 174 | |||
3322 | 175 | SOURCE=..\..\src\cpputtest\valuetest.h | ||
3323 | 176 | # End Source File | ||
3324 | 177 | # End Target | ||
3325 | 178 | # End Project | ||
3326 | 0 | 179 | ||
3327 | === modified file 'cppunit2/makefiles/vs71/cppunit2.suo' | |||
3328 | 1 | Binary files cppunit2/makefiles/vs71/cppunit2.suo 2005-09-06 05:35:12 +0000 and cppunit2/makefiles/vs71/cppunit2.suo 2008-12-29 20:49:53 +0000 differ | 180 | Binary files cppunit2/makefiles/vs71/cppunit2.suo 2005-09-06 05:35:12 +0000 and cppunit2/makefiles/vs71/cppunit2.suo 2008-12-29 20:49:53 +0000 differ |
3329 | === modified file 'cppunit2/makefiles/vs71/cpput_lib.vcproj' | |||
3330 | --- cppunit2/makefiles/vs71/cpput_lib.vcproj 2007-08-14 15:30:52 +0000 | |||
3331 | +++ cppunit2/makefiles/vs71/cpput_lib.vcproj 2008-12-29 20:49:53 +0000 | |||
3332 | @@ -1,281 +1,305 @@ | |||
3614 | 1 | <?xml version="1.0" encoding="Windows-1252"?> | 1 | <?xml version="1.0" encoding="Windows-1252"?> |
3615 | 2 | <VisualStudioProject | 2 | <VisualStudioProject |
3616 | 3 | ProjectType="Visual C++" | 3 | ProjectType="Visual C++" |
3617 | 4 | Version="7.10" | 4 | Version="7.10" |
3618 | 5 | Name="cpput_lib" | 5 | Name="cpput_lib" |
3619 | 6 | ProjectGUID="{79273A0D-700E-4AFA-B7F2-14D4CC325521}" | 6 | ProjectGUID="{79273A0D-700E-4AFA-B7F2-14D4CC325521}" |
3620 | 7 | Keyword="Win32Proj"> | 7 | Keyword="Win32Proj"> |
3621 | 8 | <Platforms> | 8 | <Platforms> |
3622 | 9 | <Platform | 9 | <Platform |
3623 | 10 | Name="Win32"/> | 10 | Name="Win32"/> |
3624 | 11 | </Platforms> | 11 | </Platforms> |
3625 | 12 | <Configurations> | 12 | <Configurations> |
3626 | 13 | <Configuration | 13 | <Configuration |
3627 | 14 | Name="Debug|Win32" | 14 | Name="Debug|Win32" |
3628 | 15 | OutputDirectory="../../build/cpput/debug" | 15 | OutputDirectory="../../build/cpput/debug" |
3629 | 16 | IntermediateDirectory="../../build/cpput/debug" | 16 | IntermediateDirectory="../../build/cpput/debug" |
3630 | 17 | ConfigurationType="4" | 17 | ConfigurationType="4" |
3631 | 18 | CharacterSet="2"> | 18 | CharacterSet="2"> |
3632 | 19 | <Tool | 19 | <Tool |
3633 | 20 | Name="VCCLCompilerTool" | 20 | Name="VCCLCompilerTool" |
3634 | 21 | Optimization="0" | 21 | Optimization="0" |
3635 | 22 | AdditionalIncludeDirectories="../../include" | 22 | AdditionalIncludeDirectories="../../include" |
3636 | 23 | PreprocessorDefinitions="WIN32;_DEBUG;_LIB" | 23 | PreprocessorDefinitions="WIN32;_DEBUG;_LIB" |
3637 | 24 | MinimalRebuild="TRUE" | 24 | MinimalRebuild="TRUE" |
3638 | 25 | BasicRuntimeChecks="3" | 25 | BasicRuntimeChecks="3" |
3639 | 26 | RuntimeLibrary="3" | 26 | RuntimeLibrary="3" |
3640 | 27 | BufferSecurityCheck="TRUE" | 27 | BufferSecurityCheck="TRUE" |
3641 | 28 | TreatWChar_tAsBuiltInType="TRUE" | 28 | TreatWChar_tAsBuiltInType="TRUE" |
3642 | 29 | ForceConformanceInForLoopScope="TRUE" | 29 | ForceConformanceInForLoopScope="TRUE" |
3643 | 30 | UsePrecompiledHeader="0" | 30 | UsePrecompiledHeader="0" |
3644 | 31 | WarningLevel="3" | 31 | WarningLevel="3" |
3645 | 32 | Detect64BitPortabilityProblems="FALSE" | 32 | Detect64BitPortabilityProblems="FALSE" |
3646 | 33 | DebugInformationFormat="3"/> | 33 | DebugInformationFormat="3"/> |
3647 | 34 | <Tool | 34 | <Tool |
3648 | 35 | Name="VCCustomBuildTool"/> | 35 | Name="VCCustomBuildTool"/> |
3649 | 36 | <Tool | 36 | <Tool |
3650 | 37 | Name="VCLibrarianTool" | 37 | Name="VCLibrarianTool" |
3651 | 38 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib"/> | 38 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib"/> |
3652 | 39 | <Tool | 39 | <Tool |
3653 | 40 | Name="VCMIDLTool"/> | 40 | Name="VCMIDLTool"/> |
3654 | 41 | <Tool | 41 | <Tool |
3655 | 42 | Name="VCPostBuildEventTool"/> | 42 | Name="VCPostBuildEventTool"/> |
3656 | 43 | <Tool | 43 | <Tool |
3657 | 44 | Name="VCPreBuildEventTool"/> | 44 | Name="VCPreBuildEventTool"/> |
3658 | 45 | <Tool | 45 | <Tool |
3659 | 46 | Name="VCPreLinkEventTool"/> | 46 | Name="VCPreLinkEventTool"/> |
3660 | 47 | <Tool | 47 | <Tool |
3661 | 48 | Name="VCResourceCompilerTool"/> | 48 | Name="VCResourceCompilerTool"/> |
3662 | 49 | <Tool | 49 | <Tool |
3663 | 50 | Name="VCWebServiceProxyGeneratorTool"/> | 50 | Name="VCWebServiceProxyGeneratorTool"/> |
3664 | 51 | <Tool | 51 | <Tool |
3665 | 52 | Name="VCXMLDataGeneratorTool"/> | 52 | Name="VCXMLDataGeneratorTool"/> |
3666 | 53 | <Tool | 53 | <Tool |
3667 | 54 | Name="VCManagedWrapperGeneratorTool"/> | 54 | Name="VCManagedWrapperGeneratorTool"/> |
3668 | 55 | <Tool | 55 | <Tool |
3669 | 56 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> | 56 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> |
3670 | 57 | </Configuration> | 57 | </Configuration> |
3671 | 58 | <Configuration | 58 | <Configuration |
3672 | 59 | Name="Release|Win32" | 59 | Name="Release|Win32" |
3673 | 60 | OutputDirectory="../../build/cpput/release" | 60 | OutputDirectory="../../build/cpput/release" |
3674 | 61 | IntermediateDirectory="../../build/cpput/release" | 61 | IntermediateDirectory="../../build/cpput/release" |
3675 | 62 | ConfigurationType="4" | 62 | ConfigurationType="4" |
3676 | 63 | CharacterSet="2"> | 63 | CharacterSet="2"> |
3677 | 64 | <Tool | 64 | <Tool |
3678 | 65 | Name="VCCLCompilerTool" | 65 | Name="VCCLCompilerTool" |
3679 | 66 | AdditionalIncludeDirectories="../../include" | 66 | AdditionalIncludeDirectories="../../include" |
3680 | 67 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB" | 67 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB" |
3681 | 68 | StringPooling="TRUE" | 68 | StringPooling="TRUE" |
3682 | 69 | RuntimeLibrary="2" | 69 | RuntimeLibrary="2" |
3683 | 70 | EnableFunctionLevelLinking="TRUE" | 70 | EnableFunctionLevelLinking="TRUE" |
3684 | 71 | TreatWChar_tAsBuiltInType="TRUE" | 71 | TreatWChar_tAsBuiltInType="TRUE" |
3685 | 72 | ForceConformanceInForLoopScope="TRUE" | 72 | ForceConformanceInForLoopScope="TRUE" |
3686 | 73 | UsePrecompiledHeader="0" | 73 | UsePrecompiledHeader="0" |
3687 | 74 | WarningLevel="3" | 74 | WarningLevel="3" |
3688 | 75 | Detect64BitPortabilityProblems="FALSE" | 75 | Detect64BitPortabilityProblems="FALSE" |
3689 | 76 | DebugInformationFormat="3"/> | 76 | DebugInformationFormat="3"/> |
3690 | 77 | <Tool | 77 | <Tool |
3691 | 78 | Name="VCCustomBuildTool"/> | 78 | Name="VCCustomBuildTool"/> |
3692 | 79 | <Tool | 79 | <Tool |
3693 | 80 | Name="VCLibrarianTool" | 80 | Name="VCLibrarianTool" |
3694 | 81 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib"/> | 81 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib"/> |
3695 | 82 | <Tool | 82 | <Tool |
3696 | 83 | Name="VCMIDLTool"/> | 83 | Name="VCMIDLTool"/> |
3697 | 84 | <Tool | 84 | <Tool |
3698 | 85 | Name="VCPostBuildEventTool"/> | 85 | Name="VCPostBuildEventTool"/> |
3699 | 86 | <Tool | 86 | <Tool |
3700 | 87 | Name="VCPreBuildEventTool"/> | 87 | Name="VCPreBuildEventTool"/> |
3701 | 88 | <Tool | 88 | <Tool |
3702 | 89 | Name="VCPreLinkEventTool"/> | 89 | Name="VCPreLinkEventTool"/> |
3703 | 90 | <Tool | 90 | <Tool |
3704 | 91 | Name="VCResourceCompilerTool"/> | 91 | Name="VCResourceCompilerTool"/> |
3705 | 92 | <Tool | 92 | <Tool |
3706 | 93 | Name="VCWebServiceProxyGeneratorTool"/> | 93 | Name="VCWebServiceProxyGeneratorTool"/> |
3707 | 94 | <Tool | 94 | <Tool |
3708 | 95 | Name="VCXMLDataGeneratorTool"/> | 95 | Name="VCXMLDataGeneratorTool"/> |
3709 | 96 | <Tool | 96 | <Tool |
3710 | 97 | Name="VCManagedWrapperGeneratorTool"/> | 97 | Name="VCManagedWrapperGeneratorTool"/> |
3711 | 98 | <Tool | 98 | <Tool |
3712 | 99 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> | 99 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> |
3713 | 100 | </Configuration> | 100 | </Configuration> |
3714 | 101 | </Configurations> | 101 | </Configurations> |
3715 | 102 | <References> | 102 | <References> |
3716 | 103 | </References> | 103 | </References> |
3717 | 104 | <Files> | 104 | <Files> |
3718 | 105 | <Filter | 105 | <Filter |
3719 | 106 | Name="codetorevisit" | 106 | Name="codetorevisit" |
3720 | 107 | Filter=""> | 107 | Filter=""> |
3721 | 108 | <File | 108 | <File |
3722 | 109 | RelativePath="..\..\src\cpput\parametrizedsource.cpp"> | 109 | RelativePath="..\..\src\cpput\parametrizedsource.cpp"> |
3723 | 110 | </File> | 110 | <FileConfiguration |
3724 | 111 | <File | 111 | Name="Debug|Win32" |
3725 | 112 | RelativePath="..\..\include\cpput\parametrizedsource.h"> | 112 | ExcludedFromBuild="TRUE"> |
3726 | 113 | </File> | 113 | <Tool |
3727 | 114 | <File | 114 | Name="VCCLCompilerTool"/> |
3728 | 115 | RelativePath="..\..\src\cpput\tablefixture.cpp"> | 115 | </FileConfiguration> |
3729 | 116 | <FileConfiguration | 116 | <FileConfiguration |
3730 | 117 | Name="Debug|Win32" | 117 | Name="Release|Win32" |
3731 | 118 | ExcludedFromBuild="TRUE"> | 118 | ExcludedFromBuild="TRUE"> |
3732 | 119 | <Tool | 119 | <Tool |
3733 | 120 | Name="VCCLCompilerTool"/> | 120 | Name="VCCLCompilerTool"/> |
3734 | 121 | </FileConfiguration> | 121 | </FileConfiguration> |
3735 | 122 | <FileConfiguration | 122 | </File> |
3736 | 123 | Name="Release|Win32" | 123 | <File |
3737 | 124 | ExcludedFromBuild="TRUE"> | 124 | RelativePath="..\..\include\cpput\parametrizedsource.h"> |
3738 | 125 | <Tool | 125 | </File> |
3739 | 126 | Name="VCCLCompilerTool"/> | 126 | <File |
3740 | 127 | </FileConfiguration> | 127 | RelativePath="..\..\src\cpput\tablefixture.cpp"> |
3741 | 128 | </File> | 128 | <FileConfiguration |
3742 | 129 | <File | 129 | Name="Debug|Win32" |
3743 | 130 | RelativePath="..\..\include\cpput\tablefixture.h"> | 130 | ExcludedFromBuild="TRUE"> |
3744 | 131 | </File> | 131 | <Tool |
3745 | 132 | <File | 132 | Name="VCCLCompilerTool"/> |
3746 | 133 | RelativePath="..\..\src\cpput\testrunner.cpp"> | 133 | </FileConfiguration> |
3747 | 134 | <FileConfiguration | 134 | <FileConfiguration |
3748 | 135 | Name="Debug|Win32" | 135 | Name="Release|Win32" |
3749 | 136 | ExcludedFromBuild="TRUE"> | 136 | ExcludedFromBuild="TRUE"> |
3750 | 137 | <Tool | 137 | <Tool |
3751 | 138 | Name="VCCLCompilerTool"/> | 138 | Name="VCCLCompilerTool"/> |
3752 | 139 | </FileConfiguration> | 139 | </FileConfiguration> |
3753 | 140 | <FileConfiguration | 140 | </File> |
3754 | 141 | Name="Release|Win32" | 141 | <File |
3755 | 142 | ExcludedFromBuild="TRUE"> | 142 | RelativePath="..\..\include\cpput\tablefixture.h"> |
3756 | 143 | <Tool | 143 | </File> |
3757 | 144 | Name="VCCLCompilerTool"/> | 144 | <File |
3758 | 145 | </FileConfiguration> | 145 | RelativePath="..\..\src\cpput\testrunner.cpp"> |
3759 | 146 | </File> | 146 | <FileConfiguration |
3760 | 147 | <File | 147 | Name="Debug|Win32" |
3761 | 148 | RelativePath="..\..\include\cpput\testrunner.h"> | 148 | ExcludedFromBuild="TRUE"> |
3762 | 149 | </File> | 149 | <Tool |
3763 | 150 | </Filter> | 150 | Name="VCCLCompilerTool"/> |
3764 | 151 | <Filter | 151 | </FileConfiguration> |
3765 | 152 | Name="doc" | 152 | <FileConfiguration |
3766 | 153 | Filter=""> | 153 | Name="Release|Win32" |
3767 | 154 | <File | 154 | ExcludedFromBuild="TRUE"> |
3768 | 155 | RelativePath="..\..\doc\coding_guidelines.dox"> | 155 | <Tool |
3769 | 156 | </File> | 156 | Name="VCCLCompilerTool"/> |
3770 | 157 | <File | 157 | </FileConfiguration> |
3771 | 158 | RelativePath="..\..\doc\cpput.dox"> | 158 | </File> |
3772 | 159 | </File> | 159 | <File |
3773 | 160 | <File | 160 | RelativePath="..\..\include\cpput\testrunner.h"> |
3774 | 161 | RelativePath="..\..\doc\cpput_todo.dox"> | 161 | </File> |
3775 | 162 | </File> | 162 | </Filter> |
3776 | 163 | <File | 163 | <Filter |
3777 | 164 | RelativePath="..\..\doc\custom.css"> | 164 | Name="doc" |
3778 | 165 | </File> | 165 | Filter=""> |
3779 | 166 | <File | 166 | <File |
3780 | 167 | RelativePath="..\..\doc\doxyfile.in"> | 167 | RelativePath="..\..\doc\coding_guidelines.dox"> |
3781 | 168 | </File> | 168 | </File> |
3782 | 169 | <File | 169 | <File |
3783 | 170 | RelativePath="..\..\doc\footer.html"> | 170 | RelativePath="..\..\doc\cpput.dox"> |
3784 | 171 | </File> | 171 | </File> |
3785 | 172 | <File | 172 | <File |
3786 | 173 | RelativePath="..\..\doc\header.html"> | 173 | RelativePath="..\..\doc\cpput_todo.dox"> |
3787 | 174 | </File> | 174 | </File> |
3788 | 175 | </Filter> | 175 | <File |
3789 | 176 | <File | 176 | RelativePath="..\..\doc\custom.css"> |
3790 | 177 | RelativePath="..\..\src\cpput\assert.cpp"> | 177 | </File> |
3791 | 178 | </File> | 178 | <File |
3792 | 179 | <File | 179 | RelativePath="..\..\doc\doxyfile.in"> |
3793 | 180 | RelativePath="..\..\include\cpput\assertcommon.h"> | 180 | </File> |
3794 | 181 | </File> | 181 | <File |
3795 | 182 | <File | 182 | RelativePath="..\..\doc\footer.html"> |
3796 | 183 | RelativePath="..\..\include\cpput\assertenum.h"> | 183 | </File> |
3797 | 184 | </File> | 184 | <File |
3798 | 185 | <File | 185 | RelativePath="..\..\doc\header.html"> |
3799 | 186 | RelativePath="..\..\src\cpput\assertstring.cpp"> | 186 | </File> |
3800 | 187 | </File> | 187 | </Filter> |
3801 | 188 | <File | 188 | <File |
3802 | 189 | RelativePath="..\..\include\cpput\assertstring.h"> | 189 | RelativePath="..\..\src\cpput\assert.cpp"> |
3803 | 190 | </File> | 190 | </File> |
3804 | 191 | <File | 191 | <File |
3805 | 192 | RelativePath="..\..\include\cpput\autolink.h"> | 192 | RelativePath="..\..\include\cpput\assertcommon.h"> |
3806 | 193 | </File> | 193 | </File> |
3807 | 194 | <File | 194 | <File |
3808 | 195 | RelativePath="..\..\include\cpput\config.h"> | 195 | RelativePath="..\..\include\cpput\assertenum.h"> |
3809 | 196 | </File> | 196 | </File> |
3810 | 197 | <File | 197 | <File |
3811 | 198 | RelativePath="..\..\src\cpput\dllproxy.cpp"> | 198 | RelativePath="..\..\src\cpput\assertstring.cpp"> |
3812 | 199 | </File> | 199 | </File> |
3813 | 200 | <File | 200 | <File |
3814 | 201 | RelativePath="..\..\include\cpput\dllproxy.h"> | 201 | RelativePath="..\..\include\cpput\assertstring.h"> |
3815 | 202 | </File> | 202 | </File> |
3816 | 203 | <File | 203 | <File |
3817 | 204 | RelativePath="..\..\include\cpput\equality.h"> | 204 | RelativePath="..\..\include\cpput\autolink.h"> |
3818 | 205 | </File> | 205 | </File> |
3819 | 206 | <File | 206 | <File |
3820 | 207 | RelativePath="..\..\src\cpput\exceptionguard.cpp"> | 207 | RelativePath="..\..\include\cpput\config.h"> |
3821 | 208 | </File> | 208 | </File> |
3822 | 209 | <File | 209 | <File |
3823 | 210 | RelativePath="..\..\include\cpput\exceptionguard.h"> | 210 | RelativePath="..\..\src\cpput\dllproxy.cpp"> |
3824 | 211 | </File> | 211 | </File> |
3825 | 212 | <File | 212 | <File |
3826 | 213 | RelativePath="..\..\src\cpput\extendeddata.cpp"> | 213 | RelativePath="..\..\include\cpput\dllproxy.h"> |
3827 | 214 | </File> | 214 | </File> |
3828 | 215 | <File | 215 | <File |
3829 | 216 | RelativePath="..\..\include\cpput\extendeddata.h"> | 216 | RelativePath="..\..\include\cpput\equality.h"> |
3830 | 217 | </File> | 217 | </File> |
3831 | 218 | <File | 218 | <File |
3832 | 219 | RelativePath="..\..\include\cpput\forwards.h"> | 219 | RelativePath="..\..\src\cpput\exceptionguard.cpp"> |
3833 | 220 | </File> | 220 | </File> |
3834 | 221 | <File | 221 | <File |
3835 | 222 | RelativePath="..\..\include\cpput\inputtest.h"> | 222 | RelativePath="..\..\include\cpput\exceptionguard.h"> |
3836 | 223 | </File> | 223 | </File> |
3837 | 224 | <File | 224 | <File |
3838 | 225 | RelativePath="..\..\src\cpput\lighttestrunner.cpp"> | 225 | RelativePath="..\..\src\cpput\extendeddata.cpp"> |
3839 | 226 | </File> | 226 | </File> |
3840 | 227 | <File | 227 | <File |
3841 | 228 | RelativePath="..\..\include\cpput\lighttestrunner.h"> | 228 | RelativePath="..\..\include\cpput\extendeddata.h"> |
3842 | 229 | </File> | 229 | </File> |
3843 | 230 | <File | 230 | <File |
3844 | 231 | RelativePath="..\..\src\cpput\message.cpp"> | 231 | RelativePath="..\..\include\cpput\forwards.h"> |
3845 | 232 | </File> | 232 | </File> |
3846 | 233 | <File | 233 | <File |
3847 | 234 | RelativePath="..\..\include\cpput\message.h"> | 234 | RelativePath="..\..\include\cpput\inputbasedtest.h"> |
3848 | 235 | </File> | 235 | </File> |
3849 | 236 | <File | 236 | <File |
3850 | 237 | RelativePath="..\..\src\cpput\registry.cpp"> | 237 | RelativePath="..\..\include\cpput\inputtest.h"> |
3851 | 238 | </File> | 238 | </File> |
3852 | 239 | <File | 239 | <File |
3853 | 240 | RelativePath="..\..\include\cpput\registry.h"> | 240 | RelativePath="..\..\include\cpput\interface.h"> |
3854 | 241 | </File> | 241 | </File> |
3855 | 242 | <File | 242 | <File |
3856 | 243 | RelativePath="..\..\include\cpput\resource.h"> | 243 | RelativePath="..\..\include\cpput\lightfixture.h"> |
3857 | 244 | </File> | 244 | </File> |
3858 | 245 | <File | 245 | <File |
3859 | 246 | RelativePath="..\..\include\cpput\stringize.h"> | 246 | RelativePath="..\..\src\cpput\lighttestrunner.cpp"> |
3860 | 247 | </File> | 247 | </File> |
3861 | 248 | <File | 248 | <File |
3862 | 249 | RelativePath="..\..\include\cpput\test.h"> | 249 | RelativePath="..\..\include\cpput\lighttestrunner.h"> |
3863 | 250 | </File> | 250 | </File> |
3864 | 251 | <File | 251 | <File |
3865 | 252 | RelativePath="..\..\src\cpput\testcase.cpp"> | 252 | RelativePath="..\..\src\cpput\message.cpp"> |
3866 | 253 | </File> | 253 | </File> |
3867 | 254 | <File | 254 | <File |
3868 | 255 | RelativePath="..\..\include\cpput\testcase.h"> | 255 | RelativePath="..\..\include\cpput\message.h"> |
3869 | 256 | </File> | 256 | </File> |
3870 | 257 | <File | 257 | <File |
3871 | 258 | RelativePath="..\..\include\cpput\testfixture.h"> | 258 | RelativePath="..\..\include\cpput\opentestadaptor.h"> |
3872 | 259 | </File> | 259 | </File> |
3873 | 260 | <File | 260 | <File |
3874 | 261 | RelativePath="..\..\src\cpput\testinfo.cpp"> | 261 | RelativePath="..\..\src\cpput\registry.cpp"> |
3875 | 262 | </File> | 262 | </File> |
3876 | 263 | <File | 263 | <File |
3877 | 264 | RelativePath="..\..\include\cpput\testinfo.h"> | 264 | RelativePath="..\..\include\cpput\registry.h"> |
3878 | 265 | </File> | 265 | </File> |
3879 | 266 | <File | 266 | <File |
3880 | 267 | RelativePath="..\..\src\cpput\testsuite.cpp"> | 267 | RelativePath="..\..\src\cpput\resource.cpp"> |
3881 | 268 | </File> | 268 | </File> |
3882 | 269 | <File | 269 | <File |
3883 | 270 | RelativePath="..\..\include\cpput\testsuite.h"> | 270 | RelativePath="..\..\include\cpput\resource.h"> |
3884 | 271 | </File> | 271 | </File> |
3885 | 272 | <File | 272 | <File |
3886 | 273 | RelativePath="..\..\include\cpput\testvisitor.h"> | 273 | RelativePath="..\..\include\cpput\stringize.h"> |
3887 | 274 | </File> | 274 | </File> |
3888 | 275 | <File | 275 | <File |
3889 | 276 | RelativePath="..\..\include\cpput\translate.h"> | 276 | RelativePath="..\..\include\cpput\test.h"> |
3890 | 277 | </File> | 277 | </File> |
3891 | 278 | </Files> | 278 | <File |
3892 | 279 | <Globals> | 279 | RelativePath="..\..\src\cpput\testcase.cpp"> |
3893 | 280 | </Globals> | 280 | </File> |
3894 | 281 | </VisualStudioProject> | 281 | <File |
3895 | 282 | RelativePath="..\..\include\cpput\testcase.h"> | ||
3896 | 283 | </File> | ||
3897 | 284 | <File | ||
3898 | 285 | RelativePath="..\..\include\cpput\testfixture.h"> | ||
3899 | 286 | </File> | ||
3900 | 287 | <File | ||
3901 | 288 | RelativePath="..\..\include\cpput\testfunction.h"> | ||
3902 | 289 | </File> | ||
3903 | 290 | <File | ||
3904 | 291 | RelativePath="..\..\src\cpput\testinfo.cpp"> | ||
3905 | 292 | </File> | ||
3906 | 293 | <File | ||
3907 | 294 | RelativePath="..\..\include\cpput\testinfo.h"> | ||
3908 | 295 | </File> | ||
3909 | 296 | <File | ||
3910 | 297 | RelativePath="..\..\include\cpput\testvisitor.h"> | ||
3911 | 298 | </File> | ||
3912 | 299 | <File | ||
3913 | 300 | RelativePath="..\..\include\cpput\translate.h"> | ||
3914 | 301 | </File> | ||
3915 | 302 | </Files> | ||
3916 | 303 | <Globals> | ||
3917 | 304 | </Globals> | ||
3918 | 305 | </VisualStudioProject> | ||
3919 | 282 | 306 | ||
3920 | === modified file 'cppunit2/makefiles/vs71/cpput_test.vcproj' | |||
3921 | --- cppunit2/makefiles/vs71/cpput_test.vcproj 2008-06-26 14:28:05 +0000 | |||
3922 | +++ cppunit2/makefiles/vs71/cpput_test.vcproj 2008-12-25 17:01:58 +0000 | |||
3923 | @@ -1,261 +1,282 @@ | |||
4185 | 1 | <?xml version="1.0" encoding="Windows-1252"?> | 1 | <?xml version="1.0" encoding="Windows-1252"?> |
4186 | 2 | <VisualStudioProject | 2 | <VisualStudioProject |
4187 | 3 | ProjectType="Visual C++" | 3 | ProjectType="Visual C++" |
4188 | 4 | Version="7.10" | 4 | Version="7.10" |
4189 | 5 | Name="cpput_test" | 5 | Name="cpput_test" |
4190 | 6 | ProjectGUID="{2506991E-13CA-49C9-8686-AACDE35C21B6}" | 6 | ProjectGUID="{2506991E-13CA-49C9-8686-AACDE35C21B6}" |
4191 | 7 | RootNamespace="cpput_test" | 7 | RootNamespace="cpput_test" |
4192 | 8 | Keyword="Win32Proj"> | 8 | Keyword="Win32Proj"> |
4193 | 9 | <Platforms> | 9 | <Platforms> |
4194 | 10 | <Platform | 10 | <Platform |
4195 | 11 | Name="Win32"/> | 11 | Name="Win32"/> |
4196 | 12 | </Platforms> | 12 | </Platforms> |
4197 | 13 | <Configurations> | 13 | <Configurations> |
4198 | 14 | <Configuration | 14 | <Configuration |
4199 | 15 | Name="Debug|Win32" | 15 | Name="Debug|Win32" |
4200 | 16 | OutputDirectory="../../build/cpput_test/debug" | 16 | OutputDirectory="../../build/cpput_test/debug" |
4201 | 17 | IntermediateDirectory="../../build/cpput_test/debug" | 17 | IntermediateDirectory="../../build/cpput_test/debug" |
4202 | 18 | ConfigurationType="1" | 18 | ConfigurationType="1" |
4203 | 19 | CharacterSet="2"> | 19 | CharacterSet="2"> |
4204 | 20 | <Tool | 20 | <Tool |
4205 | 21 | Name="VCCLCompilerTool" | 21 | Name="VCCLCompilerTool" |
4206 | 22 | Optimization="0" | 22 | Optimization="0" |
4207 | 23 | AdditionalIncludeDirectories="../../include" | 23 | AdditionalIncludeDirectories="../../include" |
4208 | 24 | PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" | 24 | PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE" |
4209 | 25 | MinimalRebuild="TRUE" | 25 | MinimalRebuild="TRUE" |
4210 | 26 | BasicRuntimeChecks="3" | 26 | BasicRuntimeChecks="3" |
4211 | 27 | RuntimeLibrary="3" | 27 | RuntimeLibrary="3" |
4212 | 28 | BufferSecurityCheck="TRUE" | 28 | BufferSecurityCheck="TRUE" |
4213 | 29 | TreatWChar_tAsBuiltInType="TRUE" | 29 | TreatWChar_tAsBuiltInType="TRUE" |
4214 | 30 | ForceConformanceInForLoopScope="TRUE" | 30 | ForceConformanceInForLoopScope="TRUE" |
4215 | 31 | UsePrecompiledHeader="0" | 31 | UsePrecompiledHeader="0" |
4216 | 32 | WarningLevel="3" | 32 | WarningLevel="3" |
4217 | 33 | Detect64BitPortabilityProblems="FALSE" | 33 | Detect64BitPortabilityProblems="FALSE" |
4218 | 34 | DebugInformationFormat="3"/> | 34 | DebugInformationFormat="3"/> |
4219 | 35 | <Tool | 35 | <Tool |
4220 | 36 | Name="VCCustomBuildTool"/> | 36 | Name="VCCustomBuildTool"/> |
4221 | 37 | <Tool | 37 | <Tool |
4222 | 38 | Name="VCLinkerTool" | 38 | Name="VCLinkerTool" |
4223 | 39 | OutputFile="$(OutDir)/cpput_test.exe" | 39 | OutputFile="$(OutDir)/cpput_test.exe" |
4224 | 40 | LinkIncremental="2" | 40 | LinkIncremental="2" |
4225 | 41 | GenerateDebugInformation="TRUE" | 41 | GenerateDebugInformation="TRUE" |
4226 | 42 | ProgramDatabaseFile="$(OutDir)/cpput_test.pdb" | 42 | ProgramDatabaseFile="$(OutDir)/cpput_test.pdb" |
4227 | 43 | SubSystem="1" | 43 | SubSystem="1" |
4228 | 44 | TargetMachine="1"/> | 44 | TargetMachine="1"/> |
4229 | 45 | <Tool | 45 | <Tool |
4230 | 46 | Name="VCMIDLTool"/> | 46 | Name="VCMIDLTool"/> |
4231 | 47 | <Tool | 47 | <Tool |
4232 | 48 | Name="VCPostBuildEventTool" | 48 | Name="VCPostBuildEventTool" |
4233 | 49 | Description="Running post-build unit tests" | 49 | Description="Running post-build unit tests" |
4234 | 50 | CommandLine="$(TargetPath)"/> | 50 | CommandLine="$(TargetPath)"/> |
4235 | 51 | <Tool | 51 | <Tool |
4236 | 52 | Name="VCPreBuildEventTool"/> | 52 | Name="VCPreBuildEventTool"/> |
4237 | 53 | <Tool | 53 | <Tool |
4238 | 54 | Name="VCPreLinkEventTool"/> | 54 | Name="VCPreLinkEventTool"/> |
4239 | 55 | <Tool | 55 | <Tool |
4240 | 56 | Name="VCResourceCompilerTool"/> | 56 | Name="VCResourceCompilerTool"/> |
4241 | 57 | <Tool | 57 | <Tool |
4242 | 58 | Name="VCWebServiceProxyGeneratorTool"/> | 58 | Name="VCWebServiceProxyGeneratorTool"/> |
4243 | 59 | <Tool | 59 | <Tool |
4244 | 60 | Name="VCXMLDataGeneratorTool"/> | 60 | Name="VCXMLDataGeneratorTool"/> |
4245 | 61 | <Tool | 61 | <Tool |
4246 | 62 | Name="VCWebDeploymentTool"/> | 62 | Name="VCWebDeploymentTool"/> |
4247 | 63 | <Tool | 63 | <Tool |
4248 | 64 | Name="VCManagedWrapperGeneratorTool"/> | 64 | Name="VCManagedWrapperGeneratorTool"/> |
4249 | 65 | <Tool | 65 | <Tool |
4250 | 66 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> | 66 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> |
4251 | 67 | </Configuration> | 67 | </Configuration> |
4252 | 68 | <Configuration | 68 | <Configuration |
4253 | 69 | Name="Release|Win32" | 69 | Name="Release|Win32" |
4254 | 70 | OutputDirectory="../../build/cpput_test/release" | 70 | OutputDirectory="../../build/cpput_test/release" |
4255 | 71 | IntermediateDirectory="../../build/cpput_test/release" | 71 | IntermediateDirectory="../../build/cpput_test/release" |
4256 | 72 | ConfigurationType="1" | 72 | ConfigurationType="1" |
4257 | 73 | CharacterSet="2"> | 73 | CharacterSet="2"> |
4258 | 74 | <Tool | 74 | <Tool |
4259 | 75 | Name="VCCLCompilerTool" | 75 | Name="VCCLCompilerTool" |
4260 | 76 | AdditionalIncludeDirectories="../../include" | 76 | AdditionalIncludeDirectories="../../include" |
4261 | 77 | PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" | 77 | PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE" |
4262 | 78 | StringPooling="TRUE" | 78 | StringPooling="TRUE" |
4263 | 79 | RuntimeLibrary="2" | 79 | RuntimeLibrary="2" |
4264 | 80 | EnableFunctionLevelLinking="TRUE" | 80 | EnableFunctionLevelLinking="TRUE" |
4265 | 81 | TreatWChar_tAsBuiltInType="TRUE" | 81 | TreatWChar_tAsBuiltInType="TRUE" |
4266 | 82 | ForceConformanceInForLoopScope="TRUE" | 82 | ForceConformanceInForLoopScope="TRUE" |
4267 | 83 | UsePrecompiledHeader="0" | 83 | UsePrecompiledHeader="0" |
4268 | 84 | WarningLevel="3" | 84 | WarningLevel="3" |
4269 | 85 | Detect64BitPortabilityProblems="FALSE" | 85 | Detect64BitPortabilityProblems="FALSE" |
4270 | 86 | DebugInformationFormat="3"/> | 86 | DebugInformationFormat="3"/> |
4271 | 87 | <Tool | 87 | <Tool |
4272 | 88 | Name="VCCustomBuildTool"/> | 88 | Name="VCCustomBuildTool"/> |
4273 | 89 | <Tool | 89 | <Tool |
4274 | 90 | Name="VCLinkerTool" | 90 | Name="VCLinkerTool" |
4275 | 91 | OutputFile="$(OutDir)/cpput_test.exe" | 91 | OutputFile="$(OutDir)/cpput_test.exe" |
4276 | 92 | LinkIncremental="1" | 92 | LinkIncremental="1" |
4277 | 93 | GenerateDebugInformation="TRUE" | 93 | GenerateDebugInformation="TRUE" |
4278 | 94 | SubSystem="1" | 94 | SubSystem="1" |
4279 | 95 | OptimizeReferences="2" | 95 | OptimizeReferences="2" |
4280 | 96 | EnableCOMDATFolding="2" | 96 | EnableCOMDATFolding="2" |
4281 | 97 | TargetMachine="1"/> | 97 | TargetMachine="1"/> |
4282 | 98 | <Tool | 98 | <Tool |
4283 | 99 | Name="VCMIDLTool"/> | 99 | Name="VCMIDLTool"/> |
4284 | 100 | <Tool | 100 | <Tool |
4285 | 101 | Name="VCPostBuildEventTool" | 101 | Name="VCPostBuildEventTool" |
4286 | 102 | Description="Running post-build unit tests" | 102 | Description="Running post-build unit tests" |
4287 | 103 | CommandLine="$(TargetPath)"/> | 103 | CommandLine="$(TargetPath)"/> |
4288 | 104 | <Tool | 104 | <Tool |
4289 | 105 | Name="VCPreBuildEventTool"/> | 105 | Name="VCPreBuildEventTool"/> |
4290 | 106 | <Tool | 106 | <Tool |
4291 | 107 | Name="VCPreLinkEventTool"/> | 107 | Name="VCPreLinkEventTool"/> |
4292 | 108 | <Tool | 108 | <Tool |
4293 | 109 | Name="VCResourceCompilerTool"/> | 109 | Name="VCResourceCompilerTool"/> |
4294 | 110 | <Tool | 110 | <Tool |
4295 | 111 | Name="VCWebServiceProxyGeneratorTool"/> | 111 | Name="VCWebServiceProxyGeneratorTool"/> |
4296 | 112 | <Tool | 112 | <Tool |
4297 | 113 | Name="VCXMLDataGeneratorTool"/> | 113 | Name="VCXMLDataGeneratorTool"/> |
4298 | 114 | <Tool | 114 | <Tool |
4299 | 115 | Name="VCWebDeploymentTool"/> | 115 | Name="VCWebDeploymentTool"/> |
4300 | 116 | <Tool | 116 | <Tool |
4301 | 117 | Name="VCManagedWrapperGeneratorTool"/> | 117 | Name="VCManagedWrapperGeneratorTool"/> |
4302 | 118 | <Tool | 118 | <Tool |
4303 | 119 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> | 119 | Name="VCAuxiliaryManagedWrapperGeneratorTool"/> |
4304 | 120 | </Configuration> | 120 | </Configuration> |
4305 | 121 | </Configurations> | 121 | </Configurations> |
4306 | 122 | <References> | 122 | <References> |
4307 | 123 | </References> | 123 | </References> |
4308 | 124 | <Files> | 124 | <Files> |
4309 | 125 | <Filter | 125 | <Filter |
4310 | 126 | Name="codetorevisit" | 126 | Name="codetorevisit" |
4311 | 127 | Filter=""> | 127 | Filter=""> |
4312 | 128 | <File | 128 | <File |
4313 | 129 | RelativePath="..\..\src\cpputtest\testfunctor2.cpp"> | 129 | RelativePath="..\..\src\cpputtest\testfunctor2.cpp"> |
4314 | 130 | <FileConfiguration | 130 | <FileConfiguration |
4315 | 131 | Name="Debug|Win32" | 131 | Name="Debug|Win32" |
4316 | 132 | ExcludedFromBuild="TRUE"> | 132 | ExcludedFromBuild="TRUE"> |
4317 | 133 | <Tool | 133 | <Tool |
4318 | 134 | Name="VCCLCompilerTool"/> | 134 | Name="VCCLCompilerTool"/> |
4319 | 135 | </FileConfiguration> | 135 | </FileConfiguration> |
4320 | 136 | <FileConfiguration | 136 | <FileConfiguration |
4321 | 137 | Name="Release|Win32" | 137 | Name="Release|Win32" |
4322 | 138 | ExcludedFromBuild="TRUE"> | 138 | ExcludedFromBuild="TRUE"> |
4323 | 139 | <Tool | 139 | <Tool |
4324 | 140 | Name="VCCLCompilerTool"/> | 140 | Name="VCCLCompilerTool"/> |
4325 | 141 | </FileConfiguration> | 141 | </FileConfiguration> |
4326 | 142 | </File> | 142 | </File> |
4327 | 143 | <File | 143 | <File |
4328 | 144 | RelativePath="..\..\src\cpputtest\testfunctor3.cpp"> | 144 | RelativePath="..\..\src\cpputtest\testfunctor3.cpp"> |
4329 | 145 | <FileConfiguration | 145 | <FileConfiguration |
4330 | 146 | Name="Debug|Win32" | 146 | Name="Debug|Win32" |
4331 | 147 | ExcludedFromBuild="TRUE"> | 147 | ExcludedFromBuild="TRUE"> |
4332 | 148 | <Tool | 148 | <Tool |
4333 | 149 | Name="VCCLCompilerTool"/> | 149 | Name="VCCLCompilerTool"/> |
4334 | 150 | </FileConfiguration> | 150 | </FileConfiguration> |
4335 | 151 | <FileConfiguration | 151 | <FileConfiguration |
4336 | 152 | Name="Release|Win32" | 152 | Name="Release|Win32" |
4337 | 153 | ExcludedFromBuild="TRUE"> | 153 | ExcludedFromBuild="TRUE"> |
4338 | 154 | <Tool | 154 | <Tool |
4339 | 155 | Name="VCCLCompilerTool"/> | 155 | Name="VCCLCompilerTool"/> |
4340 | 156 | </FileConfiguration> | 156 | </FileConfiguration> |
4341 | 157 | </File> | 157 | </File> |
4342 | 158 | <File | 158 | <File |
4343 | 159 | RelativePath="..\..\src\cpputtest\testtestrunresult.cpp"> | 159 | RelativePath="..\..\src\cpputtest\testtestrunresult.cpp"> |
4344 | 160 | <FileConfiguration | 160 | <FileConfiguration |
4345 | 161 | Name="Debug|Win32" | 161 | Name="Debug|Win32" |
4346 | 162 | ExcludedFromBuild="TRUE"> | 162 | ExcludedFromBuild="TRUE"> |
4347 | 163 | <Tool | 163 | <Tool |
4348 | 164 | Name="VCCLCompilerTool"/> | 164 | Name="VCCLCompilerTool"/> |
4349 | 165 | </FileConfiguration> | 165 | </FileConfiguration> |
4350 | 166 | <FileConfiguration | 166 | <FileConfiguration |
4351 | 167 | Name="Release|Win32" | 167 | Name="Release|Win32" |
4352 | 168 | ExcludedFromBuild="TRUE"> | 168 | ExcludedFromBuild="TRUE"> |
4353 | 169 | <Tool | 169 | <Tool |
4354 | 170 | Name="VCCLCompilerTool"/> | 170 | Name="VCCLCompilerTool"/> |
4355 | 171 | </FileConfiguration> | 171 | </FileConfiguration> |
4356 | 172 | </File> | 172 | </File> |
4357 | 173 | </Filter> | 173 | </Filter> |
4358 | 174 | <File | 174 | <File |
4359 | 175 | RelativePath="..\..\src\cpputtest\assertenumtest.cpp"> | 175 | RelativePath="..\..\src\cpputtest\assertenumtest.cpp"> |
4360 | 176 | </File> | 176 | </File> |
4361 | 177 | <File | 177 | <File |
4362 | 178 | RelativePath="..\..\src\cpputtest\assertenumtest.h"> | 178 | RelativePath="..\..\src\cpputtest\assertenumtest.h"> |
4363 | 179 | </File> | 179 | </File> |
4364 | 180 | <File | 180 | <File |
4365 | 181 | RelativePath="..\..\src\cpputtest\assertstringtest.cpp"> | 181 | RelativePath="..\..\src\cpputtest\assertstringtest.cpp"> |
4366 | 182 | </File> | 182 | </File> |
4367 | 183 | <File | 183 | <File |
4368 | 184 | RelativePath="..\..\src\cpputtest\assertstringtest.h"> | 184 | RelativePath="..\..\src\cpputtest\assertstringtest.h"> |
4369 | 185 | </File> | 185 | </File> |
4370 | 186 | <File | 186 | <File |
4371 | 187 | RelativePath="..\..\src\cpputtest\commandlineoptionstest.cpp"> | 187 | RelativePath="..\..\src\cpputtest\commandlineoptionstest.cpp"> |
4372 | 188 | </File> | 188 | <FileConfiguration |
4373 | 189 | <File | 189 | Name="Debug|Win32" |
4374 | 190 | RelativePath="..\..\src\cpputtest\commandlineoptionstest.h"> | 190 | ExcludedFromBuild="TRUE"> |
4375 | 191 | </File> | 191 | <Tool |
4376 | 192 | <File | 192 | Name="VCCLCompilerTool"/> |
4377 | 193 | RelativePath="..\..\src\cpputtest\enumeratortest.cpp"> | 193 | </FileConfiguration> |
4378 | 194 | </File> | 194 | <FileConfiguration |
4379 | 195 | <File | 195 | Name="Release|Win32" |
4380 | 196 | RelativePath="..\..\src\cpputtest\enumeratortest.h"> | 196 | ExcludedFromBuild="TRUE"> |
4381 | 197 | </File> | 197 | <Tool |
4382 | 198 | <File | 198 | Name="VCCLCompilerTool"/> |
4383 | 199 | RelativePath="..\..\src\cpputtest\main.cpp"> | 199 | </FileConfiguration> |
4384 | 200 | </File> | 200 | </File> |
4385 | 201 | <File | 201 | <File |
4386 | 202 | RelativePath="..\..\src\cpputtest\minitestrunner.h"> | 202 | RelativePath="..\..\src\cpputtest\commandlineoptionstest.h"> |
4387 | 203 | </File> | 203 | </File> |
4388 | 204 | <File | 204 | <File |
4389 | 205 | RelativePath="..\..\src\cpputtest\mocktestlistener.h"> | 205 | RelativePath="..\..\src\cpputtest\enumeratortest.cpp"> |
4390 | 206 | </File> | 206 | </File> |
4391 | 207 | <File | 207 | <File |
4392 | 208 | RelativePath="..\..\src\cpputtest\mocktestvisitor.h"> | 208 | RelativePath="..\..\src\cpputtest\enumeratortest.h"> |
4393 | 209 | </File> | 209 | </File> |
4394 | 210 | <File | 210 | <File |
4395 | 211 | RelativePath="..\..\src\cpputtest\reflectiontest.cpp"> | 211 | RelativePath="..\..\src\cpputtest\main.cpp"> |
4396 | 212 | </File> | 212 | </File> |
4397 | 213 | <File | 213 | <File |
4398 | 214 | RelativePath="..\..\src\cpputtest\reflectiontest.h"> | 214 | RelativePath="..\..\src\cpputtest\minitestrunner.h"> |
4399 | 215 | </File> | 215 | </File> |
4400 | 216 | <File | 216 | <File |
4401 | 217 | RelativePath="..\..\src\cpputtest\registrytest.cpp"> | 217 | RelativePath="..\..\src\cpputtest\mocktestlistener.h"> |
4402 | 218 | </File> | 218 | </File> |
4403 | 219 | <File | 219 | <File |
4404 | 220 | RelativePath="..\..\src\cpputtest\registrytest.h"> | 220 | RelativePath="..\..\src\cpputtest\mocktestvisitor.h"> |
4405 | 221 | </File> | 221 | </File> |
4406 | 222 | <File | 222 | <File |
4407 | 223 | RelativePath="..\..\src\cpputtest\smallmaptest.cpp"> | 223 | RelativePath="..\..\src\cpputtest\reflectiontest.cpp"> |
4408 | 224 | </File> | 224 | </File> |
4409 | 225 | <File | 225 | <File |
4410 | 226 | RelativePath="..\..\src\cpputtest\smallmaptest.h"> | 226 | RelativePath="..\..\src\cpputtest\reflectiontest.h"> |
4411 | 227 | </File> | 227 | </File> |
4412 | 228 | <File | 228 | <File |
4413 | 229 | RelativePath="..\..\src\cpputtest\testbasicassertion.cpp"> | 229 | RelativePath="..\..\src\cpputtest\registrytest.cpp"> |
4414 | 230 | </File> | 230 | </File> |
4415 | 231 | <File | 231 | <File |
4416 | 232 | RelativePath="..\..\src\cpputtest\testexceptionguard.cpp"> | 232 | RelativePath="..\..\src\cpputtest\registrytest.h"> |
4417 | 233 | </File> | 233 | </File> |
4418 | 234 | <File | 234 | <File |
4419 | 235 | RelativePath="..\..\src\cpputtest\testfixturetest.cpp"> | 235 | RelativePath="..\..\src\cpputtest\smallmaptest.cpp"> |
4420 | 236 | </File> | 236 | </File> |
4421 | 237 | <File | 237 | <File |
4422 | 238 | RelativePath="..\..\src\cpputtest\testfixturetest.h"> | 238 | RelativePath="..\..\src\cpputtest\smallmaptest.h"> |
4423 | 239 | </File> | 239 | </File> |
4424 | 240 | <File | 240 | <File |
4425 | 241 | RelativePath="..\..\src\cpputtest\testfunctor.cpp"> | 241 | RelativePath="..\..\src\cpputtest\testbasicassertion.cpp"> |
4426 | 242 | </File> | 242 | </File> |
4427 | 243 | <File | 243 | <File |
4428 | 244 | RelativePath="..\..\src\cpputtest\testinfotest.cpp"> | 244 | RelativePath="..\..\src\cpputtest\testexceptionguard.cpp"> |
4429 | 245 | </File> | 245 | </File> |
4430 | 246 | <File | 246 | <File |
4431 | 247 | RelativePath="..\..\src\cpputtest\testtestcase.cpp"> | 247 | RelativePath="..\..\src\cpputtest\testfixturetest.cpp"> |
4432 | 248 | </File> | 248 | </File> |
4433 | 249 | <File | 249 | <File |
4434 | 250 | RelativePath="..\..\src\cpputtest\testtestsuite.cpp"> | 250 | RelativePath="..\..\src\cpputtest\testfunctor.cpp"> |
4435 | 251 | </File> | 251 | </File> |
4436 | 252 | <File | 252 | <File |
4437 | 253 | RelativePath="..\..\src\cpputtest\valuetest.cpp"> | 253 | RelativePath="..\..\src\cpputtest\testinfotest.cpp"> |
4438 | 254 | </File> | 254 | </File> |
4439 | 255 | <File | 255 | <File |
4440 | 256 | RelativePath="..\..\src\cpputtest\valuetest.h"> | 256 | RelativePath="..\..\src\cpputtest\testtestcase.cpp"> |
4441 | 257 | </File> | 257 | </File> |
4442 | 258 | </Files> | 258 | <File |
4443 | 259 | <Globals> | 259 | RelativePath="..\..\src\cpputtest\testtestsuite.cpp"> |
4444 | 260 | </Globals> | 260 | <FileConfiguration |
4445 | 261 | </VisualStudioProject> | 261 | Name="Debug|Win32" |
4446 | 262 | ExcludedFromBuild="TRUE"> | ||
4447 | 263 | <Tool | ||
4448 | 264 | Name="VCCLCompilerTool"/> | ||
4449 | 265 | </FileConfiguration> | ||
4450 | 266 | <FileConfiguration | ||
4451 | 267 | Name="Release|Win32" | ||
4452 | 268 | ExcludedFromBuild="TRUE"> | ||
4453 | 269 | <Tool | ||
4454 | 270 | Name="VCCLCompilerTool"/> | ||
4455 | 271 | </FileConfiguration> | ||
4456 | 272 | </File> | ||
4457 | 273 | <File | ||
4458 | 274 | RelativePath="..\..\src\cpputtest\valuetest.cpp"> | ||
4459 | 275 | </File> | ||
4460 | 276 | <File | ||
4461 | 277 | RelativePath="..\..\src\cpputtest\valuetest.h"> | ||
4462 | 278 | </File> | ||
4463 | 279 | </Files> | ||
4464 | 280 | <Globals> | ||
4465 | 281 | </Globals> | ||
4466 | 282 | </VisualStudioProject> | ||
4467 | 262 | 283 | ||
4468 | === modified file 'cppunit2/makefiles/vs80/cpput_lib.vcproj' | |||
4469 | --- cppunit2/makefiles/vs80/cpput_lib.vcproj 2008-07-13 06:19:20 +0000 | |||
4470 | +++ cppunit2/makefiles/vs80/cpput_lib.vcproj 2008-12-20 10:16:30 +0000 | |||
4471 | @@ -1,402 +1,414 @@ | |||
4874 | 1 | <?xml version="1.0" encoding="Windows-1252"?> | 1 | <?xml version="1.0" encoding="Windows-1252"?> |
4875 | 2 | <VisualStudioProject | 2 | <VisualStudioProject |
4876 | 3 | ProjectType="Visual C++" | 3 | ProjectType="Visual C++" |
4877 | 4 | Version="8,00" | 4 | Version="8,00" |
4878 | 5 | Name="cpput_lib" | 5 | Name="cpput_lib" |
4879 | 6 | ProjectGUID="{79273A0D-700E-4AFA-B7F2-14D4CC325521}" | 6 | ProjectGUID="{79273A0D-700E-4AFA-B7F2-14D4CC325521}" |
4880 | 7 | Keyword="Win32Proj" | 7 | Keyword="Win32Proj" |
4881 | 8 | > | 8 | > |
4882 | 9 | <Platforms> | 9 | <Platforms> |
4883 | 10 | <Platform | 10 | <Platform |
4884 | 11 | Name="Win32" | 11 | Name="Win32" |
4885 | 12 | /> | 12 | /> |
4886 | 13 | </Platforms> | 13 | </Platforms> |
4887 | 14 | <ToolFiles> | 14 | <ToolFiles> |
4888 | 15 | </ToolFiles> | 15 | </ToolFiles> |
4889 | 16 | <Configurations> | 16 | <Configurations> |
4890 | 17 | <Configuration | 17 | <Configuration |
4891 | 18 | Name="Debug|Win32" | 18 | Name="Debug|Win32" |
4892 | 19 | OutputDirectory="../../build/cpput/debug" | 19 | OutputDirectory="../../build/cpput/debug" |
4893 | 20 | IntermediateDirectory="../../build/cpput/debug" | 20 | IntermediateDirectory="../../build/cpput/debug" |
4894 | 21 | ConfigurationType="4" | 21 | ConfigurationType="4" |
4895 | 22 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" | 22 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" |
4896 | 23 | CharacterSet="2" | 23 | CharacterSet="2" |
4897 | 24 | > | 24 | > |
4898 | 25 | <Tool | 25 | <Tool |
4899 | 26 | Name="VCPreBuildEventTool" | 26 | Name="VCPreBuildEventTool" |
4900 | 27 | /> | 27 | /> |
4901 | 28 | <Tool | 28 | <Tool |
4902 | 29 | Name="VCCustomBuildTool" | 29 | Name="VCCustomBuildTool" |
4903 | 30 | /> | 30 | /> |
4904 | 31 | <Tool | 31 | <Tool |
4905 | 32 | Name="VCXMLDataGeneratorTool" | 32 | Name="VCXMLDataGeneratorTool" |
4906 | 33 | /> | 33 | /> |
4907 | 34 | <Tool | 34 | <Tool |
4908 | 35 | Name="VCWebServiceProxyGeneratorTool" | 35 | Name="VCWebServiceProxyGeneratorTool" |
4909 | 36 | /> | 36 | /> |
4910 | 37 | <Tool | 37 | <Tool |
4911 | 38 | Name="VCMIDLTool" | 38 | Name="VCMIDLTool" |
4912 | 39 | /> | 39 | /> |
4913 | 40 | <Tool | 40 | <Tool |
4914 | 41 | Name="VCCLCompilerTool" | 41 | Name="VCCLCompilerTool" |
4915 | 42 | Optimization="0" | 42 | Optimization="0" |
4916 | 43 | AdditionalIncludeDirectories="../../include" | 43 | AdditionalIncludeDirectories="../../include" |
4917 | 44 | PreprocessorDefinitions="WIN32;_DEBUG;_LIB" | 44 | PreprocessorDefinitions="WIN32;_DEBUG;_LIB" |
4918 | 45 | MinimalRebuild="true" | 45 | MinimalRebuild="true" |
4919 | 46 | BasicRuntimeChecks="3" | 46 | BasicRuntimeChecks="3" |
4920 | 47 | RuntimeLibrary="3" | 47 | RuntimeLibrary="3" |
4921 | 48 | BufferSecurityCheck="true" | 48 | BufferSecurityCheck="true" |
4922 | 49 | TreatWChar_tAsBuiltInType="true" | 49 | TreatWChar_tAsBuiltInType="true" |
4923 | 50 | ForceConformanceInForLoopScope="true" | 50 | ForceConformanceInForLoopScope="true" |
4924 | 51 | UsePrecompiledHeader="0" | 51 | UsePrecompiledHeader="0" |
4925 | 52 | WarningLevel="3" | 52 | WarningLevel="3" |
4926 | 53 | Detect64BitPortabilityProblems="false" | 53 | Detect64BitPortabilityProblems="false" |
4927 | 54 | DebugInformationFormat="3" | 54 | DebugInformationFormat="3" |
4928 | 55 | /> | 55 | /> |
4929 | 56 | <Tool | 56 | <Tool |
4930 | 57 | Name="VCManagedResourceCompilerTool" | 57 | Name="VCManagedResourceCompilerTool" |
4931 | 58 | /> | 58 | /> |
4932 | 59 | <Tool | 59 | <Tool |
4933 | 60 | Name="VCResourceCompilerTool" | 60 | Name="VCResourceCompilerTool" |
4934 | 61 | /> | 61 | /> |
4935 | 62 | <Tool | 62 | <Tool |
4936 | 63 | Name="VCPreLinkEventTool" | 63 | Name="VCPreLinkEventTool" |
4937 | 64 | /> | 64 | /> |
4938 | 65 | <Tool | 65 | <Tool |
4939 | 66 | Name="VCLibrarianTool" | 66 | Name="VCLibrarianTool" |
4940 | 67 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib" | 67 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib" |
4941 | 68 | /> | 68 | /> |
4942 | 69 | <Tool | 69 | <Tool |
4943 | 70 | Name="VCALinkTool" | 70 | Name="VCALinkTool" |
4944 | 71 | /> | 71 | /> |
4945 | 72 | <Tool | 72 | <Tool |
4946 | 73 | Name="VCXDCMakeTool" | 73 | Name="VCXDCMakeTool" |
4947 | 74 | /> | 74 | /> |
4948 | 75 | <Tool | 75 | <Tool |
4949 | 76 | Name="VCBscMakeTool" | 76 | Name="VCBscMakeTool" |
4950 | 77 | /> | 77 | /> |
4951 | 78 | <Tool | 78 | <Tool |
4952 | 79 | Name="VCFxCopTool" | 79 | Name="VCFxCopTool" |
4953 | 80 | /> | 80 | /> |
4954 | 81 | <Tool | 81 | <Tool |
4955 | 82 | Name="VCPostBuildEventTool" | 82 | Name="VCPostBuildEventTool" |
4956 | 83 | /> | 83 | /> |
4957 | 84 | </Configuration> | 84 | </Configuration> |
4958 | 85 | <Configuration | 85 | <Configuration |
4959 | 86 | Name="Release|Win32" | 86 | Name="Release|Win32" |
4960 | 87 | OutputDirectory="../../build/cpput/release" | 87 | OutputDirectory="../../build/cpput/release" |
4961 | 88 | IntermediateDirectory="../../build/cpput/release" | 88 | IntermediateDirectory="../../build/cpput/release" |
4962 | 89 | ConfigurationType="4" | 89 | ConfigurationType="4" |
4963 | 90 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" | 90 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" |
4964 | 91 | CharacterSet="2" | 91 | CharacterSet="2" |
4965 | 92 | > | 92 | > |
4966 | 93 | <Tool | 93 | <Tool |
4967 | 94 | Name="VCPreBuildEventTool" | 94 | Name="VCPreBuildEventTool" |
4968 | 95 | /> | 95 | /> |
4969 | 96 | <Tool | 96 | <Tool |
4970 | 97 | Name="VCCustomBuildTool" | 97 | Name="VCCustomBuildTool" |
4971 | 98 | /> | 98 | /> |
4972 | 99 | <Tool | 99 | <Tool |
4973 | 100 | Name="VCXMLDataGeneratorTool" | 100 | Name="VCXMLDataGeneratorTool" |
4974 | 101 | /> | 101 | /> |
4975 | 102 | <Tool | 102 | <Tool |
4976 | 103 | Name="VCWebServiceProxyGeneratorTool" | 103 | Name="VCWebServiceProxyGeneratorTool" |
4977 | 104 | /> | 104 | /> |
4978 | 105 | <Tool | 105 | <Tool |
4979 | 106 | Name="VCMIDLTool" | 106 | Name="VCMIDLTool" |
4980 | 107 | /> | 107 | /> |
4981 | 108 | <Tool | 108 | <Tool |
4982 | 109 | Name="VCCLCompilerTool" | 109 | Name="VCCLCompilerTool" |
4983 | 110 | AdditionalIncludeDirectories="../../include" | 110 | AdditionalIncludeDirectories="../../include" |
4984 | 111 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB" | 111 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB" |
4985 | 112 | StringPooling="true" | 112 | StringPooling="true" |
4986 | 113 | RuntimeLibrary="2" | 113 | RuntimeLibrary="2" |
4987 | 114 | EnableFunctionLevelLinking="true" | 114 | EnableFunctionLevelLinking="true" |
4988 | 115 | TreatWChar_tAsBuiltInType="true" | 115 | TreatWChar_tAsBuiltInType="true" |
4989 | 116 | ForceConformanceInForLoopScope="true" | 116 | ForceConformanceInForLoopScope="true" |
4990 | 117 | UsePrecompiledHeader="0" | 117 | UsePrecompiledHeader="0" |
4991 | 118 | WarningLevel="3" | 118 | WarningLevel="3" |
4992 | 119 | Detect64BitPortabilityProblems="false" | 119 | Detect64BitPortabilityProblems="false" |
4993 | 120 | DebugInformationFormat="3" | 120 | DebugInformationFormat="3" |
4994 | 121 | /> | 121 | /> |
4995 | 122 | <Tool | 122 | <Tool |
4996 | 123 | Name="VCManagedResourceCompilerTool" | 123 | Name="VCManagedResourceCompilerTool" |
4997 | 124 | /> | 124 | /> |
4998 | 125 | <Tool | 125 | <Tool |
4999 | 126 | Name="VCResourceCompilerTool" | 126 | Name="VCResourceCompilerTool" |
5000 | 127 | /> | 127 | /> |
4599 | 128 | <Tool | ||
4600 | 129 | Name="VCPreLinkEventTool" | ||
4601 | 130 | /> | ||
4602 | 131 | <Tool | ||
4603 | 132 | Name="VCLibrarianTool" | ||
4604 | 133 | OutputFile="$(OutDir)/cpput_vc71_libmd.lib" | ||
4605 | 134 | /> | ||
4606 | 135 | <Tool | ||
4607 | 136 | Name="VCALinkTool" | ||
4608 | 137 | /> | ||
4609 | 138 | <Tool | ||
4610 | 139 | Name="VCXDCMakeTool" | ||
4611 | 140 | /> | ||
4612 | 141 | <Tool | ||
4613 | 142 | Name="VCBscMakeTool" | ||
4614 | 143 | /> | ||
4615 | 144 | <Tool | ||
4616 | 145 | Name="VCFxCopTool" | ||
4617 | 146 | /> | ||
4618 | 147 | <Tool | ||
4619 | 148 | Name="VCPostBuildEventTool" | ||
4620 | 149 | /> | ||
4621 | 150 | </Configuration> | ||
4622 | 151 | </Configurations> | ||
4623 | 152 | <References> | ||
4624 | 153 | </References> | ||
4625 | 154 | <Files> | ||
4626 | 155 | <Filter | ||
4627 | 156 | Name="codetorevisit" | ||
4628 | 157 | > | ||
4629 | 158 | <File | ||
4630 | 159 | RelativePath="..\..\src\cpput\parametrizedsource.cpp" | ||
4631 | 160 | > | ||
4632 | 161 | </File> | ||
4633 | 162 | <File | ||
4634 | 163 | RelativePath="..\..\include\cpput\parametrizedsource.h" | ||
4635 | 164 | > | ||
4636 | 165 | </File> | ||
4637 | 166 | <File | ||
4638 | 167 | RelativePath="..\..\src\cpput\tablefixture.cpp" | ||
4639 | 168 | > | ||
4640 | 169 | <FileConfiguration | ||
4641 | 170 | Name="Debug|Win32" | ||
4642 | 171 | ExcludedFromBuild="true" | ||
4643 | 172 | > | ||
4644 | 173 | <Tool | ||
4645 | 174 | Name="VCCLCompilerTool" | ||
4646 | 175 | /> | ||
4647 | 176 | </FileConfiguration> | ||
4648 | 177 | <FileConfiguration | ||
4649 | 178 | Name="Release|Win32" | ||
4650 | 179 | ExcludedFromBuild="true" | ||
4651 | 180 | > | ||
4652 | 181 | <Tool | ||
4653 | 182 | Name="VCCLCompilerTool" | ||
4654 | 183 | /> | ||
4655 | 184 | </FileConfiguration> | ||
4656 | 185 | </File> | ||
4657 | 186 | <File | ||
4658 | 187 | RelativePath="..\..\src\cpput\testrunner.cpp" | ||
4659 | 188 | > | ||
4660 | 189 | <FileConfiguration | ||
4661 | 190 | Name="Debug|Win32" | ||
4662 | 191 | ExcludedFromBuild="true" | ||
4663 | 192 | > | ||
4664 | 193 | <Tool | ||
4665 | 194 | Name="VCCLCompilerTool" | ||
4666 | 195 | /> | ||
4667 | 196 | </FileConfiguration> | ||
4668 | 197 | <FileConfiguration | ||
4669 | 198 | Name="Release|Win32" | ||
4670 | 199 | ExcludedFromBuild="true" | ||
4671 | 200 | > | ||
4672 | 201 | <Tool | ||
4673 | 202 | Name="VCCLCompilerTool" | ||
4674 | 203 | /> | ||
4675 | 204 | </FileConfiguration> | ||
4676 | 205 | </File> | ||
4677 | 206 | <File | ||
4678 | 207 | RelativePath="..\..\include\cpput\testrunner.h" | ||
4679 | 208 | > | ||
4680 | 209 | </File> | ||
4681 | 210 | </Filter> | ||
4682 | 211 | <Filter | ||
4683 | 212 | Name="doc" | ||
4684 | 213 | > | ||
4685 | 214 | <File | ||
4686 | 215 | RelativePath="..\..\changelog.txt" | ||
4687 | 216 | > | ||
4688 | 217 | </File> | ||
4689 | 218 | <File | ||
4690 | 219 | RelativePath="..\..\doc\coding_guidelines.dox" | ||
4691 | 220 | > | ||
4692 | 221 | </File> | ||
4693 | 222 | <File | ||
4694 | 223 | RelativePath="..\..\doc\cpput.dox" | ||
4695 | 224 | > | ||
4696 | 225 | </File> | ||
4697 | 226 | <File | ||
4698 | 227 | RelativePath="..\..\doc\cpput_todo.dox" | ||
4699 | 228 | > | ||
4700 | 229 | </File> | ||
4701 | 230 | <File | ||
4702 | 231 | RelativePath="..\..\doc\custom.css" | ||
4703 | 232 | > | ||
4704 | 233 | </File> | ||
4705 | 234 | <File | ||
4706 | 235 | RelativePath="..\..\doc\doxyfile.in" | ||
4707 | 236 | > | ||
4708 | 237 | </File> | ||
4709 | 238 | <File | ||
4710 | 239 | RelativePath="..\..\doc\footer.html" | ||
4711 | 240 | > | ||
4712 | 241 | </File> | ||
4713 | 242 | <File | ||
4714 | 243 | RelativePath="..\..\doc\header.html" | ||
4715 | 244 | > | ||
4716 | 245 | </File> | ||
4717 | 246 | </Filter> | ||
4718 | 247 | <File | ||
4719 | 248 | RelativePath="..\..\src\cpput\assert.cpp" | ||
4720 | 249 | > | ||
4721 | 250 | </File> | ||
4722 | 251 | <File | ||
4723 | 252 | RelativePath="..\..\include\cpput\assertcommon.h" | ||
4724 | 253 | > | ||
4725 | 254 | </File> | ||
4726 | 255 | <File | ||
4727 | 256 | RelativePath="..\..\include\cpput\assertenum.h" | ||
4728 | 257 | > | ||
4729 | 258 | </File> | ||
4730 | 259 | <File | ||
4731 | 260 | RelativePath="..\..\src\cpput\assertstring.cpp" | ||
4732 | 261 | > | ||
4733 | 262 | </File> | ||
4734 | 263 | <File | ||
4735 | 264 | RelativePath="..\..\include\cpput\assertstring.h" | ||
4736 | 265 | > | ||
4737 | 266 | </File> | ||
4738 | 267 | <File | ||
4739 | 268 | RelativePath="..\..\include\cpput\autolink.h" | ||
4740 | 269 | > | ||
4741 | 270 | </File> | ||
4742 | 271 | <File | ||
4743 | 272 | RelativePath="..\..\include\cpput\config.h" | ||
4744 | 273 | > | ||
4745 | 274 | </File> | ||
4746 | 275 | <File | ||
4747 | 276 | RelativePath="..\..\src\cpput\dllproxy.cpp" | ||
4748 | 277 | > | ||
4749 | 278 | </File> | ||
4750 | 279 | <File | ||
4751 | 280 | RelativePath="..\..\include\cpput\dllproxy.h" | ||
4752 | 281 | > | ||
4753 | 282 | </File> | ||
4754 | 283 | <File | ||
4755 | 284 | RelativePath="..\..\include\cpput\equality.h" | ||
4756 | 285 | > | ||
4757 | 286 | </File> | ||
4758 | 287 | <File | ||
4759 | 288 | RelativePath="..\..\src\cpput\exceptionguard.cpp" | ||
4760 | 289 | > | ||
4761 | 290 | </File> | ||
4762 | 291 | <File | ||
4763 | 292 | RelativePath="..\..\include\cpput\exceptionguard.h" | ||
4764 | 293 | > | ||
4765 | 294 | </File> | ||
4766 | 295 | <File | ||
4767 | 296 | RelativePath="..\..\src\cpput\extendeddata.cpp" | ||
4768 | 297 | > | ||
4769 | 298 | </File> | ||
4770 | 299 | <File | ||
4771 | 300 | RelativePath="..\..\include\cpput\extendeddata.h" | ||
4772 | 301 | > | ||
4773 | 302 | </File> | ||
4774 | 303 | <File | ||
4775 | 304 | RelativePath="..\..\include\cpput\forwards.h" | ||
4776 | 305 | > | ||
4777 | 306 | </File> | ||
4778 | 307 | <File | ||
4779 | 308 | RelativePath="..\..\include\cpput\inputbasedtest.h" | ||
4780 | 309 | > | ||
4781 | 310 | </File> | ||
4782 | 311 | <File | ||
4783 | 312 | RelativePath="..\..\include\cpput\lightfixture.h" | ||
4784 | 313 | > | ||
4785 | 314 | </File> | ||
4786 | 315 | <File | ||
4787 | 316 | RelativePath="..\..\src\cpput\lighttestrunner.cpp" | ||
4788 | 317 | > | ||
4789 | 318 | </File> | ||
4790 | 319 | <File | ||
4791 | 320 | RelativePath="..\..\include\cpput\lighttestrunner.h" | ||
4792 | 321 | > | ||
4793 | 322 | </File> | ||
4794 | 323 | <File | ||
4795 | 324 | RelativePath="..\..\src\cpput\message.cpp" | ||
4796 | 325 | > | ||
4797 | 326 | </File> | ||
4798 | 327 | <File | ||
4799 | 328 | RelativePath="..\..\include\cpput\message.h" | ||
4800 | 329 | > | ||
4801 | 330 | </File> | ||
4802 | 331 | <File | ||
4803 | 332 | RelativePath="..\..\src\cpput\registry.cpp" | ||
4804 | 333 | > | ||
4805 | 334 | </File> | ||
4806 | 335 | <File | ||
4807 | 336 | RelativePath="..\..\include\cpput\registry.h" | ||
4808 | 337 | > | ||
4809 | 338 | </File> | ||
4810 | 339 | <File | ||
4811 | 340 | RelativePath="..\..\src\cpput\resource.cpp" | ||
4812 | 341 | > | ||
4813 | 342 | </File> | ||
4814 | 343 | <File | ||
4815 | 344 | RelativePath="..\..\include\cpput\resource.h" | ||
4816 | 345 | > | ||
4817 | 346 | </File> | ||
4818 | 347 | <File | ||
4819 | 348 | RelativePath="..\..\include\cpput\stringize.h" | ||
4820 | 349 | > | ||
4821 | 350 | </File> | ||
4822 | 351 | <File | ||
4823 | 352 | RelativePath="..\..\include\cpput\tablefixture.h" | ||
4824 | 353 | > | ||
4825 | 354 | </File> | ||
4826 | 355 | <File | ||
4827 | 356 | RelativePath="..\..\include\cpput\test.h" | ||
4828 | 357 | > | ||
4829 | 358 | </File> | ||
4830 | 359 | <File | ||
4831 | 360 | RelativePath="..\..\src\cpput\testcase.cpp" | ||
4832 | 361 | > | ||
4833 | 362 | </File> | ||
4834 | 363 | <File | ||
4835 | 364 | RelativePath="..\..\include\cpput\testcase.h" | ||
4836 | 365 | > | ||
4837 | 366 | </File> | ||
4838 | 367 | <File | ||
4839 | 368 | RelativePath="..\..\include\cpput\testfixture.h" | ||
4840 | 369 | > | ||
4841 | 370 | </File> | ||
4842 | 371 | <File | ||
4843 | 372 | RelativePath="..\..\include\cpput\testfunction.h" | ||
4844 | 373 | > | ||
4845 | 374 | </File> | ||
4846 | 375 | <File | ||
4847 | 376 | RelativePath="..\..\src\cpput\testinfo.cpp" | ||
4848 | 377 | > | ||
4849 | 378 | </File> | ||
4850 | 379 | <File | ||
4851 | 380 | RelativePath="..\..\include\cpput\testinfo.h" | ||
4852 | 381 | > | ||
4853 | 382 | </File> | ||
4854 | 383 | <File | ||
4855 | 384 | RelativePath="..\..\src\cpput\testsuite.cpp" | ||
4856 | 385 | > | ||
4857 | 386 | </File> | ||
4858 | 387 | <File | ||
4859 | 388 | RelativePath="..\..\include\cpput\testsuite.h" | ||
4860 | 389 | > | ||
4861 | 390 | </File> | ||
4862 | 391 | <File | ||
4863 | 392 | RelativePath="..\..\include\cpput\testvisitor.h" | ||
4864 | 393 | > | ||
4865 | 394 | </File> | ||
4866 | 395 | <File | ||
4867 | 396 | RelativePath="..\..\include\cpput\translate.h" | ||
4868 | 397 | > | ||
4869 | 398 | </File> | ||
4870 | 399 | </Files> | ||
4871 | 400 | <Globals> | ||
4872 | 401 | </Globals> | ||
4873 | 402 | </VisualStudioProject> |
The diff has been truncated for viewing.
The registry now contains test case factory instead of test case instance. This will allow multiple instances creation for thread safety and makes it easier to have parametrized test.
The suite registry has been revised to match common use case, such as having a common top level suite for all test cases of a library.