diff options
author | dan miller | 2007-10-19 04:28:53 +0000 |
---|---|---|
committer | dan miller | 2007-10-19 04:28:53 +0000 |
commit | 0fc46fc9590912bf6925c899edd02d7a2cdf5f79 (patch) | |
tree | 51bcae7a1b8381a6bf6fd8025a7de1e30fe0045d /libraries/ode-0.9\/tests | |
parent | small bit of refactoring (diff) | |
download | opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.zip opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.gz opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.bz2 opensim-SC-0fc46fc9590912bf6925c899edd02d7a2cdf5f79.tar.xz |
adding ode source to /libraries
Diffstat (limited to 'libraries/ode-0.9\/tests')
29 files changed, 2281 insertions, 0 deletions
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/CheckMacros.h b/libraries/ode-0.9\/tests/CppTestHarness/CheckMacros.h new file mode 100755 index 0000000..85040b1 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/CheckMacros.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef CHECK_MACROS_H | ||
2 | #define CHECK_MACROS_H | ||
3 | |||
4 | #include "Checks.h" | ||
5 | |||
6 | #define CHECK(value) \ | ||
7 | if (!CppTestHarness::Check(value)) \ | ||
8 | testResults_.ReportFailure(__FILE__, __LINE__, #value); | ||
9 | |||
10 | #define CHECK_EQUAL(actual, expected) \ | ||
11 | if (!CppTestHarness::CheckEqual(actual, expected)) \ | ||
12 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual)); | ||
13 | |||
14 | #define CHECK_CLOSE(actual, expected, tolerance) \ | ||
15 | if (!CppTestHarness::CheckClose(actual, expected, tolerance)) \ | ||
16 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual)); | ||
17 | |||
18 | #define CHECK_ARRAY_EQUAL(actual, expected, count) \ | ||
19 | if (!CppTestHarness::CheckArrayEqual(actual, expected, count)) \ | ||
20 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual, count)); | ||
21 | |||
22 | #define CHECK_ARRAY_CLOSE(actual, expected, count, tolerance) \ | ||
23 | if (!CppTestHarness::CheckArrayClose(actual, expected, count, tolerance)) \ | ||
24 | testResults_.ReportFailure(__FILE__, __LINE__, CppTestHarness::BuildFailureString(expected, actual, count)); | ||
25 | |||
26 | #endif | ||
27 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/Checks.h b/libraries/ode-0.9\/tests/CppTestHarness/Checks.h new file mode 100755 index 0000000..7b4c2ca --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/Checks.h | |||
@@ -0,0 +1,97 @@ | |||
1 | #ifndef CHECKS_H | ||
2 | #define CHECKS_H | ||
3 | |||
4 | #include <sstream> | ||
5 | #include <cmath> | ||
6 | |||
7 | namespace CppTestHarness | ||
8 | { | ||
9 | template< typename Value > | ||
10 | bool Check(Value const value) | ||
11 | { | ||
12 | #ifdef _MSC_VER | ||
13 | # pragma warning(push) | ||
14 | # pragma warning(disable:4127) // conditional expression is constant | ||
15 | # pragma warning(disable:4800) // forcing value to bool true/false, performance warning | ||
16 | #endif | ||
17 | return value; | ||
18 | #ifdef _MSC_VER | ||
19 | # pragma warning(pop) | ||
20 | #endif | ||
21 | } | ||
22 | |||
23 | template< typename Actual, typename Expected > | ||
24 | bool CheckEqual(Actual const actual, Expected const expected) | ||
25 | { | ||
26 | #ifdef _MSC_VER | ||
27 | # pragma warning(push) | ||
28 | # pragma warning(disable:4127) // conditional expression is constant | ||
29 | #endif | ||
30 | return (actual == expected); | ||
31 | #ifdef _MSC_VER | ||
32 | # pragma warning(pop) | ||
33 | #endif | ||
34 | } | ||
35 | |||
36 | template< typename Actual, typename Expected > | ||
37 | bool CheckArrayEqual(Actual const actual, Expected const expected, int const count) | ||
38 | { | ||
39 | for (int i = 0; i < count; ++i) | ||
40 | { | ||
41 | if (!(actual[i] == expected[i])) | ||
42 | return false; | ||
43 | } | ||
44 | |||
45 | return true; | ||
46 | } | ||
47 | |||
48 | template< typename Actual, typename Expected, typename Tolerance > | ||
49 | bool CheckClose(Actual const actual, Expected const expected, Tolerance const tolerance) | ||
50 | { | ||
51 | return (std::abs(double(actual) - double(expected)) <= double(tolerance)); | ||
52 | } | ||
53 | |||
54 | template< typename Actual, typename Expected, typename Tolerance > | ||
55 | bool CheckArrayClose(Actual const actual, Expected const expected, int const count, Tolerance const tolerance) | ||
56 | { | ||
57 | for (int i = 0; i < count; ++i) | ||
58 | { | ||
59 | if (!CheckClose(actual[i], expected[i], tolerance)) | ||
60 | return false; | ||
61 | } | ||
62 | |||
63 | return true; | ||
64 | } | ||
65 | |||
66 | template< typename Actual, typename Expected > | ||
67 | std::string BuildFailureString(Actual const actual, Expected const expected) | ||
68 | { | ||
69 | std::stringstream failureStr; | ||
70 | failureStr << "Expected " << actual << " but got " << expected << std::endl; | ||
71 | return failureStr.str(); | ||
72 | } | ||
73 | |||
74 | template< typename Actual, typename Expected > | ||
75 | std::string BuildFailureString(Actual const* actual, Expected const* expected, int const count) | ||
76 | { | ||
77 | std::stringstream failureStr; | ||
78 | int i; | ||
79 | |||
80 | failureStr << "Expected [ "; | ||
81 | |||
82 | for (i = 0; i < count; ++i) | ||
83 | failureStr << expected[i] << ' '; | ||
84 | |||
85 | failureStr << "] but got [ "; | ||
86 | |||
87 | for (i = 0; i < count; ++i) | ||
88 | failureStr << expected[i] << ' '; | ||
89 | |||
90 | failureStr << ']' << std::endl; | ||
91 | |||
92 | return failureStr.str(); | ||
93 | } | ||
94 | } | ||
95 | |||
96 | #endif | ||
97 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.h b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.h new file mode 100755 index 0000000..aa3b8ae --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.h | |||
@@ -0,0 +1,14 @@ | |||
1 | #ifndef TEST_HARNESS_H | ||
2 | #define TEST_HARNESS_H | ||
3 | |||
4 | #include "Test.h" | ||
5 | #include "TypedTestLauncher.h" | ||
6 | #include "TestResults.h" | ||
7 | |||
8 | #include "TestMacros.h" | ||
9 | #include "CheckMacros.h" | ||
10 | |||
11 | #include "TestRunner.h" | ||
12 | |||
13 | #endif | ||
14 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.sln b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.sln new file mode 100755 index 0000000..20f1959 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.sln | |||
@@ -0,0 +1,28 @@ | |||
1 | Microsoft Visual Studio Solution File, Format Version 9.00 | ||
2 | # Visual Studio 2005 | ||
3 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "CppTestHarness", "CppTestHarness.vcproj", "{BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}" | ||
4 | EndProject | ||
5 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "TestCppTestHarness", "TestCppTestHarness\TestCppTestHarness.vcproj", "{639DCE9E-BB6F-4A3E-9DC1-43A4EA9BAA61}" | ||
6 | ProjectSection(ProjectDependencies) = postProject | ||
7 | {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0} = {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0} | ||
8 | EndProjectSection | ||
9 | EndProject | ||
10 | Global | ||
11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
12 | Debug|Win32 = Debug|Win32 | ||
13 | Release|Win32 = Release|Win32 | ||
14 | EndGlobalSection | ||
15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
16 | {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
17 | {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}.Debug|Win32.Build.0 = Debug|Win32 | ||
18 | {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}.Release|Win32.ActiveCfg = Release|Win32 | ||
19 | {BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}.Release|Win32.Build.0 = Release|Win32 | ||
20 | {639DCE9E-BB6F-4A3E-9DC1-43A4EA9BAA61}.Debug|Win32.ActiveCfg = Debug|Win32 | ||
21 | {639DCE9E-BB6F-4A3E-9DC1-43A4EA9BAA61}.Debug|Win32.Build.0 = Debug|Win32 | ||
22 | {639DCE9E-BB6F-4A3E-9DC1-43A4EA9BAA61}.Release|Win32.ActiveCfg = Release|Win32 | ||
23 | {639DCE9E-BB6F-4A3E-9DC1-43A4EA9BAA61}.Release|Win32.Build.0 = Release|Win32 | ||
24 | EndGlobalSection | ||
25 | GlobalSection(SolutionProperties) = preSolution | ||
26 | HideSolutionNode = FALSE | ||
27 | EndGlobalSection | ||
28 | EndGlobal | ||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.vcproj b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.vcproj new file mode 100755 index 0000000..8a50a98 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/CppTestHarness.vcproj | |||
@@ -0,0 +1,227 @@ | |||
1 | <?xml version="1.0" encoding="Windows-1252"?> | ||
2 | <VisualStudioProject | ||
3 | ProjectType="Visual C++" | ||
4 | Version="8.00" | ||
5 | Name="CppTestHarness" | ||
6 | ProjectGUID="{BFA21FB6-8FF9-4B44-ACB3-FC57CEA663D0}" | ||
7 | Keyword="Win32Proj" | ||
8 | > | ||
9 | <Platforms> | ||
10 | <Platform | ||
11 | Name="Win32" | ||
12 | /> | ||
13 | </Platforms> | ||
14 | <ToolFiles> | ||
15 | </ToolFiles> | ||
16 | <Configurations> | ||
17 | <Configuration | ||
18 | Name="Debug|Win32" | ||
19 | OutputDirectory="Debug" | ||
20 | IntermediateDirectory="Debug" | ||
21 | ConfigurationType="4" | ||
22 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" | ||
23 | CharacterSet="2" | ||
24 | > | ||
25 | <Tool | ||
26 | Name="VCPreBuildEventTool" | ||
27 | /> | ||
28 | <Tool | ||
29 | Name="VCCustomBuildTool" | ||
30 | /> | ||
31 | <Tool | ||
32 | Name="VCXMLDataGeneratorTool" | ||
33 | /> | ||
34 | <Tool | ||
35 | Name="VCWebServiceProxyGeneratorTool" | ||
36 | /> | ||
37 | <Tool | ||
38 | Name="VCMIDLTool" | ||
39 | /> | ||
40 | <Tool | ||
41 | Name="VCCLCompilerTool" | ||
42 | Optimization="0" | ||
43 | PreprocessorDefinitions="WIN32;_DEBUG;_LIB" | ||
44 | MinimalRebuild="true" | ||
45 | ExceptionHandling="2" | ||
46 | BasicRuntimeChecks="3" | ||
47 | RuntimeLibrary="1" | ||
48 | UsePrecompiledHeader="0" | ||
49 | WarningLevel="4" | ||
50 | Detect64BitPortabilityProblems="true" | ||
51 | DebugInformationFormat="4" | ||
52 | /> | ||
53 | <Tool | ||
54 | Name="VCManagedResourceCompilerTool" | ||
55 | /> | ||
56 | <Tool | ||
57 | Name="VCResourceCompilerTool" | ||
58 | /> | ||
59 | <Tool | ||
60 | Name="VCPreLinkEventTool" | ||
61 | /> | ||
62 | <Tool | ||
63 | Name="VCLibrarianTool" | ||
64 | OutputFile="$(OutDir)/CppTestHarness.lib" | ||
65 | /> | ||
66 | <Tool | ||
67 | Name="VCALinkTool" | ||
68 | /> | ||
69 | <Tool | ||
70 | Name="VCXDCMakeTool" | ||
71 | /> | ||
72 | <Tool | ||
73 | Name="VCBscMakeTool" | ||
74 | /> | ||
75 | <Tool | ||
76 | Name="VCFxCopTool" | ||
77 | /> | ||
78 | <Tool | ||
79 | Name="VCPostBuildEventTool" | ||
80 | /> | ||
81 | </Configuration> | ||
82 | <Configuration | ||
83 | Name="Release|Win32" | ||
84 | OutputDirectory="Release" | ||
85 | IntermediateDirectory="Release" | ||
86 | ConfigurationType="4" | ||
87 | InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops" | ||
88 | CharacterSet="2" | ||
89 | > | ||
90 | <Tool | ||
91 | Name="VCPreBuildEventTool" | ||
92 | /> | ||
93 | <Tool | ||
94 | Name="VCCustomBuildTool" | ||
95 | /> | ||
96 | <Tool | ||
97 | Name="VCXMLDataGeneratorTool" | ||
98 | /> | ||
99 | <Tool | ||
100 | Name="VCWebServiceProxyGeneratorTool" | ||
101 | /> | ||
102 | <Tool | ||
103 | Name="VCMIDLTool" | ||
104 | /> | ||
105 | <Tool | ||
106 | Name="VCCLCompilerTool" | ||
107 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB" | ||
108 | ExceptionHandling="2" | ||
109 | RuntimeLibrary="0" | ||
110 | UsePrecompiledHeader="0" | ||
111 | WarningLevel="4" | ||
112 | Detect64BitPortabilityProblems="true" | ||
113 | DebugInformationFormat="3" | ||
114 | /> | ||
115 | <Tool | ||
116 | Name="VCManagedResourceCompilerTool" | ||
117 | /> | ||
118 | <Tool | ||
119 | Name="VCResourceCompilerTool" | ||
120 | /> | ||
121 | <Tool | ||
122 | Name="VCPreLinkEventTool" | ||
123 | /> | ||
124 | <Tool | ||
125 | Name="VCLibrarianTool" | ||
126 | OutputFile="$(OutDir)/CppTestHarness.lib" | ||
127 | /> | ||
128 | <Tool | ||
129 | Name="VCALinkTool" | ||
130 | /> | ||
131 | <Tool | ||
132 | Name="VCXDCMakeTool" | ||
133 | /> | ||
134 | <Tool | ||
135 | Name="VCBscMakeTool" | ||
136 | /> | ||
137 | <Tool | ||
138 | Name="VCFxCopTool" | ||
139 | /> | ||
140 | <Tool | ||
141 | Name="VCPostBuildEventTool" | ||
142 | /> | ||
143 | </Configuration> | ||
144 | </Configurations> | ||
145 | <References> | ||
146 | </References> | ||
147 | <Files> | ||
148 | <File | ||
149 | RelativePath=".\CheckMacros.h" | ||
150 | > | ||
151 | </File> | ||
152 | <File | ||
153 | RelativePath=".\Checks.h" | ||
154 | > | ||
155 | </File> | ||
156 | <File | ||
157 | RelativePath=".\CppTestHarness.h" | ||
158 | > | ||
159 | </File> | ||
160 | <File | ||
161 | RelativePath=".\HTMLTestReporter.cpp" | ||
162 | > | ||
163 | </File> | ||
164 | <File | ||
165 | RelativePath=".\HTMLTestReporter.h" | ||
166 | > | ||
167 | </File> | ||
168 | <File | ||
169 | RelativePath=".\PrintfTestReporter.cpp" | ||
170 | > | ||
171 | </File> | ||
172 | <File | ||
173 | RelativePath=".\PrintfTestReporter.h" | ||
174 | > | ||
175 | </File> | ||
176 | <File | ||
177 | RelativePath=".\Test.cpp" | ||
178 | > | ||
179 | </File> | ||
180 | <File | ||
181 | RelativePath=".\Test.h" | ||
182 | > | ||
183 | </File> | ||
184 | <File | ||
185 | RelativePath=".\TestLauncher.cpp" | ||
186 | > | ||
187 | </File> | ||
188 | <File | ||
189 | RelativePath=".\TestLauncher.h" | ||
190 | > | ||
191 | </File> | ||
192 | <File | ||
193 | RelativePath=".\TestMacros.h" | ||
194 | > | ||
195 | </File> | ||
196 | <File | ||
197 | RelativePath=".\TestReporter.cpp" | ||
198 | > | ||
199 | </File> | ||
200 | <File | ||
201 | RelativePath=".\TestReporter.h" | ||
202 | > | ||
203 | </File> | ||
204 | <File | ||
205 | RelativePath=".\TestResults.cpp" | ||
206 | > | ||
207 | </File> | ||
208 | <File | ||
209 | RelativePath=".\TestResults.h" | ||
210 | > | ||
211 | </File> | ||
212 | <File | ||
213 | RelativePath=".\TestRunner.cpp" | ||
214 | > | ||
215 | </File> | ||
216 | <File | ||
217 | RelativePath=".\TestRunner.h" | ||
218 | > | ||
219 | </File> | ||
220 | <File | ||
221 | RelativePath=".\TypedTestLauncher.h" | ||
222 | > | ||
223 | </File> | ||
224 | </Files> | ||
225 | <Globals> | ||
226 | </Globals> | ||
227 | </VisualStudioProject> | ||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.cpp b/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.cpp new file mode 100755 index 0000000..fd4acb1 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.cpp | |||
@@ -0,0 +1,87 @@ | |||
1 | #include "HTMLTestReporter.h" | ||
2 | |||
3 | #ifdef _MSC_VER | ||
4 | # pragma warning(disable:4996) // shut the secure crt stuff up, ctime is used correctly here. | ||
5 | #endif | ||
6 | |||
7 | #include <iostream> | ||
8 | #include <ctime> | ||
9 | #include <sstream> | ||
10 | |||
11 | namespace CppTestHarness | ||
12 | { | ||
13 | |||
14 | void HTMLTestReporter::ReportFailure(char const* file, int const line, std::string const failure) | ||
15 | { | ||
16 | std::stringstream msg; | ||
17 | msg << file << "(" << line << ") : " << failure; | ||
18 | |||
19 | m_failureMessages.push_back(msg.str()); | ||
20 | } | ||
21 | |||
22 | void HTMLTestReporter::ReportSingleResult(const std::string& testName, bool failed) | ||
23 | { | ||
24 | ResultRecord r; | ||
25 | r.testName = testName; | ||
26 | r.failed = failed; | ||
27 | |||
28 | //get reported failures and clear temp list | ||
29 | r.failureMessages = m_failureMessages; | ||
30 | m_failureMessages.clear(); | ||
31 | |||
32 | m_results.push_back(r); | ||
33 | } | ||
34 | |||
35 | void HTMLTestReporter::ReportSummary(int const testCount, int const failureCount) | ||
36 | { | ||
37 | std::ostream& os = std::cout; | ||
38 | |||
39 | //TODO: make all strings html safe | ||
40 | os << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">"; | ||
41 | os << "<html>\n"; | ||
42 | os << "<head>\n"; | ||
43 | os << " <title>Test Report</title>\n"; | ||
44 | os << "</head>\n"; | ||
45 | os << "<body text=\"black\" bgcolor=\"white\">\n"; | ||
46 | |||
47 | std::time_t currtime; | ||
48 | std::time(&currtime); | ||
49 | |||
50 | os << "<h1>Test Report: " << std::ctime(&currtime) << "</h1>\n"; | ||
51 | os << "<p><em>"; | ||
52 | os << testCount << " tests run.<br />\n"; | ||
53 | os << failureCount << " failed.<br />\n"; | ||
54 | os << "</em></p>"; | ||
55 | |||
56 | os << "<table border=1 bgcolor=\"#dddddd\">"; | ||
57 | |||
58 | //for each single test | ||
59 | for (ResultList::iterator i = m_results.begin(); i != m_results.end(); ++i) | ||
60 | { | ||
61 | os << "<tr>"; | ||
62 | os << "<td><strong>" << i->testName << "</strong></td>"; | ||
63 | |||
64 | if (i->failed) | ||
65 | os << "<td bgcolor=\"#ff0000\"><strong>FAILED</strong></td>"; | ||
66 | else | ||
67 | os << "<td bgcolor=\"#00ee00\"><strong>PASSED</strong></td>"; | ||
68 | |||
69 | os << "</tr><tr><td>"; | ||
70 | if (i->failed) os << "<ul>"; | ||
71 | |||
72 | for (MessageList::iterator j = i->failureMessages.begin(); j != i->failureMessages.end(); ++j) | ||
73 | { | ||
74 | os << "<li><code>"<< *j << "</code></li>\n"; | ||
75 | } | ||
76 | |||
77 | if (i->failed) os << "</ul>"; | ||
78 | os << "</td></tr>"; | ||
79 | } | ||
80 | |||
81 | os << "</table>"; | ||
82 | os << "</body>"; | ||
83 | os << "</html>"; | ||
84 | } | ||
85 | |||
86 | } | ||
87 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.h b/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.h new file mode 100755 index 0000000..3a23039 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/HTMLTestReporter.h | |||
@@ -0,0 +1,36 @@ | |||
1 | #ifndef HTML_TEST_REPORTER | ||
2 | #define HTML_TEST_REPORTER | ||
3 | |||
4 | #include "TestReporter.h" | ||
5 | #include <vector> | ||
6 | |||
7 | namespace CppTestHarness | ||
8 | { | ||
9 | |||
10 | class HTMLTestReporter : public TestReporter | ||
11 | { | ||
12 | public: | ||
13 | virtual void ReportFailure(char const* file, int line, std::string failure); | ||
14 | virtual void ReportSingleResult(const std::string& testName, bool failed); | ||
15 | virtual void ReportSummary(int testCount, int failureCount); | ||
16 | |||
17 | private: | ||
18 | typedef std::vector<std::string> MessageList; | ||
19 | |||
20 | struct ResultRecord | ||
21 | { | ||
22 | std::string testName; | ||
23 | bool failed; | ||
24 | MessageList failureMessages; | ||
25 | }; | ||
26 | |||
27 | MessageList m_failureMessages; | ||
28 | |||
29 | typedef std::vector<ResultRecord> ResultList; | ||
30 | ResultList m_results; | ||
31 | }; | ||
32 | |||
33 | } | ||
34 | |||
35 | #endif //HTML_TEST_REPORTER | ||
36 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/Makefile.am b/libraries/ode-0.9\/tests/CppTestHarness/Makefile.am new file mode 100755 index 0000000..1fcb0be --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/Makefile.am | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | noinst_LIBRARIES = libodetest.a | ||
3 | |||
4 | libodetest_a_SOURCES = \ | ||
5 | CheckMacros.h \ | ||
6 | Checks.h \ | ||
7 | CppTestHarness.h \ | ||
8 | HTMLTestReporter.cpp \ | ||
9 | HTMLTestReporter.h \ | ||
10 | PrintfTestReporter.cpp \ | ||
11 | PrintfTestReporter.h \ | ||
12 | SignalTranslator.h \ | ||
13 | Test.cpp \ | ||
14 | Test.h \ | ||
15 | TestLauncher.cpp \ | ||
16 | TestLauncher.h \ | ||
17 | TestMacros.h \ | ||
18 | TestReporter.cpp \ | ||
19 | TestReporter.h \ | ||
20 | TestResults.cpp \ | ||
21 | TestResults.h \ | ||
22 | TestRunner.cpp \ | ||
23 | TestRunner.h \ | ||
24 | TypedTestLauncher.h | ||
25 | |||
26 | libodetest_a_CXXFLAGS = @ARCHFLAGS@ -I$(top_srcdir)/include -I$(top_builddir)/include | ||
27 | |||
28 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/Makefile.in b/libraries/ode-0.9\/tests/CppTestHarness/Makefile.in new file mode 100755 index 0000000..88d0e1f --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/Makefile.in | |||
@@ -0,0 +1,562 @@ | |||
1 | # Makefile.in generated by automake 1.10 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | target_triplet = @target@ | ||
36 | subdir = tests/CppTestHarness | ||
37 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
39 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | ||
40 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
41 | $(ACLOCAL_M4) | ||
42 | mkinstalldirs = $(install_sh) -d | ||
43 | CONFIG_HEADER = $(top_builddir)/include/ode/config.h | ||
44 | CONFIG_CLEAN_FILES = | ||
45 | LIBRARIES = $(noinst_LIBRARIES) | ||
46 | AR = ar | ||
47 | ARFLAGS = cru | ||
48 | libodetest_a_AR = $(AR) $(ARFLAGS) | ||
49 | libodetest_a_LIBADD = | ||
50 | am_libodetest_a_OBJECTS = libodetest_a-HTMLTestReporter.$(OBJEXT) \ | ||
51 | libodetest_a-PrintfTestReporter.$(OBJEXT) \ | ||
52 | libodetest_a-Test.$(OBJEXT) \ | ||
53 | libodetest_a-TestLauncher.$(OBJEXT) \ | ||
54 | libodetest_a-TestReporter.$(OBJEXT) \ | ||
55 | libodetest_a-TestResults.$(OBJEXT) \ | ||
56 | libodetest_a-TestRunner.$(OBJEXT) | ||
57 | libodetest_a_OBJECTS = $(am_libodetest_a_OBJECTS) | ||
58 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/ode@am__isrc@ | ||
59 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
60 | am__depfiles_maybe = depfiles | ||
61 | CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
62 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | ||
63 | CXXLD = $(CXX) | ||
64 | CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ | ||
65 | -o $@ | ||
66 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
67 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
68 | CCLD = $(CC) | ||
69 | LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
70 | SOURCES = $(libodetest_a_SOURCES) | ||
71 | DIST_SOURCES = $(libodetest_a_SOURCES) | ||
72 | ETAGS = etags | ||
73 | CTAGS = ctags | ||
74 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
75 | ACLOCAL = @ACLOCAL@ | ||
76 | ALLOCA = @ALLOCA@ | ||
77 | AMTAR = @AMTAR@ | ||
78 | ARCHFLAGS = @ARCHFLAGS@ | ||
79 | AUTOCONF = @AUTOCONF@ | ||
80 | AUTOHEADER = @AUTOHEADER@ | ||
81 | AUTOMAKE = @AUTOMAKE@ | ||
82 | AWK = @AWK@ | ||
83 | CC = @CC@ | ||
84 | CCDEPMODE = @CCDEPMODE@ | ||
85 | CFLAGS = @CFLAGS@ | ||
86 | CPP = @CPP@ | ||
87 | CPPFLAGS = @CPPFLAGS@ | ||
88 | CXX = @CXX@ | ||
89 | CXXDEPMODE = @CXXDEPMODE@ | ||
90 | CXXFLAGS = @CXXFLAGS@ | ||
91 | CYGPATH_W = @CYGPATH_W@ | ||
92 | DEFS = @DEFS@ | ||
93 | DEPDIR = @DEPDIR@ | ||
94 | DRAWSTUFF = @DRAWSTUFF@ | ||
95 | ECHO_C = @ECHO_C@ | ||
96 | ECHO_N = @ECHO_N@ | ||
97 | ECHO_T = @ECHO_T@ | ||
98 | EGREP = @EGREP@ | ||
99 | EXEEXT = @EXEEXT@ | ||
100 | GL_LIBS = @GL_LIBS@ | ||
101 | GREP = @GREP@ | ||
102 | INSTALL = @INSTALL@ | ||
103 | INSTALL_DATA = @INSTALL_DATA@ | ||
104 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
105 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
106 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
107 | LDFLAGS = @LDFLAGS@ | ||
108 | LIBOBJS = @LIBOBJS@ | ||
109 | LIBS = @LIBS@ | ||
110 | LTLIBOBJS = @LTLIBOBJS@ | ||
111 | MAKEINFO = @MAKEINFO@ | ||
112 | MKDIR_P = @MKDIR_P@ | ||
113 | OBJEXT = @OBJEXT@ | ||
114 | ODE_AGE = @ODE_AGE@ | ||
115 | ODE_CURRENT = @ODE_CURRENT@ | ||
116 | ODE_RELEASE = @ODE_RELEASE@ | ||
117 | ODE_REVISION = @ODE_REVISION@ | ||
118 | ODE_SONAME = @ODE_SONAME@ | ||
119 | PACKAGE = @PACKAGE@ | ||
120 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
121 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
122 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
123 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
124 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
125 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
126 | RANLIB = @RANLIB@ | ||
127 | SET_MAKE = @SET_MAKE@ | ||
128 | SHARED_LDFLAGS = @SHARED_LDFLAGS@ | ||
129 | SHELL = @SHELL@ | ||
130 | STRIP = @STRIP@ | ||
131 | TOPDIR = @TOPDIR@ | ||
132 | VERSION = @VERSION@ | ||
133 | WINDRES = @WINDRES@ | ||
134 | XMKMF = @XMKMF@ | ||
135 | X_CFLAGS = @X_CFLAGS@ | ||
136 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
137 | X_LIBS = @X_LIBS@ | ||
138 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
139 | abs_builddir = @abs_builddir@ | ||
140 | abs_srcdir = @abs_srcdir@ | ||
141 | abs_top_builddir = @abs_top_builddir@ | ||
142 | abs_top_srcdir = @abs_top_srcdir@ | ||
143 | ac_ct_CC = @ac_ct_CC@ | ||
144 | ac_ct_CXX = @ac_ct_CXX@ | ||
145 | ac_ct_WINDRES = @ac_ct_WINDRES@ | ||
146 | am__include = @am__include@ | ||
147 | am__leading_dot = @am__leading_dot@ | ||
148 | am__quote = @am__quote@ | ||
149 | am__tar = @am__tar@ | ||
150 | am__untar = @am__untar@ | ||
151 | bindir = @bindir@ | ||
152 | build = @build@ | ||
153 | build_alias = @build_alias@ | ||
154 | build_cpu = @build_cpu@ | ||
155 | build_os = @build_os@ | ||
156 | build_vendor = @build_vendor@ | ||
157 | builddir = @builddir@ | ||
158 | datadir = @datadir@ | ||
159 | datarootdir = @datarootdir@ | ||
160 | docdir = @docdir@ | ||
161 | dvidir = @dvidir@ | ||
162 | exec_prefix = @exec_prefix@ | ||
163 | host = @host@ | ||
164 | host_alias = @host_alias@ | ||
165 | host_cpu = @host_cpu@ | ||
166 | host_os = @host_os@ | ||
167 | host_vendor = @host_vendor@ | ||
168 | htmldir = @htmldir@ | ||
169 | includedir = @includedir@ | ||
170 | infodir = @infodir@ | ||
171 | install_sh = @install_sh@ | ||
172 | libdir = @libdir@ | ||
173 | libexecdir = @libexecdir@ | ||
174 | localedir = @localedir@ | ||
175 | localstatedir = @localstatedir@ | ||
176 | mandir = @mandir@ | ||
177 | mkdir_p = @mkdir_p@ | ||
178 | oldincludedir = @oldincludedir@ | ||
179 | pdfdir = @pdfdir@ | ||
180 | prefix = @prefix@ | ||
181 | program_transform_name = @program_transform_name@ | ||
182 | psdir = @psdir@ | ||
183 | sbindir = @sbindir@ | ||
184 | sharedstatedir = @sharedstatedir@ | ||
185 | so_ext = @so_ext@ | ||
186 | srcdir = @srcdir@ | ||
187 | sysconfdir = @sysconfdir@ | ||
188 | target = @target@ | ||
189 | target_alias = @target_alias@ | ||
190 | target_cpu = @target_cpu@ | ||
191 | target_os = @target_os@ | ||
192 | target_vendor = @target_vendor@ | ||
193 | top_builddir = @top_builddir@ | ||
194 | top_srcdir = @top_srcdir@ | ||
195 | noinst_LIBRARIES = libodetest.a | ||
196 | libodetest_a_SOURCES = \ | ||
197 | CheckMacros.h \ | ||
198 | Checks.h \ | ||
199 | CppTestHarness.h \ | ||
200 | HTMLTestReporter.cpp \ | ||
201 | HTMLTestReporter.h \ | ||
202 | PrintfTestReporter.cpp \ | ||
203 | PrintfTestReporter.h \ | ||
204 | SignalTranslator.h \ | ||
205 | Test.cpp \ | ||
206 | Test.h \ | ||
207 | TestLauncher.cpp \ | ||
208 | TestLauncher.h \ | ||
209 | TestMacros.h \ | ||
210 | TestReporter.cpp \ | ||
211 | TestReporter.h \ | ||
212 | TestResults.cpp \ | ||
213 | TestResults.h \ | ||
214 | TestRunner.cpp \ | ||
215 | TestRunner.h \ | ||
216 | TypedTestLauncher.h | ||
217 | |||
218 | libodetest_a_CXXFLAGS = @ARCHFLAGS@ -I$(top_srcdir)/include -I$(top_builddir)/include | ||
219 | all: all-am | ||
220 | |||
221 | .SUFFIXES: | ||
222 | .SUFFIXES: .cpp .o .obj | ||
223 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
224 | @for dep in $?; do \ | ||
225 | case '$(am__configure_deps)' in \ | ||
226 | *$$dep*) \ | ||
227 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
228 | && exit 0; \ | ||
229 | exit 1;; \ | ||
230 | esac; \ | ||
231 | done; \ | ||
232 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/CppTestHarness/Makefile'; \ | ||
233 | cd $(top_srcdir) && \ | ||
234 | $(AUTOMAKE) --foreign tests/CppTestHarness/Makefile | ||
235 | .PRECIOUS: Makefile | ||
236 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
237 | @case '$?' in \ | ||
238 | *config.status*) \ | ||
239 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
240 | *) \ | ||
241 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
242 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
243 | esac; | ||
244 | |||
245 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
246 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
247 | |||
248 | $(top_srcdir)/configure: $(am__configure_deps) | ||
249 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
250 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
251 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
252 | |||
253 | clean-noinstLIBRARIES: | ||
254 | -test -z "$(noinst_LIBRARIES)" || rm -f $(noinst_LIBRARIES) | ||
255 | libodetest.a: $(libodetest_a_OBJECTS) $(libodetest_a_DEPENDENCIES) | ||
256 | -rm -f libodetest.a | ||
257 | $(libodetest_a_AR) libodetest.a $(libodetest_a_OBJECTS) $(libodetest_a_LIBADD) | ||
258 | $(RANLIB) libodetest.a | ||
259 | |||
260 | mostlyclean-compile: | ||
261 | -rm -f *.$(OBJEXT) | ||
262 | |||
263 | distclean-compile: | ||
264 | -rm -f *.tab.c | ||
265 | |||
266 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-HTMLTestReporter.Po@am__quote@ | ||
267 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-PrintfTestReporter.Po@am__quote@ | ||
268 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-Test.Po@am__quote@ | ||
269 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-TestLauncher.Po@am__quote@ | ||
270 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-TestReporter.Po@am__quote@ | ||
271 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-TestResults.Po@am__quote@ | ||
272 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libodetest_a-TestRunner.Po@am__quote@ | ||
273 | |||
274 | .cpp.o: | ||
275 | @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
276 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
277 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
278 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
279 | @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< | ||
280 | |||
281 | .cpp.obj: | ||
282 | @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
283 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
284 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
285 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
286 | @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
287 | |||
288 | libodetest_a-HTMLTestReporter.o: HTMLTestReporter.cpp | ||
289 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-HTMLTestReporter.o -MD -MP -MF $(DEPDIR)/libodetest_a-HTMLTestReporter.Tpo -c -o libodetest_a-HTMLTestReporter.o `test -f 'HTMLTestReporter.cpp' || echo '$(srcdir)/'`HTMLTestReporter.cpp | ||
290 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-HTMLTestReporter.Tpo $(DEPDIR)/libodetest_a-HTMLTestReporter.Po | ||
291 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HTMLTestReporter.cpp' object='libodetest_a-HTMLTestReporter.o' libtool=no @AMDEPBACKSLASH@ | ||
292 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
293 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-HTMLTestReporter.o `test -f 'HTMLTestReporter.cpp' || echo '$(srcdir)/'`HTMLTestReporter.cpp | ||
294 | |||
295 | libodetest_a-HTMLTestReporter.obj: HTMLTestReporter.cpp | ||
296 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-HTMLTestReporter.obj -MD -MP -MF $(DEPDIR)/libodetest_a-HTMLTestReporter.Tpo -c -o libodetest_a-HTMLTestReporter.obj `if test -f 'HTMLTestReporter.cpp'; then $(CYGPATH_W) 'HTMLTestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/HTMLTestReporter.cpp'; fi` | ||
297 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-HTMLTestReporter.Tpo $(DEPDIR)/libodetest_a-HTMLTestReporter.Po | ||
298 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='HTMLTestReporter.cpp' object='libodetest_a-HTMLTestReporter.obj' libtool=no @AMDEPBACKSLASH@ | ||
299 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
300 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-HTMLTestReporter.obj `if test -f 'HTMLTestReporter.cpp'; then $(CYGPATH_W) 'HTMLTestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/HTMLTestReporter.cpp'; fi` | ||
301 | |||
302 | libodetest_a-PrintfTestReporter.o: PrintfTestReporter.cpp | ||
303 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-PrintfTestReporter.o -MD -MP -MF $(DEPDIR)/libodetest_a-PrintfTestReporter.Tpo -c -o libodetest_a-PrintfTestReporter.o `test -f 'PrintfTestReporter.cpp' || echo '$(srcdir)/'`PrintfTestReporter.cpp | ||
304 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-PrintfTestReporter.Tpo $(DEPDIR)/libodetest_a-PrintfTestReporter.Po | ||
305 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PrintfTestReporter.cpp' object='libodetest_a-PrintfTestReporter.o' libtool=no @AMDEPBACKSLASH@ | ||
306 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
307 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-PrintfTestReporter.o `test -f 'PrintfTestReporter.cpp' || echo '$(srcdir)/'`PrintfTestReporter.cpp | ||
308 | |||
309 | libodetest_a-PrintfTestReporter.obj: PrintfTestReporter.cpp | ||
310 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-PrintfTestReporter.obj -MD -MP -MF $(DEPDIR)/libodetest_a-PrintfTestReporter.Tpo -c -o libodetest_a-PrintfTestReporter.obj `if test -f 'PrintfTestReporter.cpp'; then $(CYGPATH_W) 'PrintfTestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/PrintfTestReporter.cpp'; fi` | ||
311 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-PrintfTestReporter.Tpo $(DEPDIR)/libodetest_a-PrintfTestReporter.Po | ||
312 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='PrintfTestReporter.cpp' object='libodetest_a-PrintfTestReporter.obj' libtool=no @AMDEPBACKSLASH@ | ||
313 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
314 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-PrintfTestReporter.obj `if test -f 'PrintfTestReporter.cpp'; then $(CYGPATH_W) 'PrintfTestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/PrintfTestReporter.cpp'; fi` | ||
315 | |||
316 | libodetest_a-Test.o: Test.cpp | ||
317 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-Test.o -MD -MP -MF $(DEPDIR)/libodetest_a-Test.Tpo -c -o libodetest_a-Test.o `test -f 'Test.cpp' || echo '$(srcdir)/'`Test.cpp | ||
318 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-Test.Tpo $(DEPDIR)/libodetest_a-Test.Po | ||
319 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Test.cpp' object='libodetest_a-Test.o' libtool=no @AMDEPBACKSLASH@ | ||
320 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
321 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-Test.o `test -f 'Test.cpp' || echo '$(srcdir)/'`Test.cpp | ||
322 | |||
323 | libodetest_a-Test.obj: Test.cpp | ||
324 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-Test.obj -MD -MP -MF $(DEPDIR)/libodetest_a-Test.Tpo -c -o libodetest_a-Test.obj `if test -f 'Test.cpp'; then $(CYGPATH_W) 'Test.cpp'; else $(CYGPATH_W) '$(srcdir)/Test.cpp'; fi` | ||
325 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-Test.Tpo $(DEPDIR)/libodetest_a-Test.Po | ||
326 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='Test.cpp' object='libodetest_a-Test.obj' libtool=no @AMDEPBACKSLASH@ | ||
327 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
328 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-Test.obj `if test -f 'Test.cpp'; then $(CYGPATH_W) 'Test.cpp'; else $(CYGPATH_W) '$(srcdir)/Test.cpp'; fi` | ||
329 | |||
330 | libodetest_a-TestLauncher.o: TestLauncher.cpp | ||
331 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestLauncher.o -MD -MP -MF $(DEPDIR)/libodetest_a-TestLauncher.Tpo -c -o libodetest_a-TestLauncher.o `test -f 'TestLauncher.cpp' || echo '$(srcdir)/'`TestLauncher.cpp | ||
332 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestLauncher.Tpo $(DEPDIR)/libodetest_a-TestLauncher.Po | ||
333 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestLauncher.cpp' object='libodetest_a-TestLauncher.o' libtool=no @AMDEPBACKSLASH@ | ||
334 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
335 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestLauncher.o `test -f 'TestLauncher.cpp' || echo '$(srcdir)/'`TestLauncher.cpp | ||
336 | |||
337 | libodetest_a-TestLauncher.obj: TestLauncher.cpp | ||
338 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestLauncher.obj -MD -MP -MF $(DEPDIR)/libodetest_a-TestLauncher.Tpo -c -o libodetest_a-TestLauncher.obj `if test -f 'TestLauncher.cpp'; then $(CYGPATH_W) 'TestLauncher.cpp'; else $(CYGPATH_W) '$(srcdir)/TestLauncher.cpp'; fi` | ||
339 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestLauncher.Tpo $(DEPDIR)/libodetest_a-TestLauncher.Po | ||
340 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestLauncher.cpp' object='libodetest_a-TestLauncher.obj' libtool=no @AMDEPBACKSLASH@ | ||
341 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
342 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestLauncher.obj `if test -f 'TestLauncher.cpp'; then $(CYGPATH_W) 'TestLauncher.cpp'; else $(CYGPATH_W) '$(srcdir)/TestLauncher.cpp'; fi` | ||
343 | |||
344 | libodetest_a-TestReporter.o: TestReporter.cpp | ||
345 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestReporter.o -MD -MP -MF $(DEPDIR)/libodetest_a-TestReporter.Tpo -c -o libodetest_a-TestReporter.o `test -f 'TestReporter.cpp' || echo '$(srcdir)/'`TestReporter.cpp | ||
346 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestReporter.Tpo $(DEPDIR)/libodetest_a-TestReporter.Po | ||
347 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestReporter.cpp' object='libodetest_a-TestReporter.o' libtool=no @AMDEPBACKSLASH@ | ||
348 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
349 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestReporter.o `test -f 'TestReporter.cpp' || echo '$(srcdir)/'`TestReporter.cpp | ||
350 | |||
351 | libodetest_a-TestReporter.obj: TestReporter.cpp | ||
352 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestReporter.obj -MD -MP -MF $(DEPDIR)/libodetest_a-TestReporter.Tpo -c -o libodetest_a-TestReporter.obj `if test -f 'TestReporter.cpp'; then $(CYGPATH_W) 'TestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/TestReporter.cpp'; fi` | ||
353 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestReporter.Tpo $(DEPDIR)/libodetest_a-TestReporter.Po | ||
354 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestReporter.cpp' object='libodetest_a-TestReporter.obj' libtool=no @AMDEPBACKSLASH@ | ||
355 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
356 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestReporter.obj `if test -f 'TestReporter.cpp'; then $(CYGPATH_W) 'TestReporter.cpp'; else $(CYGPATH_W) '$(srcdir)/TestReporter.cpp'; fi` | ||
357 | |||
358 | libodetest_a-TestResults.o: TestResults.cpp | ||
359 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestResults.o -MD -MP -MF $(DEPDIR)/libodetest_a-TestResults.Tpo -c -o libodetest_a-TestResults.o `test -f 'TestResults.cpp' || echo '$(srcdir)/'`TestResults.cpp | ||
360 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestResults.Tpo $(DEPDIR)/libodetest_a-TestResults.Po | ||
361 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestResults.cpp' object='libodetest_a-TestResults.o' libtool=no @AMDEPBACKSLASH@ | ||
362 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
363 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestResults.o `test -f 'TestResults.cpp' || echo '$(srcdir)/'`TestResults.cpp | ||
364 | |||
365 | libodetest_a-TestResults.obj: TestResults.cpp | ||
366 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestResults.obj -MD -MP -MF $(DEPDIR)/libodetest_a-TestResults.Tpo -c -o libodetest_a-TestResults.obj `if test -f 'TestResults.cpp'; then $(CYGPATH_W) 'TestResults.cpp'; else $(CYGPATH_W) '$(srcdir)/TestResults.cpp'; fi` | ||
367 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestResults.Tpo $(DEPDIR)/libodetest_a-TestResults.Po | ||
368 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestResults.cpp' object='libodetest_a-TestResults.obj' libtool=no @AMDEPBACKSLASH@ | ||
369 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
370 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestResults.obj `if test -f 'TestResults.cpp'; then $(CYGPATH_W) 'TestResults.cpp'; else $(CYGPATH_W) '$(srcdir)/TestResults.cpp'; fi` | ||
371 | |||
372 | libodetest_a-TestRunner.o: TestRunner.cpp | ||
373 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestRunner.o -MD -MP -MF $(DEPDIR)/libodetest_a-TestRunner.Tpo -c -o libodetest_a-TestRunner.o `test -f 'TestRunner.cpp' || echo '$(srcdir)/'`TestRunner.cpp | ||
374 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestRunner.Tpo $(DEPDIR)/libodetest_a-TestRunner.Po | ||
375 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestRunner.cpp' object='libodetest_a-TestRunner.o' libtool=no @AMDEPBACKSLASH@ | ||
376 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
377 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestRunner.o `test -f 'TestRunner.cpp' || echo '$(srcdir)/'`TestRunner.cpp | ||
378 | |||
379 | libodetest_a-TestRunner.obj: TestRunner.cpp | ||
380 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -MT libodetest_a-TestRunner.obj -MD -MP -MF $(DEPDIR)/libodetest_a-TestRunner.Tpo -c -o libodetest_a-TestRunner.obj `if test -f 'TestRunner.cpp'; then $(CYGPATH_W) 'TestRunner.cpp'; else $(CYGPATH_W) '$(srcdir)/TestRunner.cpp'; fi` | ||
381 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/libodetest_a-TestRunner.Tpo $(DEPDIR)/libodetest_a-TestRunner.Po | ||
382 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='TestRunner.cpp' object='libodetest_a-TestRunner.obj' libtool=no @AMDEPBACKSLASH@ | ||
383 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
384 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libodetest_a_CXXFLAGS) $(CXXFLAGS) -c -o libodetest_a-TestRunner.obj `if test -f 'TestRunner.cpp'; then $(CYGPATH_W) 'TestRunner.cpp'; else $(CYGPATH_W) '$(srcdir)/TestRunner.cpp'; fi` | ||
385 | |||
386 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
387 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
388 | unique=`for i in $$list; do \ | ||
389 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
390 | done | \ | ||
391 | $(AWK) ' { files[$$0] = 1; } \ | ||
392 | END { for (i in files) print i; }'`; \ | ||
393 | mkid -fID $$unique | ||
394 | tags: TAGS | ||
395 | |||
396 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
397 | $(TAGS_FILES) $(LISP) | ||
398 | tags=; \ | ||
399 | here=`pwd`; \ | ||
400 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
401 | unique=`for i in $$list; do \ | ||
402 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
403 | done | \ | ||
404 | $(AWK) ' { files[$$0] = 1; } \ | ||
405 | END { for (i in files) print i; }'`; \ | ||
406 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
407 | test -n "$$unique" || unique=$$empty_fix; \ | ||
408 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
409 | $$tags $$unique; \ | ||
410 | fi | ||
411 | ctags: CTAGS | ||
412 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
413 | $(TAGS_FILES) $(LISP) | ||
414 | tags=; \ | ||
415 | here=`pwd`; \ | ||
416 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
417 | unique=`for i in $$list; do \ | ||
418 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
419 | done | \ | ||
420 | $(AWK) ' { files[$$0] = 1; } \ | ||
421 | END { for (i in files) print i; }'`; \ | ||
422 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
423 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
424 | $$tags $$unique | ||
425 | |||
426 | GTAGS: | ||
427 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
428 | && cd $(top_srcdir) \ | ||
429 | && gtags -i $(GTAGS_ARGS) $$here | ||
430 | |||
431 | distclean-tags: | ||
432 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
433 | |||
434 | distdir: $(DISTFILES) | ||
435 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
436 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
437 | list='$(DISTFILES)'; \ | ||
438 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
439 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
440 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
441 | case $$dist_files in \ | ||
442 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
443 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
444 | sort -u` ;; \ | ||
445 | esac; \ | ||
446 | for file in $$dist_files; do \ | ||
447 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
448 | if test -d $$d/$$file; then \ | ||
449 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
450 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
451 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
452 | fi; \ | ||
453 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
454 | else \ | ||
455 | test -f $(distdir)/$$file \ | ||
456 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
457 | || exit 1; \ | ||
458 | fi; \ | ||
459 | done | ||
460 | check-am: all-am | ||
461 | check: check-am | ||
462 | all-am: Makefile $(LIBRARIES) | ||
463 | installdirs: | ||
464 | install: install-am | ||
465 | install-exec: install-exec-am | ||
466 | install-data: install-data-am | ||
467 | uninstall: uninstall-am | ||
468 | |||
469 | install-am: all-am | ||
470 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
471 | |||
472 | installcheck: installcheck-am | ||
473 | install-strip: | ||
474 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
475 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
476 | `test -z '$(STRIP)' || \ | ||
477 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
478 | mostlyclean-generic: | ||
479 | |||
480 | clean-generic: | ||
481 | |||
482 | distclean-generic: | ||
483 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
484 | |||
485 | maintainer-clean-generic: | ||
486 | @echo "This command is intended for maintainers to use" | ||
487 | @echo "it deletes files that may require special tools to rebuild." | ||
488 | clean: clean-am | ||
489 | |||
490 | clean-am: clean-generic clean-noinstLIBRARIES mostlyclean-am | ||
491 | |||
492 | distclean: distclean-am | ||
493 | -rm -rf ./$(DEPDIR) | ||
494 | -rm -f Makefile | ||
495 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
496 | distclean-tags | ||
497 | |||
498 | dvi: dvi-am | ||
499 | |||
500 | dvi-am: | ||
501 | |||
502 | html: html-am | ||
503 | |||
504 | info: info-am | ||
505 | |||
506 | info-am: | ||
507 | |||
508 | install-data-am: | ||
509 | |||
510 | install-dvi: install-dvi-am | ||
511 | |||
512 | install-exec-am: | ||
513 | |||
514 | install-html: install-html-am | ||
515 | |||
516 | install-info: install-info-am | ||
517 | |||
518 | install-man: | ||
519 | |||
520 | install-pdf: install-pdf-am | ||
521 | |||
522 | install-ps: install-ps-am | ||
523 | |||
524 | installcheck-am: | ||
525 | |||
526 | maintainer-clean: maintainer-clean-am | ||
527 | -rm -rf ./$(DEPDIR) | ||
528 | -rm -f Makefile | ||
529 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
530 | |||
531 | mostlyclean: mostlyclean-am | ||
532 | |||
533 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
534 | |||
535 | pdf: pdf-am | ||
536 | |||
537 | pdf-am: | ||
538 | |||
539 | ps: ps-am | ||
540 | |||
541 | ps-am: | ||
542 | |||
543 | uninstall-am: | ||
544 | |||
545 | .MAKE: install-am install-strip | ||
546 | |||
547 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ | ||
548 | clean-noinstLIBRARIES ctags distclean distclean-compile \ | ||
549 | distclean-generic distclean-tags distdir dvi dvi-am html \ | ||
550 | html-am info info-am install install-am install-data \ | ||
551 | install-data-am install-dvi install-dvi-am install-exec \ | ||
552 | install-exec-am install-html install-html-am install-info \ | ||
553 | install-info-am install-man install-pdf install-pdf-am \ | ||
554 | install-ps install-ps-am install-strip installcheck \ | ||
555 | installcheck-am installdirs maintainer-clean \ | ||
556 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
557 | mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \ | ||
558 | uninstall-am | ||
559 | |||
560 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
561 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
562 | .NOEXPORT: | ||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp b/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp new file mode 100755 index 0000000..68f7611 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.cpp | |||
@@ -0,0 +1,25 @@ | |||
1 | #include "PrintfTestReporter.h" | ||
2 | |||
3 | #include <cstdio> | ||
4 | |||
5 | namespace CppTestHarness | ||
6 | { | ||
7 | |||
8 | void PrintfTestReporter::ReportFailure(char const* file, int const line, std::string const failure) | ||
9 | { | ||
10 | printf("%s(%d) : failure: %s\n", file, line, failure.c_str()); | ||
11 | } | ||
12 | |||
13 | void PrintfTestReporter::ReportSingleResult(const std::string& /*testName*/, bool /*failed*/) | ||
14 | { | ||
15 | //empty | ||
16 | } | ||
17 | |||
18 | void PrintfTestReporter::ReportSummary(int const testCount, int const failureCount) | ||
19 | { | ||
20 | printf("%d tests run.\n", testCount); | ||
21 | printf("%d failures.\n", failureCount); | ||
22 | } | ||
23 | |||
24 | } | ||
25 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.h b/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.h new file mode 100755 index 0000000..8d4372a --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/PrintfTestReporter.h | |||
@@ -0,0 +1,20 @@ | |||
1 | #ifndef PRINTF_TEST_REPORTER | ||
2 | #define PRINTF_TEST_REPORTER | ||
3 | |||
4 | #include "TestReporter.h" | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | |||
9 | class PrintfTestReporter : public TestReporter | ||
10 | { | ||
11 | private: | ||
12 | virtual void ReportFailure(char const* file, int line, std::string failure); | ||
13 | virtual void ReportSingleResult(const std::string& testName, bool failed); | ||
14 | virtual void ReportSummary(int testCount, int failureCount); | ||
15 | }; | ||
16 | |||
17 | } | ||
18 | |||
19 | #endif | ||
20 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/ReadMe.txt b/libraries/ode-0.9\/tests/CppTestHarness/ReadMe.txt new file mode 100755 index 0000000..3132d8d --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/ReadMe.txt | |||
@@ -0,0 +1,34 @@ | |||
1 | ------------------------------------------------------------------------ | ||
2 | CppTestHarness | ||
3 | |||
4 | written by Charles Nicholson (cn@cnicholson.net). | ||
5 | linux/gcc port by Dan Lind (podcat@gmail.com). | ||
6 | |||
7 | This work is based on CppUnitLite by Michael Feathers with changes inspired by Noel Llopis. | ||
8 | |||
9 | You the user have free license to do whatever you want with this source code. | ||
10 | No persons mentioned above accept any responsibility if files in this archive | ||
11 | set your computer on fire or subject you to any number of woes. Use at your own risk! | ||
12 | |||
13 | |||
14 | |||
15 | HISTORY: | ||
16 | ------------------------------------------------------------------------ | ||
17 | 28 dec 2005, charles nicholson (cn@cnicholson.net) | ||
18 | - upgraded win32 build to VS.NET 2005 | ||
19 | - silenced all 'conditional expression is constant' warning (CHECK(true), CHECK_EQUAL(1,1), etc...) | ||
20 | |||
21 | 20 dec 2005, dan lind (podcat@gmail.com) | ||
22 | - added signal-to-exception translator for posix systems | ||
23 | - more methods in TestReporter. We can now optionaly have output on each finished test | ||
24 | HTMLTestReporter illustrates a fairly complex reporter doing this. | ||
25 | |||
26 | 13 dec 2005, dan lind (podcat@gmail.com) | ||
27 | - added newlines at the end of all files (this is a warning on gcc) | ||
28 | - reordered initialization list of TestRunner (init order not same as order in class) | ||
29 | - added _MSC_VER to TestCppTestHarness.cpp to block pragmas from gcc | ||
30 | |||
31 | 11 dec 2005, charles nicholson (cn@cnicholson.net) | ||
32 | - get rid of TestRegistry and static std::vector. | ||
33 | - TestRunner holds a PrintfTestReporter by value to avoid dynamic allocation at static-init | ||
34 | - TestCreator -> TestLauncher are now nodes in a linked list of tests. | ||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/SignalTranslator.h b/libraries/ode-0.9\/tests/CppTestHarness/SignalTranslator.h new file mode 100755 index 0000000..39fc225 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/SignalTranslator.h | |||
@@ -0,0 +1,53 @@ | |||
1 | #ifndef SIGNAL_TRANSLATOR_H | ||
2 | #define SIGNAL_TRANSLATOR_H | ||
3 | |||
4 | #include <signal.h> | ||
5 | #include <setjmp.h> | ||
6 | |||
7 | namespace CppTestHarness | ||
8 | { | ||
9 | |||
10 | template <int SIGNAL> | ||
11 | class SignalTranslator { | ||
12 | public: | ||
13 | SignalTranslator() | ||
14 | { | ||
15 | //setup new signal handler | ||
16 | struct sigaction act; | ||
17 | act.sa_handler = signalHandler; | ||
18 | sigemptyset(&act.sa_mask); | ||
19 | act.sa_flags = 0; | ||
20 | |||
21 | sigaction(SIGNAL, &act, &m_oldAction); | ||
22 | |||
23 | if (sigsetjmp(getJumpPoint(), 1) != 0) | ||
24 | { | ||
25 | //if signal thrown we will return here from handler | ||
26 | throw "Unhandled system exception"; | ||
27 | } | ||
28 | } | ||
29 | |||
30 | ~SignalTranslator() | ||
31 | { | ||
32 | sigaction(SIGNAL, &m_oldAction, 0); | ||
33 | } | ||
34 | |||
35 | private: | ||
36 | static void signalHandler(int signum) | ||
37 | { | ||
38 | siglongjmp(getJumpPoint(), signum); | ||
39 | } | ||
40 | |||
41 | static sigjmp_buf& getJumpPoint() | ||
42 | { | ||
43 | static sigjmp_buf jmpPnt; | ||
44 | return jmpPnt; | ||
45 | } | ||
46 | |||
47 | struct sigaction m_oldAction; | ||
48 | }; | ||
49 | |||
50 | } //CppTestHarness | ||
51 | |||
52 | #endif //SIGNAL_TRANSLATOR_H | ||
53 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/Test.cpp b/libraries/ode-0.9\/tests/CppTestHarness/Test.cpp new file mode 100755 index 0000000..44b2dd8 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/Test.cpp | |||
@@ -0,0 +1,49 @@ | |||
1 | #include "Test.h" | ||
2 | #include "TestResults.h" | ||
3 | |||
4 | #ifdef TRANSLATE_POSIX_SIGNALS | ||
5 | #include "SignalTranslator.h" | ||
6 | #endif | ||
7 | |||
8 | namespace CppTestHarness | ||
9 | { | ||
10 | |||
11 | Test::Test(std::string const testName, std::string const filename, int const lineNumber) | ||
12 | : m_testName(testName) | ||
13 | , m_filename(filename) | ||
14 | , m_lineNumber(lineNumber) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | Test::~Test() | ||
19 | { | ||
20 | } | ||
21 | |||
22 | void Test::Run(TestResults& testResults) | ||
23 | { | ||
24 | try | ||
25 | { | ||
26 | #ifdef TRANSLATE_POSIX_SIGNALS | ||
27 | //add any signals you want translated into system exceptions here | ||
28 | SignalTranslator<SIGSEGV> sigSEGV; | ||
29 | SignalTranslator<SIGFPE> sigFPE; | ||
30 | SignalTranslator<SIGBUS> sigBUS; | ||
31 | #endif | ||
32 | RunImpl(testResults); | ||
33 | } | ||
34 | catch (std::exception const& e) | ||
35 | { | ||
36 | std::string msg = "Unhandled exception: "; | ||
37 | msg += e.what(); | ||
38 | testResults.ReportFailure(m_filename.c_str(), m_lineNumber, msg); | ||
39 | } | ||
40 | catch (...) | ||
41 | { | ||
42 | testResults.ReportFailure(m_filename.c_str(), m_lineNumber, "Unhandled exception: crash!"); | ||
43 | } | ||
44 | |||
45 | |||
46 | testResults.ReportDone(m_testName); | ||
47 | } | ||
48 | } | ||
49 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/Test.h b/libraries/ode-0.9\/tests/CppTestHarness/Test.h new file mode 100755 index 0000000..bd35935 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/Test.h | |||
@@ -0,0 +1,40 @@ | |||
1 | #ifndef TEST_H | ||
2 | #define TEST_H | ||
3 | |||
4 | #include <string> | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | class TestResults; | ||
9 | |||
10 | class Test | ||
11 | { | ||
12 | public: | ||
13 | virtual ~Test(); | ||
14 | void Run(TestResults& testResults); | ||
15 | |||
16 | static Test* GetListHead(); | ||
17 | |||
18 | protected: | ||
19 | Test(std::string testName = std::string(), | ||
20 | std::string filename = std::string(), | ||
21 | int lineNumber = 0); | ||
22 | |||
23 | private: | ||
24 | virtual void RunImpl(TestResults& testResults_) = 0; | ||
25 | |||
26 | std::string const m_testName; | ||
27 | std::string const m_filename; | ||
28 | int const m_lineNumber; | ||
29 | |||
30 | Test* m_listNext; | ||
31 | |||
32 | // revoked | ||
33 | Test(Test const&); | ||
34 | Test& operator =(Test const&); | ||
35 | }; | ||
36 | |||
37 | } | ||
38 | |||
39 | #endif | ||
40 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.cpp b/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.cpp new file mode 100755 index 0000000..4397822 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.cpp | |||
@@ -0,0 +1,39 @@ | |||
1 | #include "TestLauncher.h" | ||
2 | |||
3 | namespace CppTestHarness | ||
4 | { | ||
5 | |||
6 | namespace | ||
7 | { | ||
8 | TestLauncher* s_listHead; | ||
9 | } | ||
10 | |||
11 | TestLauncher** TestLauncher::GetHeadAddr() | ||
12 | { | ||
13 | static bool initialized = false; | ||
14 | if (!initialized) | ||
15 | { | ||
16 | s_listHead = 0; | ||
17 | initialized = true; | ||
18 | } | ||
19 | |||
20 | return &s_listHead; | ||
21 | } | ||
22 | |||
23 | TestLauncher::TestLauncher(TestLauncher** listHead) | ||
24 | : m_next(*listHead) | ||
25 | { | ||
26 | *listHead = this; | ||
27 | } | ||
28 | |||
29 | TestLauncher::~TestLauncher() | ||
30 | { | ||
31 | } | ||
32 | |||
33 | TestLauncher const* TestLauncher::GetNext() const | ||
34 | { | ||
35 | return m_next; | ||
36 | } | ||
37 | |||
38 | } | ||
39 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.h b/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.h new file mode 100755 index 0000000..fe60363 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestLauncher.h | |||
@@ -0,0 +1,32 @@ | |||
1 | #ifndef TEST_LAUNCHER_H | ||
2 | #define TEST_LAUNCHER_H | ||
3 | |||
4 | namespace CppTestHarness | ||
5 | { | ||
6 | class TestResults; | ||
7 | class TestRegistry; | ||
8 | |||
9 | class TestLauncher | ||
10 | { | ||
11 | public: | ||
12 | virtual void Launch(TestResults& results_) const = 0; | ||
13 | |||
14 | static TestLauncher** GetHeadAddr(); | ||
15 | TestLauncher const* GetNext() const; | ||
16 | |||
17 | protected: | ||
18 | TestLauncher(TestLauncher** listHead); | ||
19 | virtual ~TestLauncher(); | ||
20 | |||
21 | private: | ||
22 | TestLauncher const* m_next; | ||
23 | |||
24 | // revoked | ||
25 | TestLauncher(); | ||
26 | TestLauncher(TestLauncher const&); | ||
27 | TestLauncher& operator =(TestLauncher const&); | ||
28 | }; | ||
29 | } | ||
30 | |||
31 | #endif | ||
32 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestMacros.h b/libraries/ode-0.9\/tests/CppTestHarness/TestMacros.h new file mode 100755 index 0000000..12a91cd --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestMacros.h | |||
@@ -0,0 +1,48 @@ | |||
1 | #ifndef TEST_MACROS_H | ||
2 | #define TEST_MACROS_H | ||
3 | |||
4 | //---------------------------- | ||
5 | #define TEST(Name) \ | ||
6 | class Test##Name : public CppTestHarness::Test \ | ||
7 | { \ | ||
8 | public: \ | ||
9 | Test##Name() : Test(#Name, __FILE__, __LINE__) {} \ | ||
10 | private: \ | ||
11 | virtual void RunImpl(CppTestHarness::TestResults& testResults_); \ | ||
12 | }; \ | ||
13 | CppTestHarness::TypedTestLauncher< Test##Name > \ | ||
14 | staticInitTest##Name##Creator(CppTestHarness::TestLauncher::GetHeadAddr()); \ | ||
15 | \ | ||
16 | void Test##Name::RunImpl(CppTestHarness::TestResults& testResults_) | ||
17 | |||
18 | //---------------------------- | ||
19 | #define TEST_FIXTURE(Fixture, Name) \ | ||
20 | class Test##Name : public CppTestHarness::Test, public Fixture \ | ||
21 | { \ | ||
22 | public: \ | ||
23 | Test##Name() : Test(#Name, __FILE__, __LINE__) {} \ | ||
24 | private: \ | ||
25 | virtual void RunImpl(CppTestHarness::TestResults& testResults_); \ | ||
26 | }; \ | ||
27 | CppTestHarness::TypedTestLauncher< Test##Name > \ | ||
28 | staticInitTest##Name##Creator(CppTestHarness::TestLauncher::GetHeadAddr()); \ | ||
29 | \ | ||
30 | void Test##Name::RunImpl(CppTestHarness::TestResults& testResults_) | ||
31 | |||
32 | //---------------------------- | ||
33 | #define TEST_FIXTURE_CTOR(Fixture, CtorParams, Name) \ | ||
34 | class Test##Name : public CppTestHarness::Test, public Fixture \ | ||
35 | { \ | ||
36 | public: \ | ||
37 | Test##Name() : Test(#Name, __FILE__, __LINE__), Fixture CtorParams {} \ | ||
38 | private: \ | ||
39 | virtual void RunImpl(CppTestHarness::TestResults& testResults_); \ | ||
40 | }; \ | ||
41 | CppTestHarness::TypedTestLauncher< Test##Name > \ | ||
42 | staticInitTest##Name##Creator(CppTestHarness::TestLauncher::GetHeadAddr()); \ | ||
43 | \ | ||
44 | void Test##Name::RunImpl(CppTestHarness::TestResults& testResults_) | ||
45 | |||
46 | |||
47 | #endif | ||
48 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.cpp b/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.cpp new file mode 100755 index 0000000..7b6bd7b --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.cpp | |||
@@ -0,0 +1,15 @@ | |||
1 | #include "TestReporter.h" | ||
2 | |||
3 | namespace CppTestHarness | ||
4 | { | ||
5 | |||
6 | TestReporter::TestReporter() | ||
7 | { | ||
8 | } | ||
9 | |||
10 | TestReporter::~TestReporter() | ||
11 | { | ||
12 | } | ||
13 | |||
14 | } | ||
15 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.h b/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.h new file mode 100755 index 0000000..352de8c --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestReporter.h | |||
@@ -0,0 +1,24 @@ | |||
1 | #ifndef TEST_REPORTER_H | ||
2 | #define TEST_REPORTER_H | ||
3 | |||
4 | #include <string> | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | |||
9 | class TestReporter | ||
10 | { | ||
11 | public: | ||
12 | virtual ~TestReporter(); | ||
13 | |||
14 | virtual void ReportFailure(char const* file, int line, std::string failure) = 0; | ||
15 | virtual void ReportSingleResult(const std::string& testName, bool failed) = 0; | ||
16 | virtual void ReportSummary(int testCount, int failureCount) = 0; | ||
17 | |||
18 | protected: | ||
19 | TestReporter(); | ||
20 | }; | ||
21 | |||
22 | } | ||
23 | #endif | ||
24 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestResults.cpp b/libraries/ode-0.9\/tests/CppTestHarness/TestResults.cpp new file mode 100755 index 0000000..f2d2f81 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestResults.cpp | |||
@@ -0,0 +1,30 @@ | |||
1 | #include "TestResults.h" | ||
2 | #include "TestReporter.h" | ||
3 | |||
4 | namespace CppTestHarness | ||
5 | { | ||
6 | |||
7 | TestResults::TestResults(TestReporter& testReporter) | ||
8 | : m_failure(false) | ||
9 | , m_testReporter(testReporter) | ||
10 | { | ||
11 | } | ||
12 | |||
13 | void TestResults::ReportFailure(char const* file, int const line, std::string const failure) | ||
14 | { | ||
15 | m_failure = true; | ||
16 | m_testReporter.ReportFailure(file, line, failure); | ||
17 | } | ||
18 | |||
19 | void TestResults::ReportDone(const std::string& testName) | ||
20 | { | ||
21 | m_testReporter.ReportSingleResult(testName, m_failure); | ||
22 | } | ||
23 | |||
24 | bool TestResults::Failed() const | ||
25 | { | ||
26 | return m_failure; | ||
27 | } | ||
28 | |||
29 | } | ||
30 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestResults.h b/libraries/ode-0.9\/tests/CppTestHarness/TestResults.h new file mode 100755 index 0000000..7f8ec2a --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestResults.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef TEST_RESULTS_H | ||
2 | #define TEST_RESULTS_H | ||
3 | |||
4 | #include <string> | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | |||
9 | class TestReporter; | ||
10 | |||
11 | class TestResults | ||
12 | { | ||
13 | public: | ||
14 | explicit TestResults(TestReporter& reporter); | ||
15 | |||
16 | void ReportFailure(char const* file, int line, std::string failure); | ||
17 | void ReportDone(const std::string& testName); | ||
18 | |||
19 | bool Failed() const; | ||
20 | |||
21 | private: | ||
22 | bool m_failure; | ||
23 | TestReporter& m_testReporter; | ||
24 | |||
25 | // revoked | ||
26 | TestResults(TestResults const&); | ||
27 | TestResults& operator =(TestResults const&); | ||
28 | }; | ||
29 | |||
30 | } | ||
31 | |||
32 | #endif | ||
33 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.cpp b/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.cpp new file mode 100755 index 0000000..51db141 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.cpp | |||
@@ -0,0 +1,56 @@ | |||
1 | #include "TestRunner.h" | ||
2 | #include "TestLauncher.h" | ||
3 | #include "TestResults.h" | ||
4 | #include "Test.h" | ||
5 | |||
6 | #include "PrintfTestReporter.h" | ||
7 | |||
8 | namespace CppTestHarness | ||
9 | { | ||
10 | |||
11 | TestRunner::TestRunner() | ||
12 | : m_testLauncherListHead(TestLauncher::GetHeadAddr()) | ||
13 | , m_testReporter(&m_defaultTestReporter) | ||
14 | { | ||
15 | } | ||
16 | |||
17 | TestRunner::~TestRunner() | ||
18 | { | ||
19 | } | ||
20 | |||
21 | void TestRunner::SetTestLauncherListHead(TestLauncher** listHead) | ||
22 | { | ||
23 | m_testLauncherListHead = listHead; | ||
24 | } | ||
25 | |||
26 | void TestRunner::SetTestReporter(TestReporter* testReporter) | ||
27 | { | ||
28 | m_testReporter = testReporter; | ||
29 | } | ||
30 | |||
31 | int TestRunner::RunAllTests() | ||
32 | { | ||
33 | int failureCount = 0; | ||
34 | |||
35 | int testCount = 0; | ||
36 | TestLauncher const* curLauncher = *m_testLauncherListHead; | ||
37 | while (curLauncher) | ||
38 | { | ||
39 | ++testCount; | ||
40 | |||
41 | TestResults result(*m_testReporter); | ||
42 | curLauncher->Launch(result); | ||
43 | |||
44 | if (result.Failed()) | ||
45 | ++failureCount; | ||
46 | |||
47 | curLauncher = curLauncher->GetNext(); | ||
48 | } | ||
49 | |||
50 | m_testReporter->ReportSummary(testCount, failureCount); | ||
51 | |||
52 | return failureCount; | ||
53 | } | ||
54 | |||
55 | } | ||
56 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.h b/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.h new file mode 100755 index 0000000..e5dedb1 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TestRunner.h | |||
@@ -0,0 +1,33 @@ | |||
1 | #ifndef TEST_RUNNER_H | ||
2 | #define TEST_RUNNER_H | ||
3 | |||
4 | #include "PrintfTestReporter.h" | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | class TestLauncher; | ||
9 | class TestReporter; | ||
10 | |||
11 | class TestRunner | ||
12 | { | ||
13 | public: | ||
14 | TestRunner(); | ||
15 | ~TestRunner(); | ||
16 | |||
17 | void SetTestReporter(TestReporter* testReporter); | ||
18 | void SetTestLauncherListHead(TestLauncher** listHead); | ||
19 | |||
20 | int RunAllTests(); | ||
21 | int FailureCount() const; | ||
22 | |||
23 | private: | ||
24 | TestLauncher** m_testLauncherListHead; | ||
25 | |||
26 | TestReporter* m_testReporter; | ||
27 | PrintfTestReporter m_defaultTestReporter; | ||
28 | }; | ||
29 | |||
30 | } | ||
31 | |||
32 | #endif | ||
33 | |||
diff --git a/libraries/ode-0.9\/tests/CppTestHarness/TypedTestLauncher.h b/libraries/ode-0.9\/tests/CppTestHarness/TypedTestLauncher.h new file mode 100755 index 0000000..62a9133 --- /dev/null +++ b/libraries/ode-0.9\/tests/CppTestHarness/TypedTestLauncher.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #ifndef TYPED_TEST_CREATOR_H | ||
2 | #define TYPED_TEST_CREATOR_H | ||
3 | |||
4 | #include "TestLauncher.h" | ||
5 | |||
6 | namespace CppTestHarness | ||
7 | { | ||
8 | |||
9 | template< typename TestClass > | ||
10 | class TypedTestLauncher : public TestLauncher | ||
11 | { | ||
12 | public: | ||
13 | TypedTestLauncher(TestLauncher** listHead) | ||
14 | : TestLauncher(listHead) | ||
15 | { | ||
16 | } | ||
17 | |||
18 | virtual void Launch(TestResults& testResults_) const | ||
19 | { | ||
20 | TestClass().Run(testResults_); | ||
21 | } | ||
22 | }; | ||
23 | |||
24 | } | ||
25 | |||
26 | #endif | ||
27 | |||
diff --git a/libraries/ode-0.9\/tests/Makefile.am b/libraries/ode-0.9\/tests/Makefile.am new file mode 100755 index 0000000..078f934 --- /dev/null +++ b/libraries/ode-0.9\/tests/Makefile.am | |||
@@ -0,0 +1,26 @@ | |||
1 | SUBDIRS = CppTestHarness | ||
2 | |||
3 | AM_CXXFLAGS = @ARCHFLAGS@ @CXXFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/tests/CppTestHarness -I$(top_builddir)/include | ||
4 | AM_CFLAGS = @ARCHFLAGS@ @CXXFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/tests/CppTestHarness -I$(top_builddir)/include | ||
5 | |||
6 | |||
7 | noinst_PROGRAMS=ode_unit_test | ||
8 | |||
9 | ode_unit_test_SOURCES = \ | ||
10 | main.cpp \ | ||
11 | colliders/box_sphere.cpp | ||
12 | |||
13 | ode_unit_test_DEPENDENCIES = \ | ||
14 | $(top_builddir)/ode/src/libode.a \ | ||
15 | $(top_builddir)/tests/CppTestHarness/libodetest.a | ||
16 | |||
17 | ode_unit_test_LDFLAGS = \ | ||
18 | -L$(top_builddir)/ode/src \ | ||
19 | -L$(top_builddir)/tests/CppTestHarness \ | ||
20 | @LDFLAGS@ | ||
21 | |||
22 | ode_unit_test_LDADD = \ | ||
23 | $(top_builddir)/ode/src/libode.a \ | ||
24 | $(top_builddir)/tests/CppTestHarness/libodetest.a \ | ||
25 | @GL_LIBS@ @LIBS@ | ||
26 | |||
diff --git a/libraries/ode-0.9\/tests/Makefile.in b/libraries/ode-0.9\/tests/Makefile.in new file mode 100755 index 0000000..ccf460c --- /dev/null +++ b/libraries/ode-0.9\/tests/Makefile.in | |||
@@ -0,0 +1,571 @@ | |||
1 | # Makefile.in generated by automake 1.10 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
6 | # This Makefile.in is free software; the Free Software Foundation | ||
7 | # gives unlimited permission to copy and/or distribute it, | ||
8 | # with or without modifications, as long as this notice is preserved. | ||
9 | |||
10 | # This program is distributed in the hope that it will be useful, | ||
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
13 | # PARTICULAR PURPOSE. | ||
14 | |||
15 | @SET_MAKE@ | ||
16 | |||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkglibdir = $(libdir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
22 | install_sh_DATA = $(install_sh) -c -m 644 | ||
23 | install_sh_PROGRAM = $(install_sh) -c | ||
24 | install_sh_SCRIPT = $(install_sh) -c | ||
25 | INSTALL_HEADER = $(INSTALL_DATA) | ||
26 | transform = $(program_transform_name) | ||
27 | NORMAL_INSTALL = : | ||
28 | PRE_INSTALL = : | ||
29 | POST_INSTALL = : | ||
30 | NORMAL_UNINSTALL = : | ||
31 | PRE_UNINSTALL = : | ||
32 | POST_UNINSTALL = : | ||
33 | build_triplet = @build@ | ||
34 | host_triplet = @host@ | ||
35 | target_triplet = @target@ | ||
36 | noinst_PROGRAMS = ode_unit_test$(EXEEXT) | ||
37 | subdir = tests | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/configure.in | ||
41 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
42 | $(ACLOCAL_M4) | ||
43 | mkinstalldirs = $(install_sh) -d | ||
44 | CONFIG_HEADER = $(top_builddir)/include/ode/config.h | ||
45 | CONFIG_CLEAN_FILES = | ||
46 | PROGRAMS = $(noinst_PROGRAMS) | ||
47 | am_ode_unit_test_OBJECTS = main.$(OBJEXT) box_sphere.$(OBJEXT) | ||
48 | ode_unit_test_OBJECTS = $(am_ode_unit_test_OBJECTS) | ||
49 | ode_unit_test_LINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \ | ||
50 | $(ode_unit_test_LDFLAGS) $(LDFLAGS) -o $@ | ||
51 | DEFAULT_INCLUDES = -I. -I$(top_builddir)/include/ode@am__isrc@ | ||
52 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
53 | am__depfiles_maybe = depfiles | ||
54 | CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ | ||
55 | $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) | ||
56 | CXXLD = $(CXX) | ||
57 | CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) \ | ||
58 | -o $@ | ||
59 | SOURCES = $(ode_unit_test_SOURCES) | ||
60 | DIST_SOURCES = $(ode_unit_test_SOURCES) | ||
61 | RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ | ||
62 | html-recursive info-recursive install-data-recursive \ | ||
63 | install-dvi-recursive install-exec-recursive \ | ||
64 | install-html-recursive install-info-recursive \ | ||
65 | install-pdf-recursive install-ps-recursive install-recursive \ | ||
66 | installcheck-recursive installdirs-recursive pdf-recursive \ | ||
67 | ps-recursive uninstall-recursive | ||
68 | RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ | ||
69 | distclean-recursive maintainer-clean-recursive | ||
70 | ETAGS = etags | ||
71 | CTAGS = ctags | ||
72 | DIST_SUBDIRS = $(SUBDIRS) | ||
73 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
74 | ACLOCAL = @ACLOCAL@ | ||
75 | ALLOCA = @ALLOCA@ | ||
76 | AMTAR = @AMTAR@ | ||
77 | ARCHFLAGS = @ARCHFLAGS@ | ||
78 | AUTOCONF = @AUTOCONF@ | ||
79 | AUTOHEADER = @AUTOHEADER@ | ||
80 | AUTOMAKE = @AUTOMAKE@ | ||
81 | AWK = @AWK@ | ||
82 | CC = @CC@ | ||
83 | CCDEPMODE = @CCDEPMODE@ | ||
84 | CFLAGS = @CFLAGS@ | ||
85 | CPP = @CPP@ | ||
86 | CPPFLAGS = @CPPFLAGS@ | ||
87 | CXX = @CXX@ | ||
88 | CXXDEPMODE = @CXXDEPMODE@ | ||
89 | CXXFLAGS = @CXXFLAGS@ | ||
90 | CYGPATH_W = @CYGPATH_W@ | ||
91 | DEFS = @DEFS@ | ||
92 | DEPDIR = @DEPDIR@ | ||
93 | DRAWSTUFF = @DRAWSTUFF@ | ||
94 | ECHO_C = @ECHO_C@ | ||
95 | ECHO_N = @ECHO_N@ | ||
96 | ECHO_T = @ECHO_T@ | ||
97 | EGREP = @EGREP@ | ||
98 | EXEEXT = @EXEEXT@ | ||
99 | GL_LIBS = @GL_LIBS@ | ||
100 | GREP = @GREP@ | ||
101 | INSTALL = @INSTALL@ | ||
102 | INSTALL_DATA = @INSTALL_DATA@ | ||
103 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
104 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
105 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
106 | LDFLAGS = @LDFLAGS@ | ||
107 | LIBOBJS = @LIBOBJS@ | ||
108 | LIBS = @LIBS@ | ||
109 | LTLIBOBJS = @LTLIBOBJS@ | ||
110 | MAKEINFO = @MAKEINFO@ | ||
111 | MKDIR_P = @MKDIR_P@ | ||
112 | OBJEXT = @OBJEXT@ | ||
113 | ODE_AGE = @ODE_AGE@ | ||
114 | ODE_CURRENT = @ODE_CURRENT@ | ||
115 | ODE_RELEASE = @ODE_RELEASE@ | ||
116 | ODE_REVISION = @ODE_REVISION@ | ||
117 | ODE_SONAME = @ODE_SONAME@ | ||
118 | PACKAGE = @PACKAGE@ | ||
119 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
120 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
121 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
122 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
123 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
124 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
125 | RANLIB = @RANLIB@ | ||
126 | SET_MAKE = @SET_MAKE@ | ||
127 | SHARED_LDFLAGS = @SHARED_LDFLAGS@ | ||
128 | SHELL = @SHELL@ | ||
129 | STRIP = @STRIP@ | ||
130 | TOPDIR = @TOPDIR@ | ||
131 | VERSION = @VERSION@ | ||
132 | WINDRES = @WINDRES@ | ||
133 | XMKMF = @XMKMF@ | ||
134 | X_CFLAGS = @X_CFLAGS@ | ||
135 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
136 | X_LIBS = @X_LIBS@ | ||
137 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
138 | abs_builddir = @abs_builddir@ | ||
139 | abs_srcdir = @abs_srcdir@ | ||
140 | abs_top_builddir = @abs_top_builddir@ | ||
141 | abs_top_srcdir = @abs_top_srcdir@ | ||
142 | ac_ct_CC = @ac_ct_CC@ | ||
143 | ac_ct_CXX = @ac_ct_CXX@ | ||
144 | ac_ct_WINDRES = @ac_ct_WINDRES@ | ||
145 | am__include = @am__include@ | ||
146 | am__leading_dot = @am__leading_dot@ | ||
147 | am__quote = @am__quote@ | ||
148 | am__tar = @am__tar@ | ||
149 | am__untar = @am__untar@ | ||
150 | bindir = @bindir@ | ||
151 | build = @build@ | ||
152 | build_alias = @build_alias@ | ||
153 | build_cpu = @build_cpu@ | ||
154 | build_os = @build_os@ | ||
155 | build_vendor = @build_vendor@ | ||
156 | builddir = @builddir@ | ||
157 | datadir = @datadir@ | ||
158 | datarootdir = @datarootdir@ | ||
159 | docdir = @docdir@ | ||
160 | dvidir = @dvidir@ | ||
161 | exec_prefix = @exec_prefix@ | ||
162 | host = @host@ | ||
163 | host_alias = @host_alias@ | ||
164 | host_cpu = @host_cpu@ | ||
165 | host_os = @host_os@ | ||
166 | host_vendor = @host_vendor@ | ||
167 | htmldir = @htmldir@ | ||
168 | includedir = @includedir@ | ||
169 | infodir = @infodir@ | ||
170 | install_sh = @install_sh@ | ||
171 | libdir = @libdir@ | ||
172 | libexecdir = @libexecdir@ | ||
173 | localedir = @localedir@ | ||
174 | localstatedir = @localstatedir@ | ||
175 | mandir = @mandir@ | ||
176 | mkdir_p = @mkdir_p@ | ||
177 | oldincludedir = @oldincludedir@ | ||
178 | pdfdir = @pdfdir@ | ||
179 | prefix = @prefix@ | ||
180 | program_transform_name = @program_transform_name@ | ||
181 | psdir = @psdir@ | ||
182 | sbindir = @sbindir@ | ||
183 | sharedstatedir = @sharedstatedir@ | ||
184 | so_ext = @so_ext@ | ||
185 | srcdir = @srcdir@ | ||
186 | sysconfdir = @sysconfdir@ | ||
187 | target = @target@ | ||
188 | target_alias = @target_alias@ | ||
189 | target_cpu = @target_cpu@ | ||
190 | target_os = @target_os@ | ||
191 | target_vendor = @target_vendor@ | ||
192 | top_builddir = @top_builddir@ | ||
193 | top_srcdir = @top_srcdir@ | ||
194 | SUBDIRS = CppTestHarness | ||
195 | AM_CXXFLAGS = @ARCHFLAGS@ @CXXFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/tests/CppTestHarness -I$(top_builddir)/include | ||
196 | AM_CFLAGS = @ARCHFLAGS@ @CXXFLAGS@ -I$(top_srcdir)/include -I$(top_srcdir)/tests/CppTestHarness -I$(top_builddir)/include | ||
197 | ode_unit_test_SOURCES = \ | ||
198 | main.cpp \ | ||
199 | colliders/box_sphere.cpp | ||
200 | |||
201 | ode_unit_test_DEPENDENCIES = \ | ||
202 | $(top_builddir)/ode/src/libode.a \ | ||
203 | $(top_builddir)/tests/CppTestHarness/libodetest.a | ||
204 | |||
205 | ode_unit_test_LDFLAGS = \ | ||
206 | -L$(top_builddir)/ode/src \ | ||
207 | -L$(top_builddir)/tests/CppTestHarness \ | ||
208 | @LDFLAGS@ | ||
209 | |||
210 | ode_unit_test_LDADD = \ | ||
211 | $(top_builddir)/ode/src/libode.a \ | ||
212 | $(top_builddir)/tests/CppTestHarness/libodetest.a \ | ||
213 | @GL_LIBS@ @LIBS@ | ||
214 | |||
215 | all: all-recursive | ||
216 | |||
217 | .SUFFIXES: | ||
218 | .SUFFIXES: .cpp .o .obj | ||
219 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
220 | @for dep in $?; do \ | ||
221 | case '$(am__configure_deps)' in \ | ||
222 | *$$dep*) \ | ||
223 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ | ||
224 | && exit 0; \ | ||
225 | exit 1;; \ | ||
226 | esac; \ | ||
227 | done; \ | ||
228 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign tests/Makefile'; \ | ||
229 | cd $(top_srcdir) && \ | ||
230 | $(AUTOMAKE) --foreign tests/Makefile | ||
231 | .PRECIOUS: Makefile | ||
232 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
233 | @case '$?' in \ | ||
234 | *config.status*) \ | ||
235 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
236 | *) \ | ||
237 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
238 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
239 | esac; | ||
240 | |||
241 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
242 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
243 | |||
244 | $(top_srcdir)/configure: $(am__configure_deps) | ||
245 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
246 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
247 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
248 | |||
249 | clean-noinstPROGRAMS: | ||
250 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | ||
251 | ode_unit_test$(EXEEXT): $(ode_unit_test_OBJECTS) $(ode_unit_test_DEPENDENCIES) | ||
252 | @rm -f ode_unit_test$(EXEEXT) | ||
253 | $(ode_unit_test_LINK) $(ode_unit_test_OBJECTS) $(ode_unit_test_LDADD) $(LIBS) | ||
254 | |||
255 | mostlyclean-compile: | ||
256 | -rm -f *.$(OBJEXT) | ||
257 | |||
258 | distclean-compile: | ||
259 | -rm -f *.tab.c | ||
260 | |||
261 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/box_sphere.Po@am__quote@ | ||
262 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ | ||
263 | |||
264 | .cpp.o: | ||
265 | @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
266 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
267 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
268 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
269 | @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $< | ||
270 | |||
271 | .cpp.obj: | ||
272 | @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
273 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
274 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
275 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
276 | @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` | ||
277 | |||
278 | box_sphere.o: colliders/box_sphere.cpp | ||
279 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT box_sphere.o -MD -MP -MF $(DEPDIR)/box_sphere.Tpo -c -o box_sphere.o `test -f 'colliders/box_sphere.cpp' || echo '$(srcdir)/'`colliders/box_sphere.cpp | ||
280 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/box_sphere.Tpo $(DEPDIR)/box_sphere.Po | ||
281 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='colliders/box_sphere.cpp' object='box_sphere.o' libtool=no @AMDEPBACKSLASH@ | ||
282 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
283 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o box_sphere.o `test -f 'colliders/box_sphere.cpp' || echo '$(srcdir)/'`colliders/box_sphere.cpp | ||
284 | |||
285 | box_sphere.obj: colliders/box_sphere.cpp | ||
286 | @am__fastdepCXX_TRUE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -MT box_sphere.obj -MD -MP -MF $(DEPDIR)/box_sphere.Tpo -c -o box_sphere.obj `if test -f 'colliders/box_sphere.cpp'; then $(CYGPATH_W) 'colliders/box_sphere.cpp'; else $(CYGPATH_W) '$(srcdir)/colliders/box_sphere.cpp'; fi` | ||
287 | @am__fastdepCXX_TRUE@ mv -f $(DEPDIR)/box_sphere.Tpo $(DEPDIR)/box_sphere.Po | ||
288 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='colliders/box_sphere.cpp' object='box_sphere.obj' libtool=no @AMDEPBACKSLASH@ | ||
289 | @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
290 | @am__fastdepCXX_FALSE@ $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) -c -o box_sphere.obj `if test -f 'colliders/box_sphere.cpp'; then $(CYGPATH_W) 'colliders/box_sphere.cpp'; else $(CYGPATH_W) '$(srcdir)/colliders/box_sphere.cpp'; fi` | ||
291 | |||
292 | # This directory's subdirectories are mostly independent; you can cd | ||
293 | # into them and run `make' without going through this Makefile. | ||
294 | # To change the values of `make' variables: instead of editing Makefiles, | ||
295 | # (1) if the variable is set in `config.status', edit `config.status' | ||
296 | # (which will cause the Makefiles to be regenerated when you run `make'); | ||
297 | # (2) otherwise, pass the desired values on the `make' command line. | ||
298 | $(RECURSIVE_TARGETS): | ||
299 | @failcom='exit 1'; \ | ||
300 | for f in x $$MAKEFLAGS; do \ | ||
301 | case $$f in \ | ||
302 | *=* | --[!k]*);; \ | ||
303 | *k*) failcom='fail=yes';; \ | ||
304 | esac; \ | ||
305 | done; \ | ||
306 | dot_seen=no; \ | ||
307 | target=`echo $@ | sed s/-recursive//`; \ | ||
308 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
309 | echo "Making $$target in $$subdir"; \ | ||
310 | if test "$$subdir" = "."; then \ | ||
311 | dot_seen=yes; \ | ||
312 | local_target="$$target-am"; \ | ||
313 | else \ | ||
314 | local_target="$$target"; \ | ||
315 | fi; \ | ||
316 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
317 | || eval $$failcom; \ | ||
318 | done; \ | ||
319 | if test "$$dot_seen" = "no"; then \ | ||
320 | $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ | ||
321 | fi; test -z "$$fail" | ||
322 | |||
323 | $(RECURSIVE_CLEAN_TARGETS): | ||
324 | @failcom='exit 1'; \ | ||
325 | for f in x $$MAKEFLAGS; do \ | ||
326 | case $$f in \ | ||
327 | *=* | --[!k]*);; \ | ||
328 | *k*) failcom='fail=yes';; \ | ||
329 | esac; \ | ||
330 | done; \ | ||
331 | dot_seen=no; \ | ||
332 | case "$@" in \ | ||
333 | distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ | ||
334 | *) list='$(SUBDIRS)' ;; \ | ||
335 | esac; \ | ||
336 | rev=''; for subdir in $$list; do \ | ||
337 | if test "$$subdir" = "."; then :; else \ | ||
338 | rev="$$subdir $$rev"; \ | ||
339 | fi; \ | ||
340 | done; \ | ||
341 | rev="$$rev ."; \ | ||
342 | target=`echo $@ | sed s/-recursive//`; \ | ||
343 | for subdir in $$rev; do \ | ||
344 | echo "Making $$target in $$subdir"; \ | ||
345 | if test "$$subdir" = "."; then \ | ||
346 | local_target="$$target-am"; \ | ||
347 | else \ | ||
348 | local_target="$$target"; \ | ||
349 | fi; \ | ||
350 | (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ | ||
351 | || eval $$failcom; \ | ||
352 | done && test -z "$$fail" | ||
353 | tags-recursive: | ||
354 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
355 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ | ||
356 | done | ||
357 | ctags-recursive: | ||
358 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
359 | test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ | ||
360 | done | ||
361 | |||
362 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
363 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
364 | unique=`for i in $$list; do \ | ||
365 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
366 | done | \ | ||
367 | $(AWK) ' { files[$$0] = 1; } \ | ||
368 | END { for (i in files) print i; }'`; \ | ||
369 | mkid -fID $$unique | ||
370 | tags: TAGS | ||
371 | |||
372 | TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
373 | $(TAGS_FILES) $(LISP) | ||
374 | tags=; \ | ||
375 | here=`pwd`; \ | ||
376 | if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ | ||
377 | include_option=--etags-include; \ | ||
378 | empty_fix=.; \ | ||
379 | else \ | ||
380 | include_option=--include; \ | ||
381 | empty_fix=; \ | ||
382 | fi; \ | ||
383 | list='$(SUBDIRS)'; for subdir in $$list; do \ | ||
384 | if test "$$subdir" = .; then :; else \ | ||
385 | test ! -f $$subdir/TAGS || \ | ||
386 | tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ | ||
387 | fi; \ | ||
388 | done; \ | ||
389 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
390 | unique=`for i in $$list; do \ | ||
391 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
392 | done | \ | ||
393 | $(AWK) ' { files[$$0] = 1; } \ | ||
394 | END { for (i in files) print i; }'`; \ | ||
395 | if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ | ||
396 | test -n "$$unique" || unique=$$empty_fix; \ | ||
397 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
398 | $$tags $$unique; \ | ||
399 | fi | ||
400 | ctags: CTAGS | ||
401 | CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
402 | $(TAGS_FILES) $(LISP) | ||
403 | tags=; \ | ||
404 | here=`pwd`; \ | ||
405 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
406 | unique=`for i in $$list; do \ | ||
407 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
408 | done | \ | ||
409 | $(AWK) ' { files[$$0] = 1; } \ | ||
410 | END { for (i in files) print i; }'`; \ | ||
411 | test -z "$(CTAGS_ARGS)$$tags$$unique" \ | ||
412 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
413 | $$tags $$unique | ||
414 | |||
415 | GTAGS: | ||
416 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
417 | && cd $(top_srcdir) \ | ||
418 | && gtags -i $(GTAGS_ARGS) $$here | ||
419 | |||
420 | distclean-tags: | ||
421 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
422 | |||
423 | distdir: $(DISTFILES) | ||
424 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
425 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
426 | list='$(DISTFILES)'; \ | ||
427 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
428 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
429 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
430 | case $$dist_files in \ | ||
431 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
432 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
433 | sort -u` ;; \ | ||
434 | esac; \ | ||
435 | for file in $$dist_files; do \ | ||
436 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
437 | if test -d $$d/$$file; then \ | ||
438 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
439 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
440 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ | ||
441 | fi; \ | ||
442 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ | ||
443 | else \ | ||
444 | test -f $(distdir)/$$file \ | ||
445 | || cp -p $$d/$$file $(distdir)/$$file \ | ||
446 | || exit 1; \ | ||
447 | fi; \ | ||
448 | done | ||
449 | list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ | ||
450 | if test "$$subdir" = .; then :; else \ | ||
451 | test -d "$(distdir)/$$subdir" \ | ||
452 | || $(MKDIR_P) "$(distdir)/$$subdir" \ | ||
453 | || exit 1; \ | ||
454 | distdir=`$(am__cd) $(distdir) && pwd`; \ | ||
455 | top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ | ||
456 | (cd $$subdir && \ | ||
457 | $(MAKE) $(AM_MAKEFLAGS) \ | ||
458 | top_distdir="$$top_distdir" \ | ||
459 | distdir="$$distdir/$$subdir" \ | ||
460 | am__remove_distdir=: \ | ||
461 | am__skip_length_check=: \ | ||
462 | distdir) \ | ||
463 | || exit 1; \ | ||
464 | fi; \ | ||
465 | done | ||
466 | check-am: all-am | ||
467 | check: check-recursive | ||
468 | all-am: Makefile $(PROGRAMS) | ||
469 | installdirs: installdirs-recursive | ||
470 | installdirs-am: | ||
471 | install: install-recursive | ||
472 | install-exec: install-exec-recursive | ||
473 | install-data: install-data-recursive | ||
474 | uninstall: uninstall-recursive | ||
475 | |||
476 | install-am: all-am | ||
477 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
478 | |||
479 | installcheck: installcheck-recursive | ||
480 | install-strip: | ||
481 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
482 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
483 | `test -z '$(STRIP)' || \ | ||
484 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
485 | mostlyclean-generic: | ||
486 | |||
487 | clean-generic: | ||
488 | |||
489 | distclean-generic: | ||
490 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
491 | |||
492 | maintainer-clean-generic: | ||
493 | @echo "This command is intended for maintainers to use" | ||
494 | @echo "it deletes files that may require special tools to rebuild." | ||
495 | clean: clean-recursive | ||
496 | |||
497 | clean-am: clean-generic clean-noinstPROGRAMS mostlyclean-am | ||
498 | |||
499 | distclean: distclean-recursive | ||
500 | -rm -rf ./$(DEPDIR) | ||
501 | -rm -f Makefile | ||
502 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
503 | distclean-tags | ||
504 | |||
505 | dvi: dvi-recursive | ||
506 | |||
507 | dvi-am: | ||
508 | |||
509 | html: html-recursive | ||
510 | |||
511 | info: info-recursive | ||
512 | |||
513 | info-am: | ||
514 | |||
515 | install-data-am: | ||
516 | |||
517 | install-dvi: install-dvi-recursive | ||
518 | |||
519 | install-exec-am: | ||
520 | |||
521 | install-html: install-html-recursive | ||
522 | |||
523 | install-info: install-info-recursive | ||
524 | |||
525 | install-man: | ||
526 | |||
527 | install-pdf: install-pdf-recursive | ||
528 | |||
529 | install-ps: install-ps-recursive | ||
530 | |||
531 | installcheck-am: | ||
532 | |||
533 | maintainer-clean: maintainer-clean-recursive | ||
534 | -rm -rf ./$(DEPDIR) | ||
535 | -rm -f Makefile | ||
536 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
537 | |||
538 | mostlyclean: mostlyclean-recursive | ||
539 | |||
540 | mostlyclean-am: mostlyclean-compile mostlyclean-generic | ||
541 | |||
542 | pdf: pdf-recursive | ||
543 | |||
544 | pdf-am: | ||
545 | |||
546 | ps: ps-recursive | ||
547 | |||
548 | ps-am: | ||
549 | |||
550 | uninstall-am: | ||
551 | |||
552 | .MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) install-am \ | ||
553 | install-strip | ||
554 | |||
555 | .PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \ | ||
556 | all all-am check check-am clean clean-generic \ | ||
557 | clean-noinstPROGRAMS ctags ctags-recursive distclean \ | ||
558 | distclean-compile distclean-generic distclean-tags distdir dvi \ | ||
559 | dvi-am html html-am info info-am install install-am \ | ||
560 | install-data install-data-am install-dvi install-dvi-am \ | ||
561 | install-exec install-exec-am install-html install-html-am \ | ||
562 | install-info install-info-am install-man install-pdf \ | ||
563 | install-pdf-am install-ps install-ps-am install-strip \ | ||
564 | installcheck installcheck-am installdirs installdirs-am \ | ||
565 | maintainer-clean maintainer-clean-generic mostlyclean \ | ||
566 | mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ | ||
567 | tags tags-recursive uninstall uninstall-am | ||
568 | |||
569 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
570 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
571 | .NOEXPORT: | ||
diff --git a/libraries/ode-0.9\/tests/colliders/box_sphere.cpp b/libraries/ode-0.9\/tests/colliders/box_sphere.cpp new file mode 100755 index 0000000..4bfead7 --- /dev/null +++ b/libraries/ode-0.9\/tests/colliders/box_sphere.cpp | |||
@@ -0,0 +1,13 @@ | |||
1 | #include "CppTestHarness.h" | ||
2 | #include "ode/ode.h" | ||
3 | |||
4 | TEST(BoxSphereIntersection) | ||
5 | { | ||
6 | dGeomID box = dCreateBox(NULL, 1.0f, 1.0f, 1.0f); | ||
7 | dGeomID sphere = dCreateSphere(NULL, 1.0f); | ||
8 | |||
9 | CHECK_EQUAL(1.0, 1.0); | ||
10 | |||
11 | dGeomDestroy(box); | ||
12 | dGeomDestroy(sphere); | ||
13 | } | ||
diff --git a/libraries/ode-0.9\/tests/main.cpp b/libraries/ode-0.9\/tests/main.cpp new file mode 100755 index 0000000..b95a6dd --- /dev/null +++ b/libraries/ode-0.9\/tests/main.cpp | |||
@@ -0,0 +1,7 @@ | |||
1 | #include "CppTestHarness.h" | ||
2 | #include "PrintfTestReporter.h" | ||
3 | |||
4 | int main() | ||
5 | { | ||
6 | return CppTestHarness::TestRunner().RunAllTests(); | ||
7 | } | ||