Project

Profile

Help

How to connect?
Download (46.3 KB) Statistics
| Branch: | Tag: | Revision:

he / tags / 9.8.0.8 / build / testing-j.xml @ 02f8308b

1
<?xml version="1.0" encoding="UTF-8"?>
2

    
3
<project basedir="." default="all" name="Test Saxon for the Java platform"
4
    xmlns:dn="antlib:org.apache.ant.dotnet">
5

    
6
    
7
    <import file="build-constants.xml"/>  
8
    <import file="build-j.xml"/>
9

    
10

    
11
    <property name="temp-output.dir" value="${temp.dir}/test-output"/>
12

    
13
    <!-- build directory for this version -->
14
    <property name="build.dir" value="${repository}/build98"/>
15

    
16
    <!-- directory holding test results -->
17
    <property name="test-results.dir" value="${build.dir}/test-results"/>
18

    
19
    <!-- directory holding Saxon qt3extra tests -->
20
    <property name="qt3extra.dir" value="${repository}/tests/qt3extra/9.8"/>
21

    
22
    <!-- directory holding Saxon xslt30extra tests -->
23
    <property name="xslt30extra.dir" value="${repository}/tests/xslt30extra/9.8"/>
24

    
25

    
26

    
27
    <!-- ============ SAMPLES TESTS =============== -->
28

    
29
    <!-- ========= Main targets to run all samples tests =========== -->
30

    
31
    <target name="test-cmd-j" depends="test-cmd-config, test-cmd-books-j, test-cmd-knights-tour-j, test-cmd-othello-j,  test-cmd-bible-j"/>
32

    
33

    
34

    
35
    <target name="test-samples-j" depends="
36
    test-samples-s9api-j, test-samples-JAXPExamples-j, test-samples-XQJExamples-j,
37
    test-samples-ApplyXPathJAXP-j, test-samples-XPathExample-j, test-samples-JDOM2Example-j,
38
    test-samples-PullExamples-j, test-samples-QuickValidator-j, test-samples-SchemaValidatorExample-j,
39
    test-samples-SchemaValidatorHandlerExample-j, test-samples-XPathExampleSA-j"/>
40

    
41

    
42
    <!-- XMarkBenchmark sample test, requires EE (takes approx 6 mins) -->
43
    <target name="test-samples-XMarkBenchmark-j" depends="samples-j" description="Run test of XMarkBenchmark sample">
44
        <exec executable="java"
45
              dir="${build-resources.dir}/samples"
46
              failonerror="true">
47
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
48
            <arg line="ee/XMarkBenchmark"/>
49
            <arg line="-dir:${xmark.dir}"/>
50
        </exec>
51

    
52
        <exec executable="java"
53
              dir="${build-resources.dir}/samples"
54
              failonerror="true">
55
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
56
            <arg line="ee/XMarkBenchmark"/>
57
            <arg line="-dir:${xmark.dir}"/>
58
            <arg line="-sa"/>
59
        </exec>
60
    </target>
61

    
62

    
63
    <!-- ============ TEST SUITE TESTS =============== -->
64

    
65
    <!-- ========= Main targets to run XSLT 3.0 test suite =========== -->
66

    
67
    <!-- Running XSLT 3.0 test catalog with all editions -->
68
    <target name="xslt30-tests-j" depends="xslt30-tests-hej, xslt30-tests-pej, xslt30-tests-eej"/>
69

    
70
    <!-- generate a report of the XSLT 3.0 test suite results for different Saxon editions/configurations -->
71
    <target name="generate-xslt30-tests-report" depends="xslt30-test-results-dir">
72
        <generate-test-report test-suite="xslt30"/>
73
    </target>
74

    
75
    <!-- ========= Main targets to run XSLT 3.0 extra test suite =========== -->
76

    
77
    <!-- Running XSLT 3.0 extra test catalog with all editions -->
78
    <target name="xslt30extra-tests-j" depends="xslt30extra-tests-pej, xslt30extra-tests-eej"/>
79

    
80
    <!-- generate a report of the XSLT 3.0 extra test suite results for different Saxon editions/configurations -->
81
    <target name="generate-xslt30extra-tests-report" depends="xslt30-test-results-dir">
82
        <generate-test-report test-suite="xslt30extra"/>
83
    </target>
84

    
85

    
86
    <!-- ========= Main targets to run QT3 test suite =========== -->
87

    
88
    <!-- Running QT3 test catalog with all editions -->
89
    <target name="qt3-tests-j" depends="qt3-tests-hej, qt3-tests-pej, qt3-tests-eej"/>
90

    
91
    <!-- generate a report of the QT3 test suite results for different Saxon editions/configurations -->
92
    <target name="generate-qt3-tests-report" depends="qt3-test-results-dir">
93
        <generate-test-report test-suite="qt3"/>
94
    </target>
95

    
96

    
97
    <!-- ========= Main targets to run QT3extra test suite =========== -->
98

    
99
    <!-- Running QT3extra test catalog with all editions -->
100
    <target name="qt3extra-tests-j" depends="qt3extra-tests-pej, qt3extra-tests-eej"/>
101

    
102
    <!-- generate a report of the QT3extra test suite results for different Saxon editions/configurations -->
103
    <target name="generate-qt3extra-tests-report" depends="qt3-test-results-dir">
104
        <generate-test-report test-suite="qt3extra"/>
105
    </target>
106

    
107

    
108

    
109

    
110

    
111

    
112
    <!-- ========= TARGETS FOR SAMPLES TESTS =========== -->
113

    
114
    <!-- Validate configuration file samples -->
115
    <macrodef name="cmd-config"
116
              description="Validation test for config files">
117
        <attribute name="schema"/>
118
        <attribute name="file"/>
119
        <sequential>
120
            <exec executable="java"
121
                  failonerror="true">
122
                <arg line="-cp ${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
123
                <arg line="com.saxonica.Validate"/>
124
                <arg line="-t"/>
125
                <arg line="-s:${build-resources.dir}/samples/config/@{file}"/>
126
                <arg line="-xsd:${build-resources.dir}/samples/config/@{schema}"/>
127
                <!-- TODO xslt30.xsd should no longer be required -->
