diff options
Diffstat (limited to '.nant')
-rw-r--r-- | .nant/local.include | 289 |
1 files changed, 289 insertions, 0 deletions
diff --git a/.nant/local.include b/.nant/local.include new file mode 100644 index 0000000..7b7aaf5 --- /dev/null +++ b/.nant/local.include | |||
@@ -0,0 +1,289 @@ | |||
1 | <!-- -*- xml -*- --> | ||
2 | <!-- please leave the top comment for us emacs folks --> | ||
3 | <property name="nunitcmd" value="nunit-console" /> | ||
4 | |||
5 | <!-- This target produces a source distribution of OpenSimulator --> | ||
6 | <!-- TODO: A few parameters still need to be tweaked after running this - need to do this automatically with sed or similar --> | ||
7 | <target name="distsrc"> | ||
8 | <copy file="config/OpenSim.ini.example" tofile="config/OpenSim.ini"/> | ||
9 | <copy file="config/config-include/StandaloneCommon.ini.example" tofile="config/config-include/StandaloneCommon.ini"/> | ||
10 | <copy file="config/config-include/FlotsamCache.ini.example" tofile="config/config-include/FlotsamCache.ini"/> | ||
11 | <!-- delete files generated by runprebuild.sh which had to be run in order to generate the build file for this target--> | ||
12 | <delete> | ||
13 | <fileset basedir="OpenSim"> | ||
14 | <include name="**/*.build"/> | ||
15 | <include name="**/*.csproj*"/> | ||
16 | <include name="**/*.dll.build"/> | ||
17 | <include name="**/*.pidb"/> | ||
18 | <exclude name="Tools/OpenSim.32BitLaunch/**"/> | ||
19 | <exclude name="Tools/Robust.32BitLaunch/**"/> | ||
20 | <exclude name="Tools/LaunchSLClient/**"/> | ||
21 | </fileset> | ||
22 | </delete> | ||
23 | <delete> | ||
24 | <fileset> | ||
25 | <include name="OpenSim.build"/> | ||
26 | <include name="OpenSim.sln"/> | ||
27 | </fileset> | ||
28 | </delete> | ||
29 | </target> | ||
30 | |||
31 | <property name="distbindir" value="distbin" /> | ||
32 | <!-- This target produces a binary directory called distbin/ in OpenSim/bin which contains everything needed for binary distribution --> | ||
33 | <!-- For safety/laziness sake, we're going to take the approach of deleting known extraneous files here rather than | ||
34 | trying to copy across only the essential ones --> | ||
35 | <target name="distbin"> | ||
36 | <delete dir="${distbindir}"/> | ||
37 | <copy todir="${distbindir}"> | ||
38 | <fileset> | ||
39 | <include name="**"/> | ||
40 | </fileset> | ||
41 | </copy> | ||
42 | <delete dir="${distbindir}/OpenSim"/> | ||
43 | <delete dir="${distbindir}/Prebuild"/> | ||
44 | <delete dir="${distbindir}/%temp%"/> | ||
45 | <delete dir="${distbindir}/.nant"/> | ||
46 | <delete dir="${distbindir}/ThirdParty"/> | ||
47 | <delete> | ||
48 | <fileset basedir="${distbindir}"> | ||
49 | <include name="compile.bat"/> | ||
50 | <include name="BUILDING.md"/> | ||
51 | <include name="Makefile"/> | ||
52 | <include name="nant-color"/> | ||
53 | <include name="OpenSim.*"/> | ||
54 | <include name="prebuild.xml"/> | ||
55 | <include name="runprebuild*"/> | ||
56 | <include name="TESTING.txt"/> | ||
57 | <include name="TestResult.xml"/> | ||
58 | <include name="config/OpenSim.Server.ini"/> | ||
59 | <include name="config/Regions/Regions.ini"/> | ||
60 | <include name="bin/*.db"/> | ||
61 | <include name="**/.git/**"/> | ||
62 | <include name=".gitignore"/> | ||
63 | <include name=".hgignore"/> | ||
64 | </fileset> | ||
65 | </delete> | ||
66 | </target> | ||
67 | |||
68 | <target name="test" depends="build, find-nunit"> | ||
69 | <setenv name="MONO_THREADS_PER_CPU" value="100" /> | ||
70 | |||
71 | <!-- Unit Test Assembly --> | ||
72 | <!-- if you want to add more unit tests it's important that you add | ||
73 | the assembly here as an exec, and you add the fail clause later. | ||
74 | This lets all the unit tests run and tells you if they fail at the | ||
75 | end, instead of stopping short --> | ||
76 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests"> | ||
77 | <arg value="./bin/OpenSim.Tests.dll" /> | ||
78 | </exec> | ||
79 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests)==0}" /> | ||
80 | |||
81 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.tests"> | ||
82 | <arg value="./bin/OpenSim.Framework.Tests.dll" /> | ||
83 | </exec> | ||
84 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" /> | ||
85 | |||
86 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.servers.tests"> | ||
87 | <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" /> | ||
88 | </exec> | ||
89 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" /> | ||
90 | |||
91 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.serialization.tests"> | ||
92 | <arg value="./bin/OpenSim.Framework.Serialization.Tests.dll" /> | ||
93 | </exec> | ||
94 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.serialization.tests)==0}" /> | ||
95 | |||
96 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.clientstack.lindencaps.tests"> | ||
97 | <arg value="./bin/OpenSim.Region.ClientStack.LindenCaps.Tests.dll" /> | ||
98 | </exec> | ||
99 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindencaps.tests)==0}" /> | ||
100 | |||
101 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests"> | ||
102 | <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> | ||
103 | </exec> | ||
104 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" /> | ||
105 | |||
106 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.scriptengine.tests"> | ||
107 | <arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> | ||
108 | </exec> | ||
109 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" /> | ||
110 | |||
111 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.coremodules.tests"> | ||
112 | <arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" /> | ||
113 | </exec> | ||
114 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" /> | ||
115 | |||
116 | <!-- | ||
117 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.optionalmodules.tests"> | ||
118 | <arg value="./bin/OpenSim.Region.OptionalModules.Tests.dll" /> | ||
119 | </exec> | ||
120 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.optionalmodules.tests)==0}" /> | ||
121 | --> | ||
122 | |||
123 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.framework.tests"> | ||
124 | <arg value="./bin/OpenSim.Region.Framework.Tests.dll" /> | ||
125 | </exec> | ||
126 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" /> | ||
127 | |||
128 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.data.tests"> | ||
129 | <arg value="./bin/OpenSim.Data.Tests.dll" /> | ||
130 | </exec> | ||
131 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" /> | ||
132 | |||
133 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.capabilities.handlers.tests"> | ||
134 | <arg value="./bin/OpenSim.Capabilities.Handlers.Tests.dll" /> | ||
135 | </exec> | ||
136 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" /> | ||
137 | |||
138 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.server.handlers.tests"> | ||
139 | <arg value="./bin/OpenSim.Server.Handlers.Tests.dll" /> | ||
140 | </exec> | ||
141 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.server.handlers.tests)==0}" /> | ||
142 | |||
143 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.services.inventoryservice.tests"> | ||
144 | <arg value="./bin/OpenSim.Services.InventoryService.Tests.dll" /> | ||
145 | </exec> | ||
146 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.services.inventoryservice.tests)==0}" /> | ||
147 | |||
148 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests.permissions"> | ||
149 | <arg value="./bin/OpenSim.Tests.Permissions.dll" /> | ||
150 | </exec> | ||
151 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.permissions)==0}" /> | ||
152 | |||
153 | <delete dir="%temp%"/> | ||
154 | </target> | ||
155 | |||
156 | <target name="test-stress" depends="build, find-nunit"> | ||
157 | <setenv name="MONO_THREADS_PER_CPU" value="100" /> | ||
158 | |||
159 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests.stress"> | ||
160 | <arg value="./bin/OpenSim.Tests.Stress.dll" /> | ||
161 | </exec> | ||
162 | |||
163 | <fail message="Failures reported in stress tests." unless="${int::parse(testresult.opensim.tests.stress)==0}" /> | ||
164 | <delete dir="%temp%"/> | ||
165 | </target> | ||
166 | |||
167 | <target name="test-perf" depends="build, find-nunit"> | ||
168 | <setenv name="MONO_THREADS_PER_CPU" value="100" /> | ||
169 | |||
170 | <exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests.performance"> | ||
171 | <arg value="./bin/OpenSim.Tests.Performance.dll" /> | ||
172 | </exec> | ||
173 | |||
174 | <fail message="Failures reported in performance tests." unless="${int::parse(testresult.opensim.tests.performance)==0}" /> | ||
175 | <delete dir="%temp%"/> | ||
176 | </target> | ||
177 | |||
178 | <target name="find-nunit"> | ||
179 | <exec program="which" failonerror="false" | ||
180 | resultproperty="hasnunit2"> | ||
181 | <arg value="nunit-console2" /> | ||
182 | </exec> | ||
183 | |||
184 | <property name="nunitcmd" value="nunit-console2" | ||
185 | if="${int::parse(hasnunit2)==0}" /> | ||
186 | <property name="nunitcmd" value="nunit-console" | ||
187 | if="${int::parse(hasnunit2)==1}" /> | ||
188 | </target> | ||
189 | |||
190 | <!-- this is used for panda test execution --> | ||
191 | <!-- work in progress --> | ||
192 | |||
193 | <target name="test-xml" depends="build, find-nunit"> | ||
194 | <mkdir dir="test-results" failonerror="false" /> | ||
195 | <!-- Unit Test Assembly --> | ||
196 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests"> | ||
197 | <arg value="./bin/OpenSim.Tests.dll" /> | ||
198 | <arg value="-xml=test-results/OpenSim.Tests.dll-Results.xml" /> | ||
199 | </exec> | ||
200 | |||
201 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.tests"> | ||
202 | <arg value="./bin/OpenSim.Framework.Tests.dll" /> | ||
203 | <arg value="-xml=test-results/OpenSim.Framework.Tests.dll-Results.xml" /> | ||
204 | </exec> | ||
205 | |||
206 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.serialization.tests"> | ||
207 | <arg value="./bin/OpenSim.Framework.Serialization.Tests.dll" /> | ||
208 | <arg value="-xml=test-results/OpenSim.Framework.Serialization.Tests.dll-Results.xml" /> | ||
209 | </exec> | ||
210 | |||
211 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.servers.tests"> | ||
212 | <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" /> | ||
213 | <arg value="-xml=test-results/OpenSim.Framework.Servers.Tests.dll-Results.xml" /> | ||
214 | </exec> | ||
215 | |||
216 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindencaps.tests"> | ||
217 | <arg value="./bin/OpenSim.Region.ClientStack.LindenCaps.Tests.dll" /> | ||
218 | <arg value="-xml=test-results/OpenSim.Region.ClientStack.LindenCaps.Tests.dll-Results.xml" /> | ||
219 | </exec> | ||
220 | |||
221 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests"> | ||
222 | <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> | ||
223 | <arg value="-xml=test-results/OpenSim.Region.ClientStack.LindenUDP.Tests.dll-Results.xml" /> | ||
224 | </exec> | ||
225 | |||
226 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.scriptengine.tests"> | ||
227 | <arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> | ||
228 | <arg value="-xml=test-results/OpenSim.Region.ScriptEngine.Tests.dll-Results.xml" /> | ||
229 | </exec> | ||
230 | |||
231 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.coremodules.tests"> | ||
232 | <arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" /> | ||
233 | <arg value="-xml=test-results/OpenSim.Region.CoreModules.Tests.dll-Results.xml" /> | ||
234 | </exec> | ||
235 | |||
236 | <!-- | ||
237 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.optionalmodules.tests"> | ||
238 | <arg value="./bin/OpenSim.Region.OptionalModules.Tests.dll" /> | ||
239 | <arg value="-xml=test-results/OpenSim.Region.OptionalModules.Tests.dll-Results.xml" /> | ||
240 | </exec> | ||
241 | --> | ||
242 | |||
243 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.framework.tests"> | ||
244 | <arg value="./bin/OpenSim.Region.Framework.Tests.dll" /> | ||
245 | <arg value="-xml=test-results/OpenSim.Region.Framework.Tests.dll-Results.xml" /> | ||
246 | </exec> | ||
247 | |||
248 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.tests"> | ||
249 | <arg value="./bin/OpenSim.Data.Tests.dll" /> | ||
250 | <arg value="-xml=test-results/OpenSim.Data.Tests.dll-Results.xml" /> | ||
251 | </exec> | ||
252 | |||
253 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.capabilities.handlers.tests"> | ||
254 | <arg value="./bin/OpenSim.Capabilities.Handlers.Tests.dll" /> | ||
255 | <arg value="-xml=test-results/OpenSim.Capabilities.Handlers.Tests.dll-Results.xml" /> | ||
256 | </exec> | ||
257 | |||
258 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.server.handlers.tests"> | ||
259 | <arg value="./bin/OpenSim.Server.Handlers.Tests.dll" /> | ||
260 | <arg value="-xml=test-results/OpenSim.Server.Handlers.Tests.dll-Results.xml" /> | ||
261 | </exec> | ||
262 | |||
263 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.services.inventoryservice.tests"> | ||
264 | <arg value="./bin/OpenSim.Services.InventoryService.Tests.dll" /> | ||
265 | <arg value="-xml=test-results/OpenSim.Services.InventoryService.Tests.dll-Results.xml" /> | ||
266 | </exec> | ||
267 | |||
268 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests.permissions"> | ||
269 | <arg value="./bin/OpenSim.Tests.Permissions.dll" /> | ||
270 | <arg value="-xml=test-results/OpenSim.Tests.Permissions.dll-Results.xml" /> | ||
271 | </exec> | ||
272 | |||
273 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests)==0}" /> | ||
274 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" /> | ||
275 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" /> | ||
276 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" /> | ||
277 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" /> | ||
278 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" /> | ||
279 | <!-- <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.optionalmodules.tests)==0}" /> --> | ||
280 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" /> | ||
281 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" /> | ||
282 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" /> | ||
283 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.services.inventoryservice.tests)==0}" /> | ||
284 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.permissions)==0}" /> | ||
285 | </target> | ||
286 | |||
287 | <target name="doxygen"> | ||
288 | <exec program="doxygen" workingdir="doc" commandline="doxygen.conf" /> | ||
289 | </target> | ||