forked from Keyfactor/ejbca-ce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.xmli
434 lines (399 loc) · 26.9 KB
/
test.xmli
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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
<?xml version="1.0"?>
<project name="ejbcatest" basedir=".">
<target name="test:run" description="run both stand-alone JUnit test cases and system test" depends="deleteDirectories">
<antcall target="test:runsa" inheritall="true" inheritrefs="true"><param name="aggregate.results" value="true"/></antcall>
<antcall target="test:runsys" inheritall="true" inheritrefs="true"><param name="aggregate.results" value="true"/></antcall>
<antcall target="createreport"/>
</target>
<target name="test:runsys" description="run system test, use -Dtest.includep11=true to include P11 tests" depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/systemtests" target="run" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestconfigdump-system" inheritall="true" inheritrefs="true"/>
<antcall target="optionalteststatedump" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestpeerconnector" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestplugins" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestplugins-ee" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestacme-system" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestrest-system" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestssh-system" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestcits-system" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
<!-- The name of the output from the profiling result will vary slightly -->
<fileset id="profilingtest.logfile.id" dir="${reports.base.dir}/test/html/org/ejbca/core/ejb" includes="*_ProfilingTest-out.html"/>
<property name="profilingtest.logfile" refid="profilingtest.logfile.id"/>
<echo message="Profiling results (when enabled) can be found in file://${reports.dir}/html/org/ejbca/core/ejb/${profilingtest.logfile}"/>
</target>
<target name="evaluateAggregate">
<condition property="aggregate.test.results" value="true">
<equals arg1="${aggregate.results}" arg2="true"/>
</condition>
</target>
<target name="deleteDirectories" depends="evaluateAggregate" unless="${aggregate.test.results}" >
<echo message="Deleting old test results."/>
<fail message="'reports.dir' is not set." unless="reports.dir" />
<delete dir="${reports.dir}" />
<mkdir dir="${reports.dir}" />
<mkdir dir="${reports.dir}/html"/>
</target>
<target name="test:runsa" description="run stand-alone JUnit test cases, use -Dtest.includep11=true to include P11 tests" depends="deleteDirectories">
<antcall target="optionaltestacme-unit" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/cesecore-common" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/cesecore-ejb" target="test:unit" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/cesecore-ejb-interface" target="test:unit" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/cesecore-entity" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-common" target="test-common" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-common-web" target="test-common-web" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-ejb" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-entity" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/healthcheck-war" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/plugins" target="test" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/plugins-ee" target="runsa" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestmsae-unit" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestrest-unit" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-ejb" target="test:unit" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/admin-gui" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestconfigdump-unit" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestct" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestcaa" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/ejbca-ejb-cli" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestssh-unit" inheritall="true" inheritrefs="true"/>
<antcall target="optionaltestcits-unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<condition property="configdump.exists"><available file="modules/configdump/build.xml" /></condition>
<target name="optionaltestconfigdump-system" if="${configdump.exists}">
<ant antfile="build.xml" dir="modules/configdump" target="test:system" inheritall="true" inheritrefs="true"/>
</target>
<target name="optionaltestconfigdump-unit" if="${configdump.exists}">
<ant antfile="build.xml" dir="modules/configdump" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<condition property="ct.exists"><available file="modules/ct/build.xml" /></condition>
<target name="optionaltestct" if="${ct.exists}">
<ant antfile="build.xml" dir="modules/ct" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="statedump.exists"><available file="modules/statedump/build.xml" /></condition>
<target name="optionalteststatedump" if="${statedump.exists}">
<antcall target="statedump" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/statedump" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="configdump.exists"><available file="modules/configdump/build.xml" /></condition>
<target name="optionaltestconfigdump" if="${configdump.exists}">
<antcall target="configdump" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/configdump" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="peerconnector.exists"><available file="modules/peerconnector/build.xml" /></condition>
<target name="optionaltestpeerconnector" if="${peerconnector.exists}">
<ant antfile="build.xml" dir="modules/peerconnector" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="plugins.exist"><available file="modules/plugins/build.xml" /></condition>
<target name="optionaltestplugins" if="${plugins.exist}">
<ant antfile="build.xml" dir="modules/plugins" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="plugins-ee.exist"><available file="modules/plugins-ee/build.xml" /></condition>
<target name="optionaltestplugins-ee" if="${plugins-ee.exist}">
<ant antfile="build.xml" dir="modules/plugins-ee" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="acme.exists"><available file="modules/acme"/></condition>
<target name="optionaltestacme-unit" if="${acme.exists}">
<ant antfile="build.xml" dir="modules/acme" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<target name="optionaltestacme-system" if="${acme.exists}">
<ant antfile="build.xml" dir="modules/acme" target="test:system" inheritall="true" inheritrefs="true"/>
</target>
<condition property="ejbca-msae.exists"><available file="modules/msae"/></condition>
<target name="optionaltestmsae-unit" if="${ejbca-msae.exists}">
<ant antfile="build.xml" dir="modules/msae" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<condition property="ejbca-rest-api.exists"><available file="modules/ejbca-rest-api"/></condition>
<target name="optionaltestrest-unit" if="${ejbca-rest-api.exists}">
<ant antfile="build.xml" dir="modules/ejbca-rest-api" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<target name="optionaltestrest-system" if="${ejbca-rest-api.exists}">
<ant antfile="build.xml" dir="modules/ejbca-rest-api" target="test:system" inheritall="true" inheritrefs="true"/>
</target>
<condition property="est.exists"><available file="modules/est"/></condition>
<target name="optionaltestest" if="${est.exists}">
<ant antfile="build.xml" dir="modules/est" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="caa.exists"><available file="modules/caa/build.xml" /></condition>
<target name="optionaltestcaa" if="${caa.exists}">
<ant antfile="build.xml" dir="modules/caa" target="test" inheritall="true" inheritrefs="true"/>
</target>
<condition property="ssh.exists"><available file="modules/ssh/build.xml" /></condition>
<target name="optionaltestssh-unit" if="${ssh.exists}">
<ant antfile="build.xml" dir="modules/ssh" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<target name="optionaltestssh-system" if="${ssh.exists}">
<ant antfile="build.xml" dir="modules/ssh" target="test:system" inheritall="true" inheritrefs="true"/>
</target>
<condition property="cits.exists"><available file="modules/cits/build.xml" /></condition>
<target name="optionaltestcits-unit" if="${cits.exists}">
<ant antfile="build.xml" dir="modules/cits" target="test:unit" inheritall="true" inheritrefs="true"/>
</target>
<target name="optionaltestcits-system" if="${cits.exists}">
<ant antfile="build.xml" dir="modules/cits" target="test:system" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:rungfver" description="run Glassfish JEE validation tool on the EJBCA EAR" depends="ejbca.ear, deleteDirectories">
<ant antfile="build.xml" dir="modules/systemtests" target="rungfver" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runone" description="run a single Test specified -Dtest.runone=classname" depends="deleteDirectories">
<fail message="'test.runone' is not set. Example -Dtest.runone=TestDnComponents . You can also use -Dtest.showoutput=true to send test output to console." unless="test.runone" />
<!-- Locate the right module where the test resides.. -->
<pathconvert property="test-fullname" dirsep="/" pathsep=" " setonempty="false">
<path>
<fileset dir="${ejbca.home}" id="test.runone.fileset">
<include name="modules/ejbca-ejb/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-entity/src-test/**/${test.runone}.java" />
<include name="modules/systemtests/src-test/**/${test.runone}.java" />
<include name="modules/statedump/src-test/**/${test.runone}.java" />
<include name="modules/clientToolBox/src-test/**/${test.runone}.java" />
<include name="modules/configdump/src-test/**/${test.runone}.java" />
<include name="modules/ct/src-test/**/${test.runone}.java" />
<include name="modules/peerconnector/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-common/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-common-web/src-test/**/${test.runone}.java" />
<include name="modules/cesecore-common/src-test/**/${test.runone}.java" />
<include name="modules/cesecore-ejb/src-test/**/${test.runone}.java" />
<include name="modules/cesecore-ejb-interface/src-test/**/${test.runone}.java" />
<include name="modules/cesecore-entity/src-test/**/${test.runone}.java" />
<include name="modules/cmpProxy/src-test/**/${test.runone}.java" />
<include name="modules/va/publisher/src-test/**/${test.runone}.java" />
<include name="modules/acme/src-test/**/${test.runone}.java" />
<include name="modules/acme/src-common-test/**/${test.runone}.java" />
<include name="modules/caa/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-ws-cli/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-rest-api/src-test/**/${test.runone}.java" />
<include name="modules/admin-gui/src-test/**/${test.runone}.java" />
<include name="modules/plugins/src-test/**/${test.runone}.java" />
<include name="modules/plugins-ee/src-test/**/${test.runone}.java" />
<include name="modules/cli-util/src-test/**/${test.runone}.java" />
<include name="modules/ejbca-ejb-cli/src-test/**/${test.runone}.java" />
<include name="modules/ssh/src-test/**/${test.runone}.java" />
<include name="modules/msae/src-test/**/${test.runone}.java" />
<include name="modules/cits/src-test/**/${test.runone}.java" />
</fileset>
</path>
<map from="${ejbca.home}/" to=""/>
</pathconvert>
<echo message="${test-fullname}"/>
<condition property="module" value="modules/ejbca-ejb">
<matches string="${test-fullname}" pattern="^modules/ejbca-ejb/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-entity">
<matches string="${test-fullname}" pattern="^modules/ejbca-entity/.*$"/>
</condition>
<condition property="module" value="modules/statedump">
<matches string="${test-fullname}" pattern="^modules/statedump/.*$"/>
</condition>
<condition property="module" value="modules/clientToolBox">
<matches string="${test-fullname}" pattern="^modules/clientToolBox/.*$"/>
</condition>
<condition property="module" value="modules/configdump">
<matches string="${test-fullname}" pattern="^modules/configdump/.*$"/>
</condition>
<condition property="module" value="modules/ct">
<matches string="${test-fullname}" pattern="^modules/ct/.*$"/>
</condition>
<condition property="module" value="modules/ssh">
<matches string="${test-fullname}" pattern="^modules/ssh/.*$"/>
</condition>
<condition property="module" value="modules/systemtests">
<matches string="${test-fullname}" pattern="^modules/systemtests/.*$"/>
</condition>
<condition property="module" value="modules/peerconnector">
<matches string="${test-fullname}" pattern="^modules/peerconnector/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-common">
<matches string="${test-fullname}" pattern="^modules/ejbca-common/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-common-web">
<matches string="${test-fullname}" pattern="^modules/ejbca-common-web/.*$"/>
</condition>
<condition property="module" value="modules/cesecore-common">
<matches string="${test-fullname}" pattern="^modules/cesecore-common/.*$"/>
</condition>
<condition property="module" value="modules/cesecore-ejb">
<matches string="${test-fullname}" pattern="^modules/cesecore-ejb/.*$"/>
</condition>
<condition property="module" value="modules/cesecore-ejb-interface">
<matches string="${test-fullname}" pattern="^modules/cesecore-ejb-interface/.*$"/>
</condition>
<condition property="module" value="modules/cesecore-entity">
<matches string="${test-fullname}" pattern="^modules/cesecore-entity/.*$"/>
</condition>
<condition property="module" value="modules/cmpProxy">
<matches string="${test-fullname}" pattern="^modules/cmpProxy/.*$"/>
</condition>
<condition property="module" value="modules/va">
<matches string="${test-fullname}" pattern="^modules/va/publisher/.*$"/>
</condition>
<condition property="test-buildfile" value="build-http.xml" else="build.xml">
<matches string="${test-fullname}" pattern="^modules/cmpProxy/.*$"/>
</condition>
<condition property="module" value="modules/acme">
<matches string="${test-fullname}" pattern="^modules/acme/.*$"/>
</condition>
<condition property="module" value="modules/est">
<matches string="${test-fullname}" pattern="^modules/est/.*$"/>
</condition>
<condition property="module" value="modules/caa">
<matches string="${test-fullname}" pattern="^modules/caa/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-ws-cli">
<matches string="${test-fullname}" pattern="^modules/ejbca-ws-cli/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-rest-api">
<matches string="${test-fullname}" pattern="^modules/ejbca-rest-api/.*$"/>
</condition>
<condition property="module" value="modules/admin-gui">
<matches string="${test-fullname}" pattern="^modules/admin-gui/.*$"/>
</condition>
<condition property="module" value="modules/plugins">
<matches string="${test-fullname}" pattern="^modules/plugins/.*$"/>
</condition>
<condition property="module" value="modules/plugins-ee">
<matches string="${test-fullname}" pattern="^modules/plugins-ee/.*$"/>
</condition>
<condition property="module" value="modules/cli-util">
<matches string="${test-fullname}" pattern="^modules/cli-util/.*$"/>
</condition>
<condition property="module" value="modules/ejbca-ejb-cli">
<matches string="${test-fullname}" pattern="^modules/ejbca-ejb-cli/.*$"/>
</condition>
<condition property="module" value="modules/msae">
<matches string="${test-fullname}" pattern="^modules/msae/.*$"/>
</condition>
<condition property="module" value="modules/cits">
<matches string="${test-fullname}" pattern="^modules/cits/.*$"/>
</condition>
<fail message="The requested test '${test.runone}' was not found." unless="module"/>
<ant antfile="${test-buildfile}" dir="${module}" target="runone" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runlots" description="run JUnit testcases that creates lots of users and certificates" >
<ant antfile="build.xml" dir="modules/systemtests" target="runlotsofusers" inheritall="true" inheritrefs="true"/>
<ant antfile="build.xml" dir="modules/systemtests" target="runperf" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runlotsperuser" description="run JUnit testcases that creates lots of users and certificates for each user">
<ant antfile="build.xml" dir="modules/systemtests" target="runlotsperuser" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runperf" description="run JUnit performance tests">
<ant antfile="build.xml" dir="modules/systemtests" target="runperf" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runweb" description="run JUnit web system tests" depends="deleteDirectories" >
<ant antfile="build.xml" dir="modules/systemtests" target="runweb" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runcmpra" description="run JUnit CMP RA system tests" depends="deleteDirectories" >
<ant antfile="build.xml" dir="modules/systemtests" target="runcmp" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:logstress" description="Run log stress tests." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/systemtests" target="runlogstress" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:runws" description="Run web service tests." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/systemtests" target="runws" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:dbschema" description="run JUnit test to validate the schema of the configured database" depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-entity" target="test-dbschema" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:statedump" description="run JUnit Statedump test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/statedump" target="test" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:configdump" description="run JUnit Configdump test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/configdump" inheritall="true" inheritrefs="true">
<target name="test:unit" />
<target name="test:system" />
</ant>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:msae" description="run JUnit MSAE test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/msae" inheritall="true" inheritrefs="true">
<target name="test:unit" />
</ant>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:cits" description="run JUnit CITS test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/cits" inheritall="true" inheritrefs="true">
<target name="test:unit" />
</ant>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:caa" description="run JUnit CAA test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/caa" inheritall="true" inheritrefs="true">
<target name="test" />
</ant>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:clientToolBox" description="run JUnit ClientToolBox tests." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/clientToolBox" inheritall="true" inheritrefs="true">
<target name="test:stress" />
</ant>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:ct" description="run JUnit Certificate Transparency test." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ct" target="test" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:pc" depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/peerconnector" target="test" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:vapub" depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/va" target="test" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:ejbca-rest-api" description="run all JUnit tests for ejbca-rest-api." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-rest-api" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:system:ejbca-rest-api" description="run all System tests for ejbca-rest-api." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-rest-api" target="test:system" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:ejbca-ejb" description="run all JUnit tests for ejbca-ejb module." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-ejb" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:acme" description="run all JUnit tests for ACME." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/acme" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:system:acme" description="run all System tests for ACME." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/acme" target="test:system" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:admingui" description="run all JUnit tests for CA UI." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/admin-gui" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:common-web" description="run all JUnit tests for ejbca-common-web." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-common-web" target="test-common-web" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:common" description="run all JUnit tests for ejbca-common." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-common" target="test-common" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:ejbca-ejb-cli" description="run all JUnit tests for ejbca-ejb-cli." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/ejbca-ejb-cli" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="test:unit:cesecore-ejb" description="run all JUnit tests for cesecore-ejb." depends="deleteDirectories">
<ant antfile="build.xml" dir="modules/cesecore-ejb" target="test:unit" inheritall="true" inheritrefs="true"/>
<antcall target="createreport" inheritall="true" inheritrefs="true"/>
</target>
<target name="createreport">
<junitreport todir="${reports.dir}">
<fileset dir="${reports.dir}">
<include name="TEST-*.xml" />
</fileset>
<report format="frames" todir="${reports.dir}/html" />
</junitreport>
<echo message="" />
<echo message="Results are available in file://${reports.dir}/html/index.html" />
</target>
</project>