128
            </exec>
129
        </sequential>
130
    </macrodef>
131

    
132
    <target name="test-cmd-config" depends="samples-j">
133
        <cmd-config schema="config.xsd" file="config.xml"/>
134
        <cmd-config schema="config.xsd" file="config-HE.xml"/>
135
        <cmd-config schema="annotatedConfig.xsd" file="config.xml"/>
136
    </target>
137

    
138
    <!-- Command line books tests -->
139
    <macrodef name="cmd-books-xslt1"
140
        description="Test command line transform1">
141
        <attribute name="version"/>
142
        <element name="other-arg" optional="yes"/>
143
        <sequential>
144
            <exec executable="java"
145
                failonerror="true">
146
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
147
                <arg line="net.sf.saxon.Transform"/>
148
                <arg line="-t"/>
149
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
150
                <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
151
                <arg line="-o:${temp-output.dir}/@{version}j/output.html"/>
152
                <other-arg/>
153
            </exec>
154
        </sequential>
155
    </macrodef>
156

    
157
    <macrodef name="cmd-books-xslt2"
158
              description="Test command line transform2">
159
        <attribute name="version"/>
160
        <sequential>
161
            <exec executable="java"
162
                  failonerror="true">
163
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
164
                <arg line="net.sf.saxon.Transform"/>
165
                <arg line="-t"/>
166
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
167
                <arg line="-xsl:${build-resources.dir}/samples/styles/books-csv.xsl"/>
168
            </exec>
169
        </sequential>
170
    </macrodef>
171
    
172
    <macrodef name="cmd-books-xquery1"
173
        description="Test command line query1">
174
        <attribute name="version"/>
175
        <sequential>
176
            <exec executable="java"
177
                failonerror="true">
178
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
179
                <arg line="net.sf.saxon.Query"/>   
180
                <arg line="-t"/>
181
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
182
                <arg line="-q:${build-resources.dir}/samples/query/books.xq"/>                
183
            </exec>
184
        </sequential>
185
    </macrodef>  
186
    
187
    <macrodef name="cmd-books-xquery2"
188
        description="Test command line query2">
189
        <attribute name="version"/>
190
        <sequential>
191
            <exec executable="java"
192
                failonerror="true">
193
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
194
                <arg line="net.sf.saxon.Query"/>   
195
                <arg line="-t"/>
196
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
197
                <arg line="-qs:saxon:line-number((//*)[last()])"/>
198
                <arg line="-l:on"/>
199
            </exec>
200
        </sequential>
201
    </macrodef> 
202
    
203
    <target name="test-cmd-books-hej" depends="samples-j">
204
        <cmd-books-xslt1 version="he">
205
            <other-arg>
206
                <arg line="top-author='Thomas Hardy'"/>
207
            </other-arg>
208
        </cmd-books-xslt1>
209
        <cmd-books-xslt2 version="he"/>
210
        <cmd-books-xquery1 version="he"/>
211
    </target>   
212
    
213
    <target name="test-cmd-books-pej" depends="samples-j">
214
        <cmd-books-xslt1 version="pe"/>
215
        <cmd-books-xslt2 version="pe"/>
216
        <cmd-books-xquery1 version="pe"/>
217
        <cmd-books-xquery2 version="pe"/>
218
    </target>
219
    
220
    <target name="test-cmd-books-eej" depends="samples-j">
221
        <cmd-books-xslt1 version="ee">
222
            <other-arg>
223
                <arg line="top-author='Jane Austen'"/>
224
            </other-arg>
225
        </cmd-books-xslt1>
226
        <cmd-books-xslt2 version="ee"/>
227
        <cmd-books-xquery1 version="ee"/>
228
        <cmd-books-xquery2 version="ee"/>
229
        <exec executable="java"
230
            failonerror="true">
231
            <arg line="-cp ${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
232
            <arg line="com.saxonica.Validate"/>  
233
            <arg line="-t"/>
234
            <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
235
            <arg line="-xsd:${build-resources.dir}/samples/data/books.xsd"/>
236
        </exec>
237
    </target>
238

    
239
    <target name="test-cmd-books-j" depends="test-cmd-books-hej, test-cmd-books-pej, test-cmd-books-eej"/>
240

    
241
    <!-- Command line Knight's Tour tests -->
242
    <macrodef name="cmd-knights-tour-xslt"
243
              description="Test command line Knight's Tour transform">
244
        <attribute name="version"/>
245
        <element name="other-arg" optional="yes"/>
246
        <sequential>
247
            <exec executable="java"
248
                  failonerror="true">
249
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
250
                <arg line="net.sf.saxon.Transform"/>
251
                <arg line="-it:main"/>
252
                <arg line="-xsl:${build-resources.dir}/samples/styles/tour.xsl"/>
253
                <other-arg/>
254
                <arg line="-o:${temp-output.dir}/@{version}j/tour-t.html"/>
255
            </exec>
256
        </sequential>
257
    </macrodef>
258

    
259
    <macrodef name="cmd-knights-tour-xquery"
260
              description="Test command line Knight's Tour query">
261
        <attribute name="version"/>
262
        <element name="other-arg" optional="yes"/>
263
        <sequential>
264
            <exec executable="java"
265
                  failonerror="true">
266
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
267
                <arg line="net.sf.saxon.Query"/>
268
                <arg line="-q:${build-resources.dir}/samples/query/tour.xq"/>
269
                <other-arg/>
270
                <arg line="-o:${temp-output.dir}/@{version}j/tour-q.html"/>
271
            </exec>
272
        </sequential>
273
    </macrodef>
274

    
275
    <target name="test-cmd-knights-tour-j" depends="samples-j">
276
        <cmd-knights-tour-xslt version="he">
277
            <other-arg>
278
                <arg line="start=a6"/>
279
            </other-arg>
280
        </cmd-knights-tour-xslt>
281
        <cmd-knights-tour-xslt version="pe">
282
            <other-arg>
283
                <arg line="start=g2"/>
284
            </other-arg>
285
        </cmd-knights-tour-xslt>
286
        <cmd-knights-tour-xslt version="ee"/>
