aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorSean Dague2008-10-22 17:45:43 +0000
committerSean Dague2008-10-22 17:45:43 +0000
commit50180984fad8aed21233a7a4301bbd0723b7f8c9 (patch)
treea7071066b4e7043ae5eb27c6d0c4f75c7df1bfa8
parent- Fix 3 comments starting with : instead of ; (diff)
downloadopensim-SC_OLD-50180984fad8aed21233a7a4301bbd0723b7f8c9.zip
opensim-SC_OLD-50180984fad8aed21233a7a4301bbd0723b7f8c9.tar.gz
opensim-SC_OLD-50180984fad8aed21233a7a4301bbd0723b7f8c9.tar.bz2
opensim-SC_OLD-50180984fad8aed21233a7a4301bbd0723b7f8c9.tar.xz
- Inserted code coverage monocov. To run do nant test-cov.
Creates a new directory cov and exports to html files in subdirectories.
Diffstat (limited to '')
-rw-r--r--.gitignore1
-rw-r--r--.nant/local.include82
2 files changed, 83 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index d2e4fa4..145eba7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -30,4 +30,5 @@ bin/OpenSim.log
30bin/Physics* 30bin/Physics*
31bin/Terrain* 31bin/Terrain*
32bin/estate_settings.xml 32bin/estate_settings.xml
33cov/*
33*~ 34*~
diff --git a/.nant/local.include b/.nant/local.include
index a54adf2..8963772 100644
--- a/.nant/local.include
+++ b/.nant/local.include
@@ -47,6 +47,88 @@
47 </nunit2> 47 </nunit2>
48</target> 48</target>
49 49
50<target name="test-cov" depends="build">
51 <!-- Code Coverage Test -->
52 <mkdir dir="cov" failonerror="false" />
53 <exec program="mono">
54 <arg value="--debug" />
55 <arg value="--profile=monocov:outfile=./cov/OpenSim.Framework.Servers.cov,+[OpenSim.Framework.Servers]" />
56 <arg value="/usr/lib/nunit2/nunit-console.exe" />
57 <arg value="./bin/OpenSim.Framework.Servers.Tests.dll" />
58 </exec>
59 <delete dir="./cov/OpenSim.Framework.Servers" />
60 <exec program="monocov">
61 <arg value="--export-html=./cov/OpenSim.Framework.Servers ./cov/OpenSim.Framework.Servers.cov" />
62 </exec>
63
64 <exec program="mono">
65 <arg value="--debug" />
66 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ClientStack.LindenUDP.cov,+[OpenSim.Region.ClientStack.LindenUDP]" />
67 <arg value="/usr/lib/nunit2/nunit-console.exe" />
68 <arg value="./bin/OpenSim.Region.ClientStack.LindenUDP.Tests.dll" />
69 </exec>
70 <delete dir="./cov/OpenSim.Region.ClientStack.LindenUDP" />
71 <exec program="monocov">
72 <arg value="--export-html=./cov/OpenSim.Region.ClientStack.LindenUDP ./cov/OpenSim.Region.ClientStack.LindenUDP.cov" />
73 </exec>
74
75 <exec program="mono">
76 <arg value="--debug" />
77 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.cov,+[OpenSim.Region.ScriptEngine.Shared]" />
78 <arg value="/usr/lib/nunit2/nunit-console.exe" />
79 <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.Tests.dll" />
80 </exec>
81 <delete dir="./cov/penSim.Region.ScriptEngine.Shared" />
82 <exec program="monocov">
83 <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared ./cov/OpenSim.Region.ScriptEngine.Shared.cov" />
84 </exec>
85
86 <exec program="mono">
87 <arg value="--debug" />
88 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov,+[OpenSim.Region.ScriptEngine.Shared.CodeTools]" />
89 <arg value="/usr/lib/nunit2/nunit-console.exe" />
90 <arg value="./bin/OpenSim.Region.ScriptEngine.Shared.CodeTools.Tests.dll" />
91 </exec>
92 <delete dir="./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools" />
93 <exec program="monocov">
94 <arg value="--export-html=./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools ./cov/OpenSim.Region.ScriptEngine.Shared.CodeTools.cov" />
95 </exec>
96
97 <exec program="mono">
98 <arg value="--debug" />
99 <arg value="--profile=monocov:outfile=./cov/OpenSim.Region.Environment.cov,+[OpenSim.Region.Environment]" />
100 <arg value="/usr/lib/nunit2/nunit-console.exe" />
101 <arg value="./bin/OpenSim.Region.Environment.Tests.dll" />
102 </exec>
103 <delete dir="./cov/OpenSim.Region.Environment" />
104 <exec program="monocov">
105 <arg value="--export-html=./cov/OpenSim.Region.Environment ./cov/OpenSim.Region.Environment.cov" />
106 </exec>
107
108 <exec program="mono">
109 <arg value="--debug" />
110 <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.SQLite.cov,+[OpenSim.Data.SQLite]" />
111 <arg value="/usr/lib/nunit2/nunit-console.exe" />
112 <arg value="./bin/OpenSim.Data.SQLite.Tests.dll" />
113 </exec>
114 <delete dir="./cov/OpenSim.Data.SQLite" />
115 <exec program="monocov">
116 <arg value="--export-html=./cov/OpenSim.Data.SQLite ./cov/OpenSim.Data.SQLite.cov" />
117 </exec>
118
119 <exec program="mono">
120 <arg value="--debug" />
121 <arg value="--profile=monocov:outfile=./cov/OpenSim.Data.MySQL.cov,+[OpenSim.Data.MySQL.Tests]" />
122 <arg value="/usr/lib/nunit2/nunit-console.exe" />
123 <arg value="./bin/OpenSim.Data.MySQL.Tests.dll" />
124 </exec>
125 <delete dir="./cov/OpenSim.Data.MySQL" />
126 <exec program="monocov">
127 <arg value="--export-html=./cov/OpenSim.Data.MySQL ./cov/OpenSim.Data.MySQL.cov" />
128 </exec>
129</target>
130
131
50<target name="test-xml" depends="build"> 132<target name="test-xml" depends="build">
51 <nunit2 failonerror="true" verbose="true"> 133 <nunit2 failonerror="true" verbose="true">
52 <formatter type="Xml" usefile="true" extension=".xml" outputdir="./test-results" /> 134 <formatter type="Xml" usefile="true" extension=".xml" outputdir="./test-results" />