Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

[r10699]: branches / allad / jsr-225 / build / scripts / junit.xml Maximize Restore History

Download this file

junit.xml    363 lines (302 with data), 16.4 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================= -->
<!-- eXist build file : Run jUnit tests -->
<!-- ======================================================================= -->
<!-- $Id: junit.xml 10699 2009-12-05 18:32:39Z deliriumsky $ -->
<project basedir="../.." default="test" name="jUnit tests">
<description>jUnit tests for eXist</description>
<!-- import common targets -->
<import file="../../build.xml"/>
<path id="classpath.junit">
<pathelement path="${junit.reports}/classes"/>
</path>
<condition property="java14-only">
<equals arg1="${ant.java.version}" arg2="1.4"/>
</condition>
<target name="test"
depends="check-java-version, test-prepare, test-local, test-fluent, test-indexing, test-jetty, test-concurrent, test-remote, test-recovery, test-wrapup"
description="Run jUnit tests"/>
<!-- Extra jUnit properties -->
<property name="junit.reports.dat" value="${junit.reports}/junit/data"/>
<property name="junit.reports.html" value="${junit.reports}/junit/html"/>
<target name="test-compile" unless="java14-only" >
<mkdir dir="${junit.reports}/classes"/>
<javac debug="${build.debug}" deprecation="${build.deprecation}"
destdir="${junit.reports}/classes" encoding="UTF-8"
optimize="${build.optimize}" srcdir="${junit.reports}/src"
source="1.5" target="1.5">
<classpath>
<path refid="classpath.core"/>
<path refid="classpath.jetty"/>
</classpath>
</javac>
<copy todir="${junit.reports}/classes/org/exist/performance/ant"
file="${junit.reports}/src/org/exist/performance/ant/antlib.xml"/>
<copy todir="${junit.reports}/classes/org/exist/performance"
file="${junit.reports}/src/org/exist/performance/log2html.xql"/>
<ant antfile="build.xml" dir="extensions/indexes" target="compile-tests"/>
</target>
<target name="check-java-version" if="java14-only">
<echo message="Java version warning"/>
<echo message="--------------------"/>
<echo message="Java 5 is required to compile and run the test suite. Your version is ${ant.java.version}."/>
<echo message="You can still run and compile eXist itself, but not the test cases."/>
<fail message="Cannot run test suite."/>
</target>
<!-- Seperate target for creating folders -->
<target name="test-prepare" depends="jar,test-compile">
<delete failonerror="false">
<fileset dir="webapp/WEB-INF/data" includes="*.dbx,*.log"/>
</delete>
<delete dir="${junit.reports.dat}"/>
<delete dir="${junit.reports.html}"/>
<!--mkdir dir="${junit.reports}"/-->
<mkdir dir="${junit.reports}/classes"/>
<mkdir dir="${junit.reports.dat}"/>
<mkdir dir="${junit.reports.html}"/>
</target>
<!-- Generate HTML reports -->
<target name="test-wrapup">
<echo message="-----------------------------"/>
<echo message="Creating reports, please wait"/>
<echo message="-----------------------------"/>
<junitreport todir="${junit.reports.dat}">
<fileset dir="${junit.reports.dat}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${junit.reports.html}"/>
</junitreport>
</target>
<!-- Test set 1 : local database instance -->
<target name="test-local">
<echo message="------------------------------------------"/>
<echo message="Running tests on a local database instance"/>
<echo message="------------------------------------------"/>
<junit haltonfailure="false" printsummary="yes" showoutput="${junit.output}" maxmemory="${junit.forked.VM.maxmemory}">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<test fork="yes" name="org.exist.xmldb.XmldbLocalTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.xupdate.AllXupdateTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.xquery.AllXqueryTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.xquery.OptimizerTest" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.collections.triggers.AllTriggerTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.collections.AllCollectionTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.fulltext.AllFulltextTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.security.XMLDBSecurityTest" todir="${junit.reports.dat}"/>
<!-- Execute all other tests except those that have to be called manually. -->
<batchtest fork="yes" todir="${junit.reports.dat}">
<fileset dir="${junit.reports}/src">
<include name="**/*Test.java"/>
<include name="org/exist/*/*Test.java"/>
<exclude name="**/concurrent/**/*.java"/>
<exclude name="**/xmldb/*.java"/>
<exclude name="**/xupdate/*.java"/>
<exclude name="**/xquery/*.java"/>
<exclude name="**/xmlrpc/*.java"/>
<exclude name="**/http/*.java"/>
<exclude name="**/storage/*.java"/>
<exclude name="**/storage/serializers/*.java"/>
<exclude name="**/storage/lock/*.java"/>
<exclude name="**/soap/*.java"/>
<exclude name="**/numbering/*.java"/>
<exclude name="**/collections/*.java"/>
<exclude name="**/security/*.java"/>
<exclude name="org/exist/*.java"/>
<exclude name="**/fulltext/**/*.java"/>
</fileset>
</batchtest>
</junit>
</target>
<!-- Test set 2 : jetty server -->
<target name="test-jetty">
<echo message="------------------------------------------"/>
<echo message="Running tests on a jetty server"/>
<echo message="------------------------------------------"/>
<junit haltonfailure="false" printsummary="yes" showoutput="${junit.output}" maxmemory="${junit.forked.VM.maxmemory}">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest fork="yes" todir="${junit.reports.dat}">
<fileset dir="${junit.reports}/src">
<include name="org/exist/soap/*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<!-- Test set 3 : concurrent tests -->
<target name="test-concurrent">
<delete failonerror="false">
<fileset dir="webapp/WEB-INF/data" includes="*.dbx"/>
</delete>
<echo message="-----------------"/>
<echo message="Concurrency tests"/>
<echo message="-----------------"/>
<junit haltonfailure="false" printsummary="on" showoutput="${junit.output}" fork="no">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<test name="org.exist.xmldb.concurrent.AllConcurrentTests" todir="${junit.reports.dat}"/>
</junit>
</target>
<!-- Test set 4 : recovery tests -->
<target name="test-recovery">
<echo message="--------------"/>
<echo message="Recovery tests"/>
<echo message="--------------"/>
<junit haltonfailure="false" printsummary="on" showoutput="${junit.output}" fork="yes" maxmemory="${junit.forked.VM.maxmemory}">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<test name="org.exist.storage.AllStorageTests" todir="${junit.reports.dat}"/>
</junit>
</target>
<!-- Test set 5: tests on custom index modules -->
<target name="test-indexing" depends="prepare-extensions">
<ant antfile="build.xml" dir="extensions/indexes" target="test"/>
</target>
<target name="test-fluent" depends="prepare-extensions">
<ant antfile="build.xml" dir="extensions/fluent" target="test"/>
</target>
<!-- Helper target for starting server -->
<target name="start-server">
<echo message="---------------------------------------"/>
<echo message="Starting stand-alone database server..."/>
<echo message="---------------------------------------"/>
<delete failonerror="false">
<fileset dir="webapp/WEB-INF/data" includes="*.dbx"/>
</delete>
<java classname="org.exist.StandaloneServer">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<!--arg value="-d"/-->
</java>
<echo>Server started.</echo>
</target>
<!-- Test set 5 : tests on remote server -->
<target name="test-remote" depends="jar">
<mkdir dir="${junit.reports}"/>
<echo message="--------------------------------"/>
<echo message="Running tests on remote database"/>
<echo message="--------------------------------"/>
<junit haltonfailure="false" printsummary="yes" showoutput="${junit.output}" maxmemory="${junit.forked.VM.maxmemory}">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<test fork="yes" name="org.exist.xmlrpc.AllXmlRpcTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.xmldb.XmldbRemoteTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.xquery.XqueryRemoteTests" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.http.RESTServiceTest" todir="${junit.reports.dat}"/>
<test fork="yes" name="org.exist.storage.XIncludeSerializerTest" todir="${junit.reports.dat}"/>
</junit>
</target>
<target name="extra-tests">
<echo message="------------------------------------------"/>
<echo message="Running additional tests, which may take some time"/>
<echo message="------------------------------------------"/>
<junit haltonfailure="false" printsummary="yes" showoutput="${junit.output}" maxmemory="${junit.forked.VM.maxmemory}">
<sysproperty key="exist.home" value="${basedir}" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<formatter type="plain"/>
<formatter type="xml"/>
<test fork="yes" name="org.exist.xquery.XQueryUpdateTest" todir="${junit.reports.dat}"/>
</junit>
</target>
<!-- Helper target for stopping server -->
<!-- This target must be called after all tests because it shutsdown -->
<!-- the current Jvm -->
<target name="test-shutdown-server">
<!-- Register Ant tasks for eXist -->
<typedef resource="org/exist/ant/antlib.xml" uri="http://exist-db.org/ant">
<classpath refid="classpath.core"/>
<classpath refid="classpath.junit"/>
</typedef>
<echo message="Shutting down the server ..."/>
<xmldb:shutdown xmlns:xmldb="http://exist-db.org/ant"
uri="xmldb:exist://localhost:8088/xmlrpc/db"
user="admin" password=""/>
<sleep seconds="10"/>
</target>
<!-- Test set 6 : xqj/jsr225 tests -->
<target name="prepare-jsr225">
<mkdir dir="${junit.reports}/jsr225/oracle"/>
<get src="http://www.oracle.com/technology/tech/xml/xquery/xqj/xqjtck-20080114.zip"
dest="${junit.reports}/jsr225/oracle/xqjtck.zip" verbose="true" usetimestamp="true"/>
<unzip src="${junit.reports}/jsr225/oracle/xqjtck.zip" dest="${junit.reports}/jsr225/oracle/xqjtck"/>
<get src="http://www.oracle.com/technology/tech/xml/xquery/xqj/xqjri-20080114.zip"
dest="${junit.reports}/jsr225/oracle/xqjjri.zip" verbose="true" usetimestamp="true"/>
<unzip src="${junit.reports}/jsr225/oracle/xqjjri.zip" dest="${junit.reports}/jsr225/oracle/xqjjri"/>
</target>
<target name="test-jsr225-local">
<delete failonerror="false">
<fileset dir="webapp/WEB-INF/data" includes="*.dbx"/>
</delete>
<path id="classpath.jsr225">
<!-- pathelement path="${junit.reports}/jsr225/oracle/xqjjri/xqjapi.jar"/ -->
<pathelement path="${junit.reports}/jsr225/oracle/xqjtck/lib/xqjtck.jar"/>
</path>
<echo message="-------------------"/>
<echo message="JSR-225 / XQT tests"/>
<echo message="-------------------"/>
<junit haltonfailure="false" printsummary="on" showoutput="${junit.output}" fork="no">
<sysproperty key="exist.home" value="${basedir}" />
<sysproperty key="com.oracle.xqj.tck.datasource" value="${junit.reports}/jsr225/local.properties" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<classpath refid="classpath.jsr225"/>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest fork="no" todir="${junit.reports.dat}">
<fileset dir="${junit.reports}/jsr225/oracle/xqjtck/src">
<include name="**/AllTests.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-jsr225-remote">
<delete failonerror="false">
<fileset dir="webapp/WEB-INF/data" includes="*.dbx"/>
</delete>
<path id="classpath.jsr225">
<!-- pathelement path="${junit.reports}/jsr225/oracle/xqjjri/xqjapi.jar"/ -->
<pathelement path="${junit.reports}/jsr225/oracle/xqjtck/lib/xqjtck.jar"/>
</path>
<echo message="-------------------"/>
<echo message="JSR-225 / XQT tests"/>
<echo message="-------------------"/>
<junit haltonfailure="false" printsummary="on" showoutput="${junit.output}" fork="no">
<sysproperty key="exist.home" value="${basedir}" />
<sysproperty key="com.oracle.xqj.tck.datasource" value="${junit.reports}/jsr225/remote.properties" />
<classpath refid="classpath.core"/>
<classpath refid="classpath.jetty"/>
<classpath refid="classpath.junit"/>
<classpath refid="classpath.jsr225"/>
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest fork="no" todir="${junit.reports.dat}">
<fileset dir="${junit.reports}/jsr225/oracle/xqjtck/src">
<include name="**/AllTests.java"/>
</fileset>
</batchtest>
</junit>
</target>
</project>