287
        <cmd-knights-tour-xquery version="he">
288
            <other-arg>
289
                <arg line="start=e5"/>
290
            </other-arg>
291
        </cmd-knights-tour-xquery>
292
        <cmd-knights-tour-xquery version="pe">
293
            <other-arg>
294
                <arg line="start=d2 end=42"/>
295
            </other-arg>
296
        </cmd-knights-tour-xquery>
297
        <cmd-knights-tour-xquery version="ee">
298
            <other-arg>
299
                <arg line="end=61"/>
300
            </other-arg>
301
        </cmd-knights-tour-xquery>
302
    </target>
303

    
304
    <!-- Command line Shakespeare transform tests -->
305
    <macrodef name="cmd-othello-xslt"
306
              description="Test command line Othello transform">
307
        <attribute name="version"/>
308
        <sequential>
309
            <exec executable="java"
310
                  failonerror="true">
311
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
312
                <arg line="net.sf.saxon.Transform"/>
313
                <arg line="-t"/>
314
                <arg line="-s:${build-resources.dir}/samples/data/othello.xml"/>
315
                <arg line="-xsl:${build-resources.dir}/samples/styles/play.xsl"/>
316
                <arg line="dir=${temp-output.dir}/@{version}j/playhtml"/>
317
            </exec>
318
        </sequential>
319
    </macrodef>
320

    
321
    <target name="test-cmd-othello-j" depends="samples-j">
322
        <cmd-othello-xslt version="he"/>
323
        <cmd-othello-xslt version="pe"/>
324
        <cmd-othello-xslt version="ee"/>
325
    </target>
326

    
327
    <!-- XPathExample sample tests -->
328
    <property name="LF" value="&#x0A;" />
329
    <macrodef name="samples-XPathExample"
330
              description="Run test of XPathExample sample">
331
        <attribute name="version"/>
332
        <attribute name="search-word"/>
333
        <attribute name="app" default="he/XPathExample"/>
334
        <sequential>
335
            <exec executable="java"
336
                  dir="${build-resources.dir}/samples"
337
                  inputstring="@{search-word}&#x0A;."
338
                  failonerror="true">
339
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
340
                <arg line="@{app} data/othello.xml"/>
341
            </exec>
342
        </sequential>
343
    </macrodef>
344

    
345
    <target name="test-samples-XPathExample-j" depends="samples-j">
346
        <samples-XPathExample version="he" search-word="handkerchief"/>
347
        <samples-XPathExample version="pe" search-word="castle"/>
348
        <samples-XPathExample version="ee" search-word="monkey"/>
349
        <samples-XPathExample version="he" search-word="trouble" app="he/XPathExampleDOM"/>
350
        <samples-XPathExample version="pe" search-word="William" app="he/XPathExampleDOM"/>
351
        <samples-XPathExample version="ee" search-word="cloth" app="he/XPathExampleDOM"/>
352
    </target>
353

    
354
    <!-- Command line Bible transform tests -->
355
    <macrodef name="cmd-bible-xslt"
356
              description="Test command line Bible transform">
357
        <attribute name="version"/>
358
        <sequential>
359
            <exec executable="java"
360
                  dir="${build-resources.dir}/samples"
361
                  failonerror="true">
362
                <arg line="-cp ${basedir}/${build-resources.dir}/samples${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
363
                <arg line="net.sf.saxon.Transform"/>
364
                <arg line="-t"/>
365
                <arg line="${basedir}/../tests/junit/testdata/bible/nt/nt.xml"/>
366
                <arg line="styles/bible.xsl"/>
367
                <arg line="dir=${basedir}/${temp-output.dir}/@{version}j/biblehtml"/>
368
            </exec>
369
        </sequential>
370
    </macrodef>
371

    
372
    <target name="test-cmd-bible-j" depends="samples-j">
373
        <cmd-bible-xslt version="he"/>
374
        <cmd-bible-xslt version="pe"/>
375
        <cmd-bible-xslt version="ee"/>
376
    </target>
377

    
378

    
379

    
380
    <!-- S9APIExamples sample tests -->
381
    <macrodef name="samples-s9api"
382
        description="Run test of s9api samples">
383
        <attribute name="version"/>
384
        <attribute name="target"/>
385
        <sequential>
386
            <!--<echo message="${build-resources.dir}/samples/java/classes${Z}${build-@{version}j.dir}/saxon9@{version}.jar${Z}${lib.dir}/jdom.jar${Z}${lib.dir}/xom-1.2.1.jar${Z}${lib.dir}/dom4j-1.6.1.jar${Z}${license.dir}"/>-->
387
            <exec executable="java"
388
                dir="${build-resources.dir}/samples"
389
                failonerror="true">
390
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${basedir}/${lib.dir}/jdom-2.0.4.jar${Z}${basedir}/${lib.dir}/xom-1.2.1.jar${Z}${basedir}/${lib.dir}/dom4j-1.6.1.jar${Z}${license.dir}"/>
391
                <arg line="he/S9APIExamples"/>
392
                <arg line="@{target}"/>
393
            </exec>
394
        </sequential>
395
    </macrodef>
396
    
397
    <target name="test-samples-s9api-hej" depends="samples-j">
398
        <samples-s9api version="he" target="QueryA"/>
399
        <samples-s9api version="he" target="QueryB"/>
400
        <samples-s9api version="he" target="QueryC"/>
401
        <samples-s9api version="he" target="QueryD"/>
402
        <samples-s9api version="he" target="QueryE"/>
403
        <!--<samples-s9api version="he" target="QueryF"/>--> <!-- This test should fail in HE -->
404
<!--        <samples-s9api version="he" target="QueryG"/>-->
405
<!--        <samples-s9api version="he" target="QueryUpdateA"/>-->
406
        <samples-s9api version="he" target="TransformA"/>
407
        <samples-s9api version="he" target="TransformB"/>
408
        <samples-s9api version="he" target="TransformC"/>
409
        <samples-s9api version="he" target="TransformD"/>
410
        <samples-s9api version="he" target="TransformE"/>
411
        <samples-s9api version="he" target="TransformF"/>
