diff options
author | Sean Dague | 2009-09-03 14:55:54 -0400 |
---|---|---|
committer | Sean Dague | 2009-09-03 14:55:54 -0400 |
commit | 9bd0106333771f084ce2774dac8e264d0d91f772 (patch) | |
tree | d506e3212fa70fe965522af3b7a25750af8dd273 /.nant | |
parent | If a test dll fails, stop immediately rather than trying all the other test dlls (diff) | |
download | opensim-SC-9bd0106333771f084ce2774dac8e264d0d91f772.zip opensim-SC-9bd0106333771f084ce2774dac8e264d0d91f772.tar.gz opensim-SC-9bd0106333771f084ce2774dac8e264d0d91f772.tar.bz2 opensim-SC-9bd0106333771f084ce2774dac8e264d0d91f772.tar.xz |
some more tooling around on nant / nunit to make it a bit cleaner
Diffstat (limited to '.nant')
-rw-r--r-- | .nant/local.include | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/.nant/local.include b/.nant/local.include index 6ad893a..58d1ad1 100644 --- a/.nant/local.include +++ b/.nant/local.include | |||
@@ -34,50 +34,55 @@ | |||
34 | <setenv name="MONO_THREADS_PER_CPU" value="100" /> | 34 | <setenv name="MONO_THREADS_PER_CPU" value="100" /> |
35 | 35 | ||
36 | <!-- Unit Test Assembly --> | 36 | <!-- Unit Test Assembly --> |
37 | <!-- if you want to add more unit tests it's important that you add | ||
38 | the assembly here as an exec, and you add the fail clause later. | ||
39 | This lets all the unit tests run and tells you if they fail at the | ||
40 | end, instead of stopping short --> | ||
37 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.tests"> | 41 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.tests"> |
38 | <arg value="./bin/OpenSim.Framework.Tests.dll" /> | 42 | <arg value="./bin/OpenSim.Framework.Tests.dll" /> |
39 | </exec> | 43 | </exec> |
40 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" /> | ||
41 | 44 | ||
42 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.communications.tests"> | 45 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.communications.tests"> |
43 | <arg value="./bin/OpenSim.Framework.Communications.Tests.dll" /> | 46 | <arg value="./bin/OpenSim.Framework.Communications.Tests.dll" /> |
44 | </exec> | 47 | </exec> |
45 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.communications.tests)==0}" /> | ||
46 | 48 | ||
47 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.servers.tests"> | 49 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.framework.servers.tests"> |
48 | <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" /> | 50 | <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" /> |
49 | </exec> | 51 | </exec> |
50 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" /> | ||
51 | 52 | ||
52 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests"> | 53 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.clientstack.lindenudp.tests"> |
53 | <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> | 54 | <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" /> |
54 | </exec> | 55 | </exec> |
55 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" /> | ||
56 | 56 | ||
57 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.scriptengine.tests"> | 57 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.scriptengine.tests"> |
58 | <arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> | 58 | <arg value="./bin/OpenSim.Region.ScriptEngine.Tests.dll" /> |
59 | </exec> | 59 | </exec> |
60 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" /> | ||
61 | 60 | ||
62 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.coremodules.tests"> | 61 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.coremodules.tests"> |
63 | <arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" /> | 62 | <arg value="./bin/OpenSim.Region.CoreModules.Tests.dll" /> |
64 | </exec> | 63 | </exec> |
65 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" /> | ||
66 | 64 | ||
67 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.framework.tests"> | 65 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.region.framework.tests"> |
68 | <arg value="./bin/OpenSim.Region.Framework.Tests.dll" /> | 66 | <arg value="./bin/OpenSim.Region.Framework.Tests.dll" /> |
69 | </exec> | 67 | </exec> |
70 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" /> | ||
71 | 68 | ||
72 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.sqlite.tests"> | 69 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.sqlite.tests"> |
73 | <arg value="./bin/OpenSim.Data.SQLite.Tests.dll" /> | 70 | <arg value="./bin/OpenSim.Data.SQLite.Tests.dll" /> |
74 | </exec> | 71 | </exec> |
75 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.sqlite.tests)==0}" /> | ||
76 | 72 | ||
77 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.mysql.tests"> | 73 | <exec program="${nunitcmd}" failonerror="false" resultproperty="testresult.opensim.data.mysql.tests"> |
78 | <arg value="./bin/OpenSim.Data.MySQL.Tests.dll" /> | 74 | <arg value="./bin/OpenSim.Data.MySQL.Tests.dll" /> |
79 | </exec> | 75 | </exec> |
76 | |||
77 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.communications.tests)==0}" /> | ||
78 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.tests)==0}" /> | ||
79 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.sqlite.tests)==0}" /> | ||
80 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.mysql.tests)==0}" /> | 80 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.data.mysql.tests)==0}" /> |
81 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.framework.tests)==0}" /> | ||
82 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.coremodules.tests)==0}" /> | ||
83 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.clientstack.lindenudp.tests)==0}" /> | ||
84 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.region.scriptengine.tests)==0}" /> | ||
85 | <fail message="Failures reported in unit tests." unless="${int::parse(testresult.opensim.framework.servers.tests)==0}" /> | ||
81 | 86 | ||
82 | </target> | 87 | </target> |
83 | 88 | ||