2008-09-10 17:49:41 +00:00
|
|
|
<!-- -*- xml -*- -->
|
2009-09-01 00:15:20 +00:00
|
|
|
<!-- please leave the top comment for us emacs folks -->
|
|
|
|
<property name="nunitcmd" value="nunit-console" />
|
2007-09-17 11:25:47 +00:00
|
|
|
|
2012-02-25 00:36:28 +00:00
|
|
|
<!-- This target produces a source distribution of OpenSimulator -->
|
|
|
|
<!-- TODO: A few parameters still need to be tweaked after running this - need to do this automatically with sed or similar -->
|
|
|
|
<target name="distsrc">
|
2010-03-26 20:47:26 +00:00
|
|
|
<copy file="bin/OpenSim.ini.example" tofile="bin/OpenSim.ini"/>
|
2010-04-30 21:36:26 +00:00
|
|
|
<copy file="bin/config-include/StandaloneCommon.ini.example" tofile="bin/config-include/StandaloneCommon.ini"/>
|
2011-09-23 23:18:32 +00:00
|
|
|
<copy file="bin/config-include/FlotsamCache.ini.example" tofile="bin/config-include/FlotsamCache.ini"/>
|
2012-02-29 21:51:46 +00:00
|
|
|
<!-- delete files generated by runprebuild.sh which had to be run in order to generate the build file for this target-->
|
|
|
|
<delete>
|
|
|
|
<fileset basedir="OpenSim">
|
|
|
|
<include name="**/*.build"/>
|
|
|
|
<include name="**/*.csproj*"/>
|
|
|
|
<include name="**/*.dll.build"/>
|
|
|
|
<include name="**/*.pidb"/>
|
|
|
|
<exclude name="Tools/OpenSim.32BitLaunch/**"/>
|
|
|
|
<exclude name="Tools/Robust.32BitLaunch/**"/>
|
|
|
|
<exclude name="Tools/LaunchSLClient/**"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
<delete>
|
|
|
|
<fileset>
|
|
|
|
<include name="OpenSim.build"/>
|
|
|
|
<include name="OpenSim.sln"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
2012-02-25 00:36:28 +00:00
|
|
|
</target>
|
|
|
|
|
|
|
|
<property name="distbindir" value="distbin" />
|
|
|
|
<!-- This target produces a binary directory called distbin/ in OpenSim/bin which contains everything needed for binary distribution -->
|
|
|
|
<!-- For safety/laziness sake, we're going to take the approach of deleting known extraneous files here rather than
|
|
|
|
trying to copy across only the essential ones -->
|
|
|
|
<target name="distbin">
|
2010-03-26 20:47:26 +00:00
|
|
|
<delete dir="${distbindir}"/>
|
|
|
|
<copy todir="${distbindir}">
|
|
|
|
<fileset>
|
|
|
|
<include name="**"/>
|
|
|
|
</fileset>
|
|
|
|
</copy>
|
|
|
|
<delete dir="${distbindir}/OpenSim"/>
|
|
|
|
<delete dir="${distbindir}/Prebuild"/>
|
|
|
|
<delete dir="${distbindir}/%temp%"/>
|
|
|
|
<delete dir="${distbindir}/.nant"/>
|
|
|
|
<delete>
|
|
|
|
<fileset basedir="${distbindir}">
|
2010-07-23 22:12:30 +00:00
|
|
|
<include name="compile.bat"/>
|
2010-05-15 01:07:07 +00:00
|
|
|
<include name="BUILDING.txt"/>
|
2010-03-26 20:47:26 +00:00
|
|
|
<include name="Makefile"/>
|
|
|
|
<include name="nant-color"/>
|
|
|
|
<include name="OpenSim.*"/>
|
|
|
|
<include name="prebuild.xml"/>
|
|
|
|
<include name="runprebuild*"/>
|
|
|
|
<include name="TESTING.txt"/>
|
|
|
|
<include name="TestResult.xml"/>
|
|
|
|
<include name="bin/OpenSim.Server.ini"/>
|
2010-07-23 21:36:03 +00:00
|
|
|
<include name="bin/Regions/Regions.ini"/>
|
2010-03-26 20:47:26 +00:00
|
|
|
<include name="bin/*.db"/>
|
|
|
|
<include name="**/.git/**"/>
|
|
|
|
<include name=".gitignore"/>
|
|
|
|
<include name=".hgignore"/>
|
|
|
|
</fileset>
|
|
|
|
</delete>
|
|
|
|
</target>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<target name="test" depends="build, find-nunit">
|
2009-03-30 18:49:01 +00:00
|
|
|
<setenv name="MONO_THREADS_PER_CPU" value="100" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
|
|
|
<!-- Unit Test Assembly -->
|
2009-09-03 18:55:54 +00:00
|
|
|
<!-- if you want to add more unit tests it's important that you add
|
|
|
|
the assembly here as an exec, and you add the fail clause later.
|
|
|
|
This lets all the unit tests run and tells you if they fail at the
|
|
|
|
end, instead of stopping short -->
|
2010-08-11 14:31:26 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests">
|
|
|
|
<arg value="./bin/OpenSim.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests)==0}" />
|
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.servers.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2009-10-01 07:47:45 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.framework.serialization.tests">
|
|
|
|
<arg value="./bin/OpenSim.Framework.Serialization.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.serialization.tests)==0}" />
|
|
|
|
|
2011-10-24 21:23:41 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.clientstack.lindencaps.tests">
|
|
|
|
<arg value="./bin/OpenSim.Region.ClientStack.LindenCaps.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindencaps.tests)==0}" />
|
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.scriptengine.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.coremodules.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2010-12-14 23:58:39 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.optionalmodules.tests">
|
|
|
|
<arg value="./bin/OpenSim.Region.OptionalModules.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.optionalmodules.tests)==0}" />
|
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.region.framework.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.Framework.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2010-05-28 15:26:14 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.data.tests">
|
|
|
|
<arg value="./bin/OpenSim.Data.Tests.dll" />
|
2009-09-01 00:15:20 +00:00
|
|
|
</exec>
|
2010-05-28 15:26:14 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2011-12-05 21:04:17 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.capabilities.handlers.tests">
|
|
|
|
<arg value="./bin/OpenSim.Capabilities.Handlers.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" />
|
|
|
|
|
2010-03-05 22:38:03 +00:00
|
|
|
<delete dir="%temp%"/>
|
2008-10-22 17:45:43 +00:00
|
|
|
</target>
|
|
|
|
|
2012-11-15 15:05:16 +00:00
|
|
|
<target name="torture" depends="build, find-nunit">
|
2012-08-29 22:04:00 +00:00
|
|
|
<setenv name="MONO_THREADS_PER_CPU" value="100" />
|
|
|
|
|
2012-11-15 15:05:16 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.tests.torture">
|
|
|
|
<arg value="./bin/OpenSim.Tests.Torture.dll" />
|
2012-08-29 22:04:00 +00:00
|
|
|
</exec>
|
|
|
|
|
2012-11-15 15:05:16 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests.torture)==0}" />
|
2012-01-31 19:56:37 +00:00
|
|
|
<delete dir="%temp%"/>
|
|
|
|
</target>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<target name="find-nunit">
|
|
|
|
<exec program="which" failonerror="false"
|
|
|
|
resultproperty="hasnunit2">
|
|
|
|
<arg value="nunit-console2" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<property name="nunitcmd" value="nunit-console2"
|
|
|
|
if="${int::parse(hasnunit2)==0}" />
|
|
|
|
<property name="nunitcmd" value="nunit-console"
|
2009-09-01 00:26:16 +00:00
|
|
|
if="${int::parse(hasnunit2)==1}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
</target>
|
|
|
|
|
2009-08-31 21:44:52 +00:00
|
|
|
<!-- this is used for panda test execution -->
|
|
|
|
<!-- work in progress -->
|
2008-10-22 17:45:43 +00:00
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<target name="test-xml" depends="build, find-nunit">
|
2009-08-31 21:44:52 +00:00
|
|
|
<mkdir dir="test-results" failonerror="false" />
|
|
|
|
<!-- Unit Test Assembly -->
|
2010-08-11 14:31:26 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.tests">
|
|
|
|
<arg value="./bin/OpenSim.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Framework.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-10-01 13:03:16 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.serialization.tests">
|
|
|
|
<arg value="./bin/OpenSim.Framework.Serialization.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Framework.Serialization.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.servers.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Framework.Servers.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2011-10-25 20:03:41 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindencaps.tests">
|
|
|
|
<arg value="./bin/OpenSim.Region.ClientStack.LindenCaps.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Region.ClientStack.LindenCaps.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Region.ClientStack.LindenUDP.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.scriptengine.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Region.ScriptEngine.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.coremodules.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Region.CoreModules.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2010-12-14 23:58:39 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.optionalmodules.tests">
|
2010-12-15 00:14:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.OptionalModules.Tests.dll" />
|
2010-12-14 23:58:39 +00:00
|
|
|
<arg value="-xml=test-results/OpenSim.Region.OptionalModules.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.framework.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.Framework.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Region.Framework.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2010-05-28 15:26:14 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.tests">
|
|
|
|
<arg value="./bin/OpenSim.Data.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Data.Tests.dll-Results.xml" />
|
2009-08-31 21:44:52 +00:00
|
|
|
</exec>
|
|
|
|
|
2011-12-05 21:04:17 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.capabilities.handlers.tests">
|
|
|
|
<arg value="./bin/OpenSim.Capabilities.Handlers.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Capabilities.Handlers.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2010-08-11 14:31:26 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.tests)==0}" />
|
2009-08-31 21:54:51 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" />
|
2011-12-08 20:55:38 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" />
|
2009-08-31 21:54:51 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" />
|
2010-12-14 23:58:39 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.optionalmodules.tests)==0}" />
|
2009-08-31 21:54:51 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" />
|
2010-05-28 15:26:14 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.tests)==0}" />
|
2011-12-05 21:04:17 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.capabilities.handlers.tests)==0}" />
|
2008-09-10 17:49:37 +00:00
|
|
|
</target>
|
|
|
|
|
2008-09-11 15:18:02 +00:00
|
|
|
<target name="doxygen">
|
|
|
|
<exec program="doxygen" workingdir="doc" commandline="doxygen.conf" />
|
|
|
|
</target>
|