412
<!--        <samples-s9api version="he" target="SchemaA"/>-->
413
<!--        <samples-s9api version="he" target="SchemaB"/>-->
414
        <samples-s9api version="he" target="XPathA"/>
415
        <samples-s9api version="he" target="XPathB"/>
416
<!--        <samples-s9api version="he" target="XPathC"/>-->
417
        <samples-s9api version="he" target="XPathDOM"/>
418
<!--        <samples-s9api version="he" target="XPathJDOM"/>-->
419
<!--        <samples-s9api version="he" target="XPathXOM"/>-->
420
<!--        <samples-s9api version="he" target="XPathDOM4J"/>-->
421
        <samples-s9api version="he" target="SerializeA"/>
422
        <samples-s9api version="he" target="SerializeB"/>
423
        <samples-s9api version="he" target="SerializeC"/>
424
        <!--<samples-s9api version="he" target="SerializeD"/>-->
425
    </target> 
426
        
427
    <target name="test-samples-s9api-pej" depends="samples-j">
428
        <samples-s9api version="pe" target="nonschema"/>
429
    </target>
430
    
431
    <target name="test-samples-s9api-eej" depends="samples-j">
432
        <samples-s9api version="ee" target="all"/>
433
    </target>
434

    
435
    <target name="test-samples-s9api-j" depends="test-samples-s9api-hej, test-samples-s9api-pej, test-samples-s9api-eej"/>
436

    
437
    <!-- JAXPExamples sample tests -->
438
    <macrodef name="samples-JAXPExamples"
439
              description="Run test of JAXPExamples samples">
440
        <attribute name="version"/>
441
        <attribute name="target"/>
442
        <sequential>
443
            <exec executable="java"
444
                  dir="${build-resources.dir}/samples"
445
                  failonerror="true">
446
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>
447
                <arg line="he/JAXPExamples"/>
448
                <arg line="@{target}"/>
449
            </exec>
450
        </sequential>
451
    </macrodef>
452

    
453
    <target name="test-samples-JAXPExamples-j" depends="samples-j">
454
        <samples-JAXPExamples version="he" target="all"/>
455
        <samples-JAXPExamples version="pe" target="all"/>
456
        <samples-JAXPExamples version="ee" target="all"/>
457
    </target>
458

    
459
    <!-- XQJExamples sample tests -->
460
    <macrodef name="samples-XQJExamples"
461
              description="Run test of XQJExamples samples">
462
        <attribute name="version"/>
463
        <attribute name="target"/>
464
        <sequential>
465
            <exec executable="java"
466
                  dir="${build-resources.dir}/samples"
467
                  failonerror="true">
468
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${basedir}/${lib.dir}/xqjapi.jar${Z}${license.dir}"/>
469
                <arg line="ee/XQJExamples"/>
470
                <arg line="@{target}"/>
471
            </exec>
472
        </sequential>
473
    </macrodef>
474

    
475
    <target name="test-samples-XQJExamples-j" depends="samples-j">
476
        <!--<samples-XQJExamples version="he" target="all"/>--> <!-- TODO xqt jar not found -->
477
        <samples-XQJExamples version="pe" target="all"/>
478
        <samples-XQJExamples version="ee" target="all"/>
479
    </target>
480

    
481
    <!-- ApplyXPathJAXP sample tests -->
482
    <macrodef name="samples-ApplyXPathJAXP"
483
        description="Run test of ApplyXPathJAXP sample">
484
        <attribute name="version"/>
485
        <attribute name="file"/>
486
        <attribute name="xpath"/>
487
        <attribute name="object-model" default=""/>
488
        <sequential>
489
            <exec executable="java"
490
                dir="${build-resources.dir}/samples"
491
                failonerror="true">
492
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${basedir}/${lib.dir}/jdom.jar${Z}${basedir}/${lib.dir}/xom-1.2.1.jar${Z}${basedir}/${lib.dir}/dom4j-1.6.1.jar${Z}${basedir}/${lib.dir}/jdom-2.0.4.jar${Z}${license.dir}"/>
493
                <arg line="he/ApplyXPathJAXP"/>
494
                <arg line="data/@{file}"/>     
495
                <arg line="@{xpath}"/>
496
                <arg line="@{object-model}"/>
497
            </exec>
498
        </sequential>
499
    </macrodef>
500
    
501
    <target name="test-samples-ApplyXPathJAXP-hej" depends="samples-j">
502
        <samples-ApplyXPathJAXP version="he" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="saxon"/>
503
        <samples-ApplyXPathJAXP version="he" file="books.xml" xpath="count(//ITEM)" object-model="dom"/>
504
    </target>
505
    
506
    <target name="test-samples-ApplyXPathJAXP-pej" depends="samples-j">
507
        <samples-ApplyXPathJAXP version="pe" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="saxon"/>
508
        <samples-ApplyXPathJAXP version="pe" file="books.xml" xpath="count(//ITEM)" object-model="dom"/>
509
        <samples-ApplyXPathJAXP version="pe" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="jdom"/>
510
        <samples-ApplyXPathJAXP version="pe" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="xom"/>
511
        <samples-ApplyXPathJAXP version="pe" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="dom4j"/>
512
    </target>
513
    
514
    <target name="test-samples-ApplyXPathJAXP-eej" depends="samples-j">
515
        <samples-ApplyXPathJAXP version="ee" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="saxon"/>
516
        <samples-ApplyXPathJAXP version="ee" file="books.xml" xpath="count(//ITEM)" object-model="dom"/>
517
        <samples-ApplyXPathJAXP version="ee" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="jdom"/>
518
        <samples-ApplyXPathJAXP version="ee" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="xom"/>
519
        <samples-ApplyXPathJAXP version="ee" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="dom4j"/>
520
    </target>
521

    
522
    <target name="test-samples-ApplyXPathJAXP-j" depends="test-samples-ApplyXPathJAXP-hej, test-samples-ApplyXPathJAXP-pej, test-samples-ApplyXPathJAXP-eej"/>
523

    
524
    <!-- JDOM2Example sample tests, requires PE or EE -->
525
    <macrodef name="samples-JDOM2Example"
526
              description="Run test of JDOM2Example sample">
