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 -->
|
2008-04-23 07:00:07 +00:00
|
|
|
<property name="projectdir" value="opensim-0.5.5" />
|
2009-09-01 00:15:20 +00:00
|
|
|
<property name="nunitcmd" value="nunit-console" />
|
2007-09-17 11:25:47 +00:00
|
|
|
|
|
|
|
<target name="distdir">
|
|
|
|
<delete dir="${projectdir}" />
|
|
|
|
<copy todir="${projectdir}">
|
2007-09-17 08:46:52 +00:00
|
|
|
<fileset basedir=".">
|
2007-09-17 12:14:23 +00:00
|
|
|
<include name="ThirdPartyLicenses/**" />
|
|
|
|
<include name="CONTRIBUTORS.txt" />
|
2007-09-17 13:06:07 +00:00
|
|
|
<include name="README" />
|
2007-09-17 11:25:47 +00:00
|
|
|
<include name="OpenSim/**/*.cs" />
|
2007-09-17 11:55:09 +00:00
|
|
|
<include name="**/*.build" />
|
|
|
|
<include name="**/*.csproj" />
|
|
|
|
<include name="**/*.csproj.user" />
|
|
|
|
<include name="**/*.sln" />
|
2007-09-17 11:25:47 +00:00
|
|
|
<include name="bin/*.dll" />
|
|
|
|
<include name="bin/*.so" />
|
|
|
|
<include name="bin/*.config" />
|
2007-09-17 11:55:09 +00:00
|
|
|
<include name="bin/assets/**" />
|
2007-09-17 12:14:23 +00:00
|
|
|
<include name="bin/data/**" />
|
|
|
|
<include name="bin/OpenSim*xml" />
|
|
|
|
<!-- the next is to exclude built libs -->
|
2007-09-17 11:55:09 +00:00
|
|
|
<exclude name="bin/OpenSim.*dll" />
|
|
|
|
<include name="bin/OpenSim.ini" />
|
2007-09-17 12:14:23 +00:00
|
|
|
<include name="bin/defaultstripe.png" />
|
2007-09-17 08:46:52 +00:00
|
|
|
</fileset>
|
2007-09-17 11:25:47 +00:00
|
|
|
</copy>
|
2007-09-17 12:14:23 +00:00
|
|
|
<touch file="${projectdir}/bin/startup_commands.txt" />
|
2007-09-17 11:25:47 +00:00
|
|
|
</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 -->
|
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.communications.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Communications.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.communications.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}" />
|
|
|
|
|
2009-10-09 15:54:50 +00:00
|
|
|
<!--
|
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-10-09 15:54:50 +00:00
|
|
|
-->
|
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
|
|
|
|
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
|
|
|
|
2009-09-04 18:22:09 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="true" resultproperty="testresult.opensim.data.sqlite.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-04 17:51:25 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.sqlite.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.data.mysql.tests">
|
2009-09-01 00:15:20 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
|
|
|
|
</exec>
|
2009-09-03 18:41:38 +00:00
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.mysql.tests)==0}" />
|
2009-09-01 00:15:20 +00:00
|
|
|
|
2008-09-04 22:24:45 +00:00
|
|
|
</target>
|
|
|
|
|
2008-10-22 17:45:43 +00:00
|
|
|
<target name="test-cov" depends="build">
|
2008-10-22 17:45:49 +00:00
|
|
|
<!-- Code Coverage Test. Prototype, only works with mono 1.2. Instructions in http://opensimulator.org/wiki/Automated_Testing -->
|
2008-10-22 17:45:43 +00:00
|
|
|
<mkdir dir="cov" failonerror="false" />
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Framework.Servers.cov,+[OpenSim.Framework.Servers]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Framework.Servers" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Framework.Servers ./cov/OpenSim.Framework.Servers.cov" />
|
|
|
|
</exec>
|
2008-12-10 17:43:45 +00:00
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Framework.Communications.cov,+[OpenSim.Framework.Communications]" />
|
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
|
|
|
<arg value="./bin/OpenSim.Framework.Communications.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Framework.Communications" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Framework.Servers ./cov/OpenSim.Framework.Communications.cov" />
|
|
|
|
</exec>
|
2008-10-22 17:45:43 +00:00
|
|
|
|
2009-10-09 15:54:50 +00:00
|
|
|
<!--
|
2008-10-22 17:45:43 +00:00
|
|
|
<exec program="mono">
|
2009-10-09 15:54:50 +00:00
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ClientStack.LindenUDP.cov,+[OpenSim.Region.ClientStack.LindenUDP]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Region.ClientStack.LindenUDP" />
|
|
|
|
<exec program="monocov">
|
2009-10-09 15:54:50 +00:00
|
|
|
<arg value="--export-html=./cov/OpenSim.Region.ClientStack.LindenUDP ./cov/OpenSim.Region.ClientStack.LindenUDP.cov" />
|
2008-10-22 17:45:43 +00:00
|
|
|
</exec>
|
2009-10-09 15:54:50 +00:00
|
|
|
-->
|
2008-10-22 17:45:43 +00:00
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.cov,+[OpenSim.Region.ScriptEngine.Shared]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
|
|
|
|
</exec>
|
2008-10-22 17:45:49 +00:00
|
|
|
<delete dir="./cov/OpenSim.Region.ScriptEngine.Shared" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared ./cov/OpenSim.Region.ScriptEngine.Shared.cov" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov,+[OpenSim.Region.ScriptEngine.Shared.CodeTools]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools ./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
2009-02-10 13:10:57 +00:00
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Region.CoreModules.cov,+[OpenSim.Region.CoreModules]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2009-02-10 13:10:57 +00:00
|
|
|
<arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" />
|
2008-10-22 17:45:43 +00:00
|
|
|
</exec>
|
2009-02-10 13:10:57 +00:00
|
|
|
<delete dir="./cov/OpenSim.Region.CoreModules" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<exec program="monocov">
|
2009-02-10 13:10:57 +00:00
|
|
|
<arg value="--export-html=./cov/OpenSim.Region.CoreModules ./cov/OpenSim.Region.CoreModules.cov" />
|
2008-10-22 17:45:43 +00:00
|
|
|
</exec>
|
2009-02-06 21:37:10 +00:00
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Region.Framework.cov,+[OpenSim.Region.Framework]" />
|
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
|
|
|
<arg value="./bin/OpenSim.Region.Framework.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Region.Framework" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Region.Framework ./cov/OpenSim.Region.Framework.cov" />
|
|
|
|
</exec>
|
2008-10-22 17:45:43 +00:00
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Data.SQLite.cov,+[OpenSim.Data.SQLite]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Data.SQLite" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Data.SQLite ./cov/OpenSim.Data.SQLite.cov" />
|
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec program="mono">
|
|
|
|
<arg value="--debug" />
|
|
|
|
<arg value="--profile=monocov:outfile=./cov/OpenSim.Data.MySQL.cov,+[OpenSim.Data.MySQL.Tests]" />
|
2008-10-22 17:45:49 +00:00
|
|
|
<arg value="/usr/lib/nunit/nunit-console.exe" />
|
2008-10-22 17:45:43 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
|
|
|
|
</exec>
|
|
|
|
<delete dir="./cov/OpenSim.Data.MySQL" />
|
|
|
|
<exec program="monocov">
|
|
|
|
<arg value="--export-html=./cov/OpenSim.Data.MySQL ./cov/OpenSim.Data.MySQL.cov" />
|
2008-12-22 21:01:56 +00:00
|
|
|
</exec>
|
2008-12-22 20:53:23 +00:00
|
|
|
|
2008-10-22 17:45:49 +00:00
|
|
|
<delete file="C:\NUnitPrimaryTrace.txt" failonerror="false" />
|
|
|
|
<delete file="TestResult.xml" failonerror="false" />
|
2008-12-22 20:53:23 +00:00
|
|
|
|
2008-10-22 17:45:43 +00:00
|
|
|
</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 -->
|
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-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.communications.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Framework.Communications.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Framework.Communications.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>
|
|
|
|
|
2009-10-09 15:54:50 +00:00
|
|
|
<!--
|
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-10-09 15:54:50 +00:00
|
|
|
-->
|
2009-08-31 21:44:52 +00:00
|
|
|
|
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>
|
|
|
|
|
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>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.sqlite.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Data.SQLite.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
2009-09-01 00:15:20 +00:00
|
|
|
<exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.mysql.tests">
|
2009-08-31 21:44:52 +00:00
|
|
|
<arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
|
|
|
|
<arg value="-xml=test-results/OpenSim.Data.MySQL.Tests.dll-Results.xml" />
|
|
|
|
</exec>
|
|
|
|
|
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.communications.tests)==0}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" />
|
2009-10-09 17:19:51 +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}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.sqlite.tests)==0}" />
|
|
|
|
<fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.mysql.tests)==0}" />
|
|
|
|
|
2008-09-10 17:49:37 +00:00
|
|
|
</target>
|
2009-08-31 21:44:52 +00:00
|
|
|
<!-- <exec program="nunit-console.exe" failonerror="false" resultproperty="testresult.acceptancetestassembly"> -->
|
|
|
|
<!-- <arg value="AcceptanceTestAssembly.dll" /> -->
|
|
|
|
<!-- <arg value="/xml=AcceptanceTestAssembly-Results.xml" /> -->
|
|
|
|
<!-- </exec> -->
|
|
|
|
|
|
|
|
<!-- <fail message="Failures reported in unit tests." unless="${int::parse(testresult.unittestassembly)==0}" /> -->
|
|
|
|
<!-- <fail message="Failures reported in acceptance tests." unless="${int::parse(testresult.acceptancetestassembly)==0}" /> -->
|
|
|
|
<!-- </target> -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <nunit2 failonerror="true" verbose="true"> -->
|
|
|
|
<!-- <formatter type="Xml" usefile="true" extension=".xml" outputdir="./test-results" /> -->
|
|
|
|
<!-- <test> -->
|
|
|
|
<!-- <assemblies> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Framework.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Framework.Communications.Tests.dll"/> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Framework.Servers.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Region.CoreModules.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Region.Framework.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Data.SQLite.Tests.dll" /> -->
|
|
|
|
<!-- <include name="./bin/OpenSim.Data.MySQL.Tests.dll" /> -->
|
|
|
|
<!-- </assemblies> -->
|
|
|
|
<!-- </test> -->
|
|
|
|
<!-- </nunit2> -->
|
|
|
|
<!-- </target> -->
|
2008-09-10 17:49:37 +00:00
|
|
|
|
2008-09-11 15:18:02 +00:00
|
|
|
<target name="doxygen">
|
|
|
|
<exec program="doxygen" workingdir="doc" commandline="doxygen.conf" />
|
|
|
|
</target>
|
|
|
|
|
2008-09-10 17:49:37 +00:00
|
|
|
|
2007-09-17 11:25:47 +00:00
|
|
|
<target name="dist" depends="distdir">
|
|
|
|
<zip zipfile="${projectdir}.zip">
|
|
|
|
<fileset basedir=".">
|
|
|
|
<include name="${projectdir}/**" />
|
|
|
|
</fileset>
|
|
|
|
</zip>
|
|
|
|
<tar destfile="${projectdir}.tar.gz" compression="GZip">
|
|
|
|
<fileset basedir=".">
|
|
|
|
<include name="${projectdir}/**" />
|
|
|
|
</fileset>
|
|
|
|
</tar>
|
2007-09-17 08:46:52 +00:00
|
|
|
</target>
|