527
        <attribute name="version"/>
528
        <sequential>
529
            <exec executable="java"
530
                  dir="${build-resources.dir}/samples"
531
                  failonerror="true">
532
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar${Z}${basedir}/${lib.dir}/jdom-2.0.4.jar${Z}${license.dir}${Z}${lib.dir}/xerces.jar${Z}${lib.dir}/xercesImpl.jar"/>
533
                <arg line="ee/JDOM2Example"/>
534
                <arg line="data/books.xml"/>
535
                <arg line="styles/total.xsl"/>
536
            </exec>
537
        </sequential>
538
    </macrodef>
539

    
540
    <target name="test-samples-JDOM2Example-j" depends="samples-j">
541
        <samples-JDOM2Example version="pe"/>
542
        <samples-JDOM2Example version="ee"/>
543
    </target>
544

    
545
    <!-- PullExamples sample tests, requires EE -->
546
    <target name="test-samples-PullExamples-j" description="Run test of PullExamples sample" depends="samples-j">
547
        <exec executable="java"
548
              dir="${build-resources.dir}/samples"
549
              failonerror="true">
550
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
551
            <arg line="ee/PullExamples"/>
552
            <arg line="#"/>
553
        </exec>
554
    </target>
555

    
556
    <!-- QuickValidator sample test, requires EE -->
557
    <target name="test-samples-QuickValidator-j" description="Run test of QuickValidator sample" depends="samples-j">
558
        <exec executable="java"
559
              dir="${build-resources.dir}/samples"
560
              failonerror="true">
561
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
562
            <arg line="ee/QuickValidator"/>
563
            <arg line="data/books.xml"/>
564
            <arg line="data/books.xsd"/>
565
        </exec>
566
    </target>
567

    
568
    <!-- SchemaValidatorExample sample test, requires EE -->
569
    <target name="test-samples-SchemaValidatorExample-j" description="Run test of SchemaValidatorExample sample" depends="samples-j">
570
        <exec executable="java"
571
              dir="${build-resources.dir}/samples"
572
              failonerror="true">
573
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
574
            <arg line="ee/SchemaValidatorExample"/>
575
            <arg line="data/books.xsd"/>
576
            <arg line="data/books.xml"/>
577
        </exec>
578
    </target>
579

    
580
    <!-- SchemaValidatorHandlerExample sample test, requires EE -->
581
    <target name="test-samples-SchemaValidatorHandlerExample-j" description="Run test of SchemaValidatorHandlerExample sample" depends="samples-j">
582
        <exec executable="java"
583
              dir="${build-resources.dir}/samples"
584
              failonerror="true">
585
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
586
            <arg line="ee/SchemaValidatorHandlerExample"/>
587
            <arg line="data/books.xsd"/>
588
            <arg line="data/books.xml"/>
589
        </exec>
590
    </target>
591

    
592
    <!-- XPathExampleSA sample test, requires EE -->
593
    <target name="test-samples-XPathExampleSA-j" description="Run test of XPathExampleSA sample" depends="samples-j">
594
        <exec executable="java"
595
              dir="${build-resources.dir}/samples"
596
              failonerror="true">
597
            <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
598
            <arg line="ee/XPathExampleSA"/>
599
            <arg line="data/books.xml"/>
600
            <arg line="data/books.xsd"/>
601
        </exec>
602
    </target>
603

    
604

    
605

    
606

    
607

    
608

    
609

    
610
    <!-- ============ TARGETS TO RUN TEST SUITE TESTS =============== -->
611

    
612

    
613
    <!-- Running XSLT 3.0 test catalog -->
614

    
615
    <!-- Compile test drivers - to run test suites (XSLT, QT3, etc.) -->
616

    
617
    <target name="compile-testdrivers-j">
618
        <delete dir="${build.dir}/test-drivers"/>
619
        <mkdir dir="${build.dir}/test-drivers"/>
620
        <copy todir="${build.dir}/test-drivers">
621
            <fileset dir="${source-eej.dir}">
622
                <include name="com/saxonica/testdriver/*.java"/>
623
            </fileset>
624
            <fileset dir="${source-hej.dir}">
625
                <include name="net/sf/saxon/testdriver/*.java"/>
626
            </fileset>
627
        </copy>
628
        <javac debug="true" debuglevel="${build.debuglevel}"
629
               destdir="${build.dir}/test-drivers"
630
               srcdir="${build.dir}/test-drivers" source="${build.compiler.source}"
631
               target="${build.compiler.target}" includeantruntime="false">
632
            <include name="com/saxonica/testdriver/*.java"/>
633
            <include name="net/sf/saxon/testdriver/*.java"/>
634
            <classpath>
635
                <path refid="classpath-samples"/>
636
            </classpath>
637
        </javac>
638
    </target>
639

    
640
    <!-- generating reports of different test suites (XSLT, QT3) results for different Saxon editions/configurations -->
641
    <macrodef name="generate-test-report"
642
              description="Generate report from named test suite results">
643
        <attribute name="test-suite"/>
644
        <sequential>
645
            <exec executable="java"
646
                  failonerror="true">
647
                <arg line="-cp ${build-eej.dir}/saxon9ee.jar${Z}${license.dir}"/>
648
                <arg line="net.sf.saxon.Transform"/>
649
                <arg line="-t"/>
650
                <arg line="-s:${build.dir}/build.xml"/>
651
                <arg line="-xsl:${test-results.dir}/@{test-suite}/report.xsl"/>
652
                <arg line="-o:${test-results.dir}/@{test-suite}/${DSTAMP}/report.xml"/>
653
                <arg line="rundate=${DSTAMP}"/>
654
            </exec>
655
        </sequential>
656
    </macrodef>
657

    
658

    
659
    <!-- XSLT 3.0 test suite -->
660

    
661
    <!-- Create date-stamped directory for new XSLT 3.0 test results, containing exceptions file -->
662
    <target name="xslt30-test-results-dir">
663
        <tstamp/>
664
        <mkdir dir="${test-results.dir}/xslt30/${DSTAMP}"/>
665
        <mkdir dir="${test-results.dir}/xslt30/${DSTAMP}/results"/>
666
        <copy file="${test-results.dir}/xslt30/exceptions.xml"
667
              tofile="${test-results.dir}/xslt30/${DSTAMP}/exceptions.xml">
668
        </copy>
669
        <mkdir dir="${test-results.dir}/xslt30extra/${DSTAMP}"/>
670
        <mkdir dir="${test-results.dir}/xslt30extra/${DSTAMP}/results"/>
671
        <copy file="${test-results.dir}/xslt30extra/exceptions.xml"
672
              tofile="${test-results.dir}/xslt30extra/${DSTAMP}/exceptions.xml">
673
        </copy>
674
    </target>
675

    
676
    <!-- Running XSLT 3.0 test catalog -->
677
    <macrodef name="xslt30-tests"
678
              description="Run XSLT 3.0 test catalog">
679
        <attribute name="catalog" default="xslt30"/>
680
        <attribute name="version"/>
681
        <attribute name="lang"/>
682
        <attribute name="bc" default=""/>
683
        <attribute name="test-driver" default="com.saxonica.testdriver.Xslt30TestSuiteDriver"/>
684
        <element name="other-arg" optional="yes"/>
685
        <sequential>
686
            <exec executable="java"
687
                  failonerror="true">
688
                <arg line="-Xmx2G"/>
689
                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar${Z}${build-@{version}j.dir}/saxon9-sql.jar${Z}${license.dir}${Z}${product.dir}/pej/icu4j-59_1.jar${Z}${lib.dir}/tagsoup-1.2.1.jar${Z}${lib.dir}/xerces.jar${Z}${lib.dir}/xercesImpl.jar"/>
690
                <!--                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}"/>-->
691
                <arg line="@{test-driver}"/>
692
                <arg line="${@{catalog}.dir}"/>
693
                <arg line="catalog.xml"/>
694
                <arg line="-o:${test-results.dir}/@{catalog}/${DSTAMP}"/>
695
                <arg line="-lang:XT@{lang}0"/>
696
                <arg line= "-ps:off"/>
697
                <!--<arg line="-quiet"/>-->
698
                <!--<arg line="-s:threads"/>
699
                <arg line="-t:threads-022"/>-->
700
                <arg line="-debug"/>
701
                <other-arg/>            </exec>
702
            <copy file="${test-results.dir}/@{catalog}/${DSTAMP}/results_XSLT@{lang}.0_${version}.xml"
703
                  tofile="${test-results.dir}/@{catalog}/${DSTAMP}/results/saxon-@{version}-XT@{lang}0@{bc}.xml">
704
            </copy>
705
        </sequential>
706
    </macrodef>
707

    
708
    <!-- Running XSLT 3.0 test catalog with HE -->
709
    <target name="xslt30-tests-hej" depends="compile-testdrivers-j, xslt30-test-results-dir">
710
        <xslt30-tests version="he" lang="3" test-driver="net.sf.saxon.testdriver.Xslt30TestSuiteDriverHE"/>
711
    </target>
712
 
713
    <!-- Running XSLT 3.0 test catalog with PE -->
714
    <target name="xslt30-tests-pej" depends="compile-testdrivers-j, xslt30-test-results-dir">
715
        <xslt30-tests version="pe" lang="3" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverPE"/>
716
    </target>
717

    
718
    <!-- Running XSLT 3.0 test catalog with EE -->
719
    <target name="xslt30-tests-eej" depends="compile-testdrivers-j, xslt30-test-results-dir">
720
        <xslt30-tests version="ee" lang="3" bc="-on" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverEE">
721
            <other-arg>
722
                <arg line= "-bytecode:on"/>
723
            </other-arg>
724
        </xslt30-tests>
725
        <xslt30-tests version="ee" lang="3" bc="-off" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverEE">
726
            <other-arg>
727
                <arg line= "-bytecode:off"/>
728
            </other-arg>
729
        </xslt30-tests>
730
    </target>
731

    
732

    
733
    <!-- Running XSLT 3.0 extra test catalog with HE -->
734
    <target name="xslt30extra-tests-hej" depends="compile-testdrivers-j, xslt30-test-results-dir">
735
        <xslt30-tests catalog="xslt30extra" version="he" lang="2" test-driver="net.sf.saxon.testdriver.Xslt30TestSuiteDriverHE"/>
736
        <!-- Saxon-HE does not support XSLT3.0-->
737
    </target>
738

    
739
    <!-- Running XSLT 3.0 extra test catalog with PE -->
740
    <target name="xslt30extra-tests-pej" depends="compile-testdrivers-j, xslt30-test-results-dir">
741
        <!--<xslt30-tests catalog="xslt30extra" version="pe" lang="2" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverPE"/>-->
742
        <xslt30-tests catalog="xslt30extra" version="pe" lang="3" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverPE"/>
743
    </target>
744

    
745
    <!-- Running XSLT 3.0 extra test catalog with EE -->
746
    <target name="xslt30extra-tests-eej" depends="compile-testdrivers-j, xslt30-test-results-dir">
747
        <!--<xslt30-tests catalog="xslt30extra" version="ee" lang="2" bc="-on">
748
            <other-arg>
749
                <arg line= "-bytecode:on"/>
750
            </other-arg>
751
        </xslt30-tests>
752
        <xslt30-tests catalog="xslt30extra" version="ee" lang="2" bc="-off">
753
            <other-arg>
754
                <arg line= "-bytecode:off"/>
755
            </other-arg>
756
        </xslt30-tests>-->
757
        <xslt30-tests catalog="xslt30extra" version="ee" lang="3" bc="-on" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverEE">
758
            <other-arg>
759
                <arg line= "-bytecode:on"/>
760
            </other-arg>
761
        </xslt30-tests>
762
        <xslt30-tests catalog="xslt30extra" version="ee" lang="3" bc="-off" test-driver="com.saxonica.testdriver.Xslt30TestSuiteDriverEE">
763
            <other-arg>
764
                <arg line= "-bytecode:off"/>
765
            </other-arg>
766
        </xslt30-tests>
767
    </target>
768

    
769

    
770

    
771
    <!-- QT3 test suites -->
772

    
773
    <!-- Create date-stamped directory for new QT3 test results -->
774
    <target name="qt3-test-results-dir">
775
        <tstamp/>
776
        <mkdir dir="${test-results.dir}/qt3/${DSTAMP}"/>
777
        <mkdir dir="${test-results.dir}/qt3/${DSTAMP}/results"/>
778
        <copy file="${test-results.dir}/qt3/exceptions.xml"
779
              tofile="${test-results.dir}/qt3/${DSTAMP}/exceptions.xml">
780
        </copy>
781
        <mkdir dir="${test-results.dir}/qt3extra/${DSTAMP}"/>
782
        <mkdir dir="${test-results.dir}/qt3extra/${DSTAMP}/results"/>
783
    </target>
784

    
785
    <!-- Running QT3 test catalog -->
786
    <property name="XP20" value="XPath2.0"/>
787
    <property name="XP30" value="XPath3.0"/>
788
    <property name="XP31" value="XPath3.1"/>
789
    <property name="XQ10" value="XQuery1.0"/>
790
    <property name="XQ30" value="XQuery3.0"/>
791
    <property name="XQ31" value="XQuery3.1"/>
792
    <macrodef name="qt3-tests"
793
              description="Run QT3 test catalog">
794
        <attribute name="catalog"/>
795
        <attribute name="version"/>
796
        <attribute name="lang"/>
797
        <attribute name="bc" default=""/>
798
        <attribute name="test-driver" default="com.saxonica.testdriver.QT3TestDriverEE"/>
799
        <element name="other-arg" optional="yes"/>
800
        <sequential>
801
            <exec executable="java"
802
                  failonerror="true">
803
                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir}${Z}${lib.dir}/mail.jar${Z}${build-@{version}j.dir}/icu4j-59_1.jar${Z}${lib.dir}/xerces.jar${Z}${lib.dir}/xercesImpl.jar"/> <!--${Z}${build-@{version}j.dir}/saxon9-sql.jar-->
804
                <arg line="@{test-driver}"/>
805
                <arg line="${@{catalog}.dir}"/>
806
                <arg line="catalog.xml"/>
807
                <arg line="-o:${test-results.dir}/@{catalog}/${DSTAMP}"/>
808
                <arg line="-lang:@{lang}"/>
809
                <other-arg/>
810
            </exec>
811
            <copy file="${test-results.dir}/@{catalog}/${DSTAMP}/results_${@{lang}}_${version}.xml"
812
                  tofile="${test-results.dir}/@{catalog}/${DSTAMP}/results/saxon-@{version}-@{lang}@{bc}.xml">
813
            </copy>
814
        </sequential>
815
    </macrodef>
816

    
817
    <!-- Running W3C QT3 test catalog with HE -->
818
    <target name="qt3-tests-hej" depends="compile-testdrivers-j, qt3-test-results-dir">
819
        <qt3-tests catalog="qt3" version="he" lang="XP20" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
820
        <!--<qt3-tests catalog="qt3" version="he" lang="XP30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>-->
821
        <qt3-tests catalog="qt3" version="he" lang="XP31" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
822
        <!--<qt3-tests catalog="qt3" version="he" lang="XQ10" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
823
        <qt3-tests catalog="qt3" version="he" lang="XQ30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>-->
824
        <qt3-tests catalog="qt3" version="he" lang="XQ31" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
825
    </target>
826

    
827
    <!-- Running W3C QT3 test catalog with PE -->
828
    <target name="qt3-tests-pej" depends="compile-testdrivers-j, qt3-test-results-dir">
829
        <qt3-tests catalog="qt3" version="pe" lang="XP20" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
830
        <!--<qt3-tests catalog="qt3" version="pe" lang="XP30"/>-->
831
        <qt3-tests catalog="qt3" version="pe" lang="XP31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
832
        <!--<qt3-tests catalog="qt3" version="pe" lang="XQ10"/>
833
        <qt3-tests catalog="qt3" version="pe" lang="XQ30"/>-->
834
        <qt3-tests catalog="qt3" version="pe" lang="XQ31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
835
    </target>
836

    
837
    <!-- Running W3C QT3 test catalog with EE 
838
         These are split into 6 subtargets such that each can be run independently -->
839
    
840
    <!-- MHK 2017-05-26: dropped all except XP20, XP31, and XQ31 as Saxon 9.8 no longer supports other XP/XQ versions -->
841
    <!--<target name="qt3-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir, 
842
        qt3-tests-eej-XP20, qt3-tests-eej-XP30, qt3-tests-eej-XP31, qt3-tests-eej-XQ10,
843
        qt3-tests-eej-XQ30, qt3-tests-eej-XQ31">-->
844
    <!--</target>-->
845
    <target name="qt3-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir, 
846
        qt3-tests-eej-XP20, qt3-tests-eej-XP31, qt3-tests-eej-XQ31">
847
    </target>
848

    
849
    <target name="qt3-tests-eej-XP20" depends="compile-testdrivers-j, qt3-test-results-dir">        
850
        <qt3-tests catalog="qt3" version="ee" lang="XP20" bc="-off" >
851
            <other-arg>
852
                <arg line= "-bytecode:off"/>
853
            </other-arg>
854
        </qt3-tests>
855
        <qt3-tests catalog="qt3" version="ee" lang="XP20" bc="-on">
856
            <other-arg>
857
                <arg line= "-bytecode:on"/>
858
            </other-arg>
859
        </qt3-tests>
860
    </target>
861
    <target name="qt3-tests-eej-XP30" depends="compile-testdrivers-j, qt3-test-results-dir">
862
        <qt3-tests catalog="qt3" version="ee" lang="XP30" bc="-off">
863
            <other-arg>
864
                <arg line= "-bytecode:off"/>
865
            </other-arg>
866
        </qt3-tests>
867
        <qt3-tests catalog="qt3" version="ee" lang="XP30" bc="-on">
868
            <other-arg>
869
                <arg line= "-bytecode:on"/>
870
            </other-arg>
871
        </qt3-tests>
872
    </target>
873
    <target name="qt3-tests-eej-XP31" depends="compile-testdrivers-j, qt3-test-results-dir">
874
        <qt3-tests catalog="qt3" version="ee" lang="XP31" bc="-off">
875
            <other-arg>
876
                <arg line= "-bytecode:off"/>
877
            </other-arg>
878
        </qt3-tests>
879
        <qt3-tests catalog="qt3" version="ee" lang="XP31" bc="-on">
880
            <other-arg>
881
                <arg line= "-bytecode:on"/>
882
            </other-arg>
883
        </qt3-tests>
884
    </target>
885
    <target name="qt3-tests-eej-XQ10" depends="compile-testdrivers-j, qt3-test-results-dir">        
886
        <qt3-tests catalog="qt3" version="ee" lang="XQ10" bc="-off">
887
            <other-arg>
888
                <arg line= "-bytecode:off"/>
889
            </other-arg>
890
        </qt3-tests>
891
        <qt3-tests catalog="qt3" version="ee" lang="XQ10" bc="-on">
892
            <other-arg>
893
                <arg line= "-bytecode:on"/>
894
            </other-arg>
895
        </qt3-tests>
896
    </target>
897
    <target name="qt3-tests-eej-XQ30" depends="compile-testdrivers-j, qt3-test-results-dir">        
898
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-off">
899
            <other-arg>
900
                <arg line= "-bytecode:off"/>
901
            </other-arg>
902
        </qt3-tests>
903
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-on">
904
            <other-arg>
905
                <arg line= "-bytecode:on"/>
906
            </other-arg>
907
        </qt3-tests>
908
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-on-unfolded">
909
            <other-arg>
910
                <arg line= "-bytecode:on"/>
911
                <arg line="-unfolded:yes"/>
912
            </other-arg>
913
        </qt3-tests>
914
    </target>
915
    <target name="qt3-tests-eej-XQ31" depends="compile-testdrivers-j, qt3-test-results-dir">
916
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-off">
917
            <other-arg>
918
                <arg line= "-bytecode:off"/>
919
            </other-arg>
920
        </qt3-tests>
921
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-on">
922
            <other-arg>
923
                <arg line= "-bytecode:on"/>
924
            </other-arg>
925
        </qt3-tests>
926
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-on-unfolded">
927
            <other-arg>
928
                <arg line= "-bytecode:on"/>
929
                <arg line="-unfolded:yes"/>
930
            </other-arg>
931
        </qt3-tests>
932
    </target>
933
    
934

    
935

    
936

    
937

    
938
    <!-- Running Saxon's QT3extra test catalog with HE -->
939
    <!--<target name="qt3extra-tests-hej" depends="compile-testdrivers-j, qt3-test-results-dir">
940
        <qt3-tests catalog="qt3extra" version="he" lang="XP20" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
941
        <qt3-tests catalog="qt3extra" version="he" lang="XP30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
942
        <qt3-tests catalog="qt3extra" version="he" lang="XQ10" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
943
        <qt3-tests catalog="qt3extra" version="he" lang="XQ30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
944
    </target>-->
945

    
946
    <!-- Running Saxon's QT3extra test catalog with PE -->
947
    <target name="qt3extra-tests-pej" depends="compile-testdrivers-j, qt3-test-results-dir">
948
        <qt3-tests catalog="qt3extra" version="pe" lang="XP20" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
949
        <!--<qt3-tests catalog="qt3extra" version="pe" lang="XP30"/>-->
950
        <qt3-tests catalog="qt3extra" version="pe" lang="XP31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
951
        <!--<qt3-tests catalog="qt3extra" version="pe" lang="XQ10"/>
952
        <qt3-tests catalog="qt3extra" version="pe" lang="XQ30"/>-->
953
        <qt3-tests catalog="qt3extra" version="pe" lang="XQ31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
954
    </target>
955

    
956
    <!-- Running Saxon's QT3extra test catalog with EE -->
957
    <target name="qt3extra-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir">
958
        <qt3-tests catalog="qt3extra" version="ee" lang="XP20" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
959
            <other-arg>
960
                <arg line= "-bytecode:off"/>
961
            </other-arg>
962
        </qt3-tests>
963
        <qt3-tests catalog="qt3extra" version="ee" lang="XP20" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
964
            <other-arg>
965
                <arg line= "-bytecode:on"/>
966
            </other-arg>
967
        </qt3-tests>
968
        <qt3-tests catalog="qt3extra" version="ee" lang="XP30" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
969
            <other-arg>
970
                <arg line= "-bytecode:off"/>
971
            </other-arg>
972
        </qt3-tests>
973
        <qt3-tests catalog="qt3extra" version="ee" lang="XP30" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
974
            <other-arg>
975
                <arg line= "-bytecode:on"/>
976
            </other-arg>
977
        </qt3-tests>
978
        <qt3-tests catalog="qt3extra" version="ee" lang="XP31" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
979
            <other-arg>
980
                <arg line= "-bytecode:off"/>
981
            </other-arg>
982
        </qt3-tests>
983
        <qt3-tests catalog="qt3extra" version="ee" lang="XP31" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
984
            <other-arg>
985
                <arg line= "-bytecode:on"/>
986
            </other-arg>
987
        </qt3-tests>
988
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ10" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
989
            <other-arg>
990
                <arg line= "-bytecode:off"/>
991
            </other-arg>
992
        </qt3-tests>
993
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ10" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
994
            <other-arg>
995
                <arg line= "-bytecode:on"/>
996
            </other-arg>
997
        </qt3-tests>
998
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ30" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
999
            <other-arg>
1000
                <arg line= "-bytecode:off"/>
1001
            </other-arg>
1002
        </qt3-tests>
1003
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ30" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
1004
            <other-arg>
1005
                <arg line= "-bytecode:on"/>
1006
            </other-arg>
1007
        </qt3-tests>
1008
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ31" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
1009
            <other-arg>
1010
                <arg line= "-bytecode:off"/>
1011
            </other-arg>
1012
        </qt3-tests>
1013
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ31" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
1014
            <other-arg>
1015
                <arg line= "-bytecode:on"/>
1016
            </other-arg>
1017
        </qt3-tests>
1018
    </target>
1019

    
1020

    
1021

    
1022
    
1023
</project>
(5-5/5)