Project

Profile

Help

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

he / tags / 9.9.1.3 / build / testing-j.xml @ c74fd4aa

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

    
43
    <!-- ============ TEST SUITE TESTS =============== -->
44

    
45
    <!-- ========= Main targets to run XSLT 3.0 test suite =========== -->
46

    
47
    <!-- Running XSLT 3.0 test catalog with all editions -->
48
    <target name="xslt30-tests-j" depends="xslt30-tests-hej"/>
49

    
50
    <!-- ========= Main targets to run QT3 test suite =========== -->
51

    
52
    <!-- Running QT3 test catalog with all editions -->
53
    <target name="qt3-tests-j" depends="qt3-tests-hej"/>
54

    
55

    
56

    
57
    <!-- ========= TARGETS FOR SAMPLES TESTS =========== -->
58

    
59
    <!-- Validate configuration file samples -->
60
    <macrodef name="cmd-config"
61
              description="Validation test for config files">
62
        <attribute name="schema"/>
63
        <attribute name="file"/>
64
        <sequential>
65
            <exec executable="java"
66
                  failonerror="true">
67
                <arg line="-cp ${build-eej.dir}/saxon9ee.jar"/>
68
                <arg line="com.saxonica.Validate"/>
69
                <arg line="-t"/>
70
                <arg line="-s:${build-resources.dir}/samples/config/@{file}"/>
71
                <arg line="-xsd:${build-resources.dir}/samples/config/@{schema}"/>
72
                <!-- TODO xslt30.xsd should no longer be required -->
73
            </exec>
74
        </sequential>
75
    </macrodef>
76

    
77
    <target name="test-cmd-config" depends="samples-j">
78
        <cmd-config schema="config.xsd" file="config.xml"/>
79
        <cmd-config schema="config.xsd" file="config-HE.xml"/>
80
        <cmd-config schema="annotatedConfig.xsd" file="config.xml"/>
81
    </target>
82

    
83
    <!-- Command line books tests -->
84
    <macrodef name="cmd-books-xslt1"
85
        description="Test command line transform1">
86
        <attribute name="version"/>
87
        <element name="other-arg" optional="yes"/>
88
        <sequential>
89
            <exec executable="java"
90
                failonerror="true">
91
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
92
                <arg line="net.sf.saxon.Transform"/>
93
                <arg line="-t"/>
94
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
95
                <arg line="-xsl:${build-resources.dir}/samples/styles/books.xsl"/>
96
                <arg line="-o:${temp-output.dir}/@{version}j/output.html"/>
97
                <other-arg/>
98
            </exec>
99
        </sequential>
100
    </macrodef>
101

    
102
    <macrodef name="cmd-books-xslt2"
103
              description="Test command line transform2">
104
        <attribute name="version"/>
105
        <sequential>
106
            <exec executable="java"
107
                  failonerror="true">
108
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
109
                <arg line="net.sf.saxon.Transform"/>
110
                <arg line="-t"/>
111
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
112
                <arg line="-xsl:${build-resources.dir}/samples/styles/books-csv.xsl"/>
113
            </exec>
114
        </sequential>
115
    </macrodef>
116
    
117
    <macrodef name="cmd-books-xquery1"
118
        description="Test command line query1">
119
        <attribute name="version"/>
120
        <sequential>
121
            <exec executable="java"
122
                failonerror="true">
123
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar${Z}${license.dir"/>
124
                <arg line="net.sf.saxon.Query"/>   
125
                <arg line="-t"/>
126
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
127
                <arg line="-q:${build-resources.dir}/samples/query/books.xq"/>                
128
            </exec>
129
        </sequential>
130
    </macrodef>  
131
    
132
    <macrodef name="cmd-books-xquery2"
133
        description="Test command line query2">
134
        <attribute name="version"/>
135
        <sequential>
136
            <exec executable="java"
137
                failonerror="true">
138
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
139
                <arg line="net.sf.saxon.Query"/>   
140
                <arg line="-t"/>
141
                <arg line="-s:${build-resources.dir}/samples/data/books.xml"/>
142
                <arg line="-qs:saxon:line-number((//*)[last()])"/>
143
                <arg line="-l:on"/>
144
            </exec>
145
        </sequential>
146
    </macrodef> 
147
    
148
    <target name="test-cmd-books-hej" depends="samples-j">
149
        <cmd-books-xslt1 version="he">
150
            <other-arg>
151
                <arg line="top-author='Thomas Hardy'"/>
152
            </other-arg>
153
        </cmd-books-xslt1>
154
        <cmd-books-xslt2 version="he"/>
155
        <cmd-books-xquery1 version="he"/>
156
    </target>   
157

    
158
    <target name="test-cmd-books-j" depends="test-cmd-books-hej"/>
159

    
160
    <!-- Command line Knight's Tour tests -->
161
    <macrodef name="cmd-knights-tour-xslt"
162
              description="Test command line Knight's Tour transform">
163
        <attribute name="version"/>
164
        <element name="other-arg" optional="yes"/>
165
        <sequential>
166
            <exec executable="java"
167
                  failonerror="true">
168
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
169
                <arg line="net.sf.saxon.Transform"/>
170
                <arg line="-it:main"/>
171
                <arg line="-xsl:${build-resources.dir}/samples/styles/tour.xsl"/>
172
                <other-arg/>
173
                <arg line="-o:${temp-output.dir}/@{version}j/tour-t.html"/>
174
            </exec>
175
        </sequential>
176
    </macrodef>
177

    
178
    <macrodef name="cmd-knights-tour-xquery"
179
              description="Test command line Knight's Tour query">
180
        <attribute name="version"/>
181
        <element name="other-arg" optional="yes"/>
182
        <sequential>
183
            <exec executable="java"
184
                  failonerror="true">
185
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
186
                <arg line="net.sf.saxon.Query"/>
187
                <arg line="-q:${build-resources.dir}/samples/query/tour.xq"/>
188
                <other-arg/>
189
                <arg line="-o:${temp-output.dir}/@{version}j/tour-q.html"/>
190
            </exec>
191
        </sequential>
192
    </macrodef>
193

    
194
    <target name="test-cmd-knights-tour-j" depends="samples-j">
195
        <cmd-knights-tour-xslt version="he">
196
            <other-arg>
197
                <arg line="start=a6"/>
198
            </other-arg>
199
        </cmd-knights-tour-xslt>
200
        <cmd-knights-tour-xquery version="he">
201
            <other-arg>
202
                <arg line="start=e5"/>
203
            </other-arg>
204
        </cmd-knights-tour-xquery>
205
    </target>
206

    
207
    <!-- Command line Shakespeare transform tests -->
208
    <macrodef name="cmd-othello-xslt"
209
              description="Test command line Othello transform">
210
        <attribute name="version"/>
211
        <sequential>
212
            <exec executable="java"
213
                  failonerror="true">
214
                <arg line="-cp ${build-@{version}j.dir}/saxon9@{version}.jar"/>
215
                <arg line="net.sf.saxon.Transform"/>
216
                <arg line="-t"/>
217
                <arg line="-s:${build-resources.dir}/samples/data/othello.xml"/>
218
                <arg line="-xsl:${build-resources.dir}/samples/styles/play.xsl"/>
219
                <arg line="dir=${temp-output.dir}/@{version}j/playhtml"/>
220
            </exec>
221
        </sequential>
222
    </macrodef>
223

    
224
    <target name="test-cmd-othello-j" depends="samples-j">
225
        <cmd-othello-xslt version="he"/>
226
    </target>
227

    
228
    <!-- XPathExample sample tests -->
229
    <property name="LF" value="&#x0A;" />
230
    <macrodef name="samples-XPathExample"
231
              description="Run test of XPathExample sample">
232
        <attribute name="version"/>
233
        <attribute name="search-word"/>
234
        <attribute name="app" default="he/XPathExample"/>
235
        <sequential>
236
            <exec executable="java"
237
                  dir="${build-resources.dir}/samples"
238
                  inputstring="@{search-word}&#x0A;."
239
                  failonerror="true">
240
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar"/>
241
                <arg line="@{app} data/othello.xml"/>
242
            </exec>
243
        </sequential>
244
    </macrodef>
245

    
246
    <target name="test-samples-XPathExample-j" depends="samples-j">
247
        <samples-XPathExample version="he" search-word="handkerchief"/>
248
        <samples-XPathExample version="he" search-word="trouble" app="he/XPathExampleDOM"/>
249
    </target>
250

    
251
    <!-- Command line Bible transform tests -->
252
    <macrodef name="cmd-bible-xslt"
253
              description="Test command line Bible transform">
254
        <attribute name="version"/>
255
        <sequential>
256
            <exec executable="java"
257
                  dir="${build-resources.dir}/samples"
258
                  failonerror="true">
259
                <arg line="-cp ${basedir}/${build-resources.dir}/samples${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar"/>
260
                <arg line="net.sf.saxon.Transform"/>
261
                <arg line="-t"/>
262
                <arg line="${basedir}/../tests/junit/testdata/bible/nt/nt.xml"/>
263
                <arg line="styles/bible.xsl"/>
264
                <arg line="dir=${basedir}/${temp-output.dir}/@{version}j/biblehtml"/>
265
            </exec>
266
        </sequential>
267
    </macrodef>
268

    
269
    <target name="test-cmd-bible-j" depends="samples-j">
270
        <cmd-bible-xslt version="he"/>      
271
    </target>
272

    
273

    
274

    
275
    <!-- S9APIExamples sample tests -->
276
    <macrodef name="samples-s9api"
277
        description="Run test of s9api samples">
278
        <attribute name="version"/>
279
        <attribute name="target"/>
280
        <sequential>
281
            <!--<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"/>-->
282
            <exec executable="java"
283
                dir="${build-resources.dir}/samples"
284
                failonerror="true">
285
                <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"/>
286
                <arg line="he/S9APIExamples"/>
287
                <arg line="@{target}"/>
288
            </exec>
289
        </sequential>
290
    </macrodef>
291
    
292
    <target name="test-samples-s9api-hej" depends="samples-j">
293
        <samples-s9api version="he" target="QueryA"/>
294
        <samples-s9api version="he" target="QueryB"/>
295
        <samples-s9api version="he" target="QueryC"/>
296
        <samples-s9api version="he" target="QueryD"/>
297
        <samples-s9api version="he" target="QueryE"/>
298
        <!--<samples-s9api version="he" target="QueryF"/>--> <!-- This test should fail in HE -->
299
<!--        <samples-s9api version="he" target="QueryG"/>-->
300
<!--        <samples-s9api version="he" target="QueryUpdateA"/>-->
301
        <samples-s9api version="he" target="TransformA"/>
302
        <samples-s9api version="he" target="TransformB"/>
303
        <samples-s9api version="he" target="TransformC"/>
304
        <samples-s9api version="he" target="TransformD"/>
305
        <samples-s9api version="he" target="TransformE"/>
306
        <samples-s9api version="he" target="TransformF"/>
307
        <samples-s9api version="he" target="XPathA"/>
308
        <samples-s9api version="he" target="XPathB"/>
309
<!--        <samples-s9api version="he" target="XPathC"/>-->
310
        <samples-s9api version="he" target="XPathDOM"/>
311
        <samples-s9api version="he" target="SerializeA"/>
312
        <samples-s9api version="he" target="SerializeB"/>
313
        <samples-s9api version="he" target="SerializeC"/>
314
        <!--<samples-s9api version="he" target="SerializeD"/>-->
315
    </target> 
316
        
317
  
318

    
319
    <target name="test-samples-s9api-j" depends="test-samples-s9api-hej"/>
320

    
321
    <!-- JAXPExamples sample tests -->
322
    <macrodef name="samples-JAXPExamples"
323
              description="Run test of JAXPExamples samples">
324
        <attribute name="version"/>
325
        <attribute name="target"/>
326
        <sequential>
327
            <exec executable="java"
328
                  dir="${build-resources.dir}/samples"
329
                  failonerror="true">
330
                <arg line="-cp ${basedir}/${build-resources.dir}/samples/java/classes${Z}${basedir}/${build-@{version}j.dir}/saxon9@{version}.jar"/>
331
                <arg line="he/JAXPExamples"/>
332
                <arg line="@{target}"/>
333
            </exec>
334
        </sequential>
335
    </macrodef>
336

    
337
    <target name="test-samples-JAXPExamples-j" depends="samples-j">
338
        <samples-JAXPExamples version="he" target="all"/>
339
    </target>
340

    
341
 
342

    
343
    <!-- ApplyXPathJAXP sample tests -->
344
    <macrodef name="samples-ApplyXPathJAXP"
345
        description="Run test of ApplyXPathJAXP sample">
346
        <attribute name="version"/>
347
        <attribute name="file"/>
348
        <attribute name="xpath"/>
349
        <attribute name="object-model" default=""/>
350
        <sequential>
351
            <exec executable="java"
352
                dir="${build-resources.dir}/samples"
353
                failonerror="true">
354
                <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"/>
355
                <arg line="he/ApplyXPathJAXP"/>
356
                <arg line="data/@{file}"/>     
357
                <arg line="@{xpath}"/>
358
                <arg line="@{object-model}"/>
359
            </exec>
360
        </sequential>
361
    </macrodef>
362
    
363
    <target name="test-samples-ApplyXPathJAXP-hej" depends="samples-j">
364
        <samples-ApplyXPathJAXP version="he" file="books.xml" xpath="BOOKLIST/BOOKS/ITEM[1]/AUTHOR" object-model="saxon"/>
365
        <samples-ApplyXPathJAXP version="he" file="books.xml" xpath="count(//ITEM)" object-model="dom"/>
366
    </target>
367
    
368
   
369
    <target name="test-samples-ApplyXPathJAXP-j" depends="test-samples-ApplyXPathJAXP-hej"/>
370

    
371
   
372

    
373
    <!-- ============ TARGETS TO RUN TEST SUITE TESTS =============== -->
374

    
375

    
376
    <!-- Running XSLT 3.0 test catalog -->
377

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

    
380
    <target name="compile-testdrivers-j">
381
        <delete dir="${build.dir}/test-drivers"/>
382
        <mkdir dir="${build.dir}/test-drivers"/>
383
        <copy todir="${build.dir}/test-drivers">
384
            <fileset dir="${source-hej.dir}">
385
                <include name="net/sf/saxon/testdriver/*.java"/>
386
            </fileset>
387
        </copy>
388
        <javac debug="true" debuglevel="${build.debuglevel}"
389
               destdir="${build.dir}/test-drivers"
390
               srcdir="${build.dir}/test-drivers" source="${build.compiler.source}"
391
               target="${build.compiler.target}" includeantruntime="false">
392
            <include name="com/saxonica/testdriver/*.java"/>
393
            <include name="net/sf/saxon/testdriver/*.java"/>
394
            <classpath>
395
                <path refid="classpath-samples"/>
396
            </classpath>
397
        </javac>
398
    </target>
399

    
400

    
401
    <!-- XSLT 3.0 test suite -->
402

    
403
    <!-- Create date-stamped directory for new XSLT 3.0 test results, containing exceptions file -->
404
    <target name="xslt30-test-results-dir">
405
        <tstamp/>
406
        <mkdir dir="${test-results.dir}/xslt30/${DSTAMP}"/>
407
        <mkdir dir="${test-results.dir}/xslt30/${DSTAMP}/results"/>
408
        <copy file="${test-results.dir}/xslt30/exceptions.xml"
409
              tofile="${test-results.dir}/xslt30/${DSTAMP}/exceptions.xml">
410
        </copy>
411
        <mkdir dir="${test-results.dir}/xslt30extra/${DSTAMP}"/>
412
        <mkdir dir="${test-results.dir}/xslt30extra/${DSTAMP}/results"/>
413
        <copy file="${test-results.dir}/xslt30extra/exceptions.xml"
414
              tofile="${test-results.dir}/xslt30extra/${DSTAMP}/exceptions.xml">
415
        </copy>
416
    </target>
417

    
418
    <!-- Running XSLT 3.0 test catalog -->
419
    <macrodef name="xslt30-tests"
420
              description="Run XSLT 3.0 test catalog">
421
        <attribute name="catalog" default="xslt30"/>
422
        <attribute name="version"/>
423
        <attribute name="lang"/>
424
        <attribute name="bc" default=""/>
425
        <attribute name="test-driver" default="com.saxonica.testdriver.Xslt30TestSuiteDriver"/>
426
        <element name="other-arg" optional="yes"/>
427
        <sequential>
428
            <exec executable="java"
429
                  failonerror="true">
430
                <arg line="-Xmx2G"/>
431
                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar${Z}${build-@{version}j.dir}/saxon9-sql.jar${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"/>
432
                <!--                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar"/>-->
433
                <arg line="@{test-driver}"/>
434
                <arg line="${@{catalog}.dir}"/>
435
                <arg line="catalog.xml"/>
436
                <arg line="-o:${test-results.dir}/@{catalog}/${DSTAMP}"/>
437
                <arg line="-lang:XT@{lang}0"/>
438
                <arg line= "-ps:off"/>
439
                <!--<arg line="-quiet"/>-->
440
                <!--<arg line="-s:threads"/>
441
                <arg line="-t:threads-022"/>-->
442
                <arg line="-debug"/>
443
                <other-arg/>            </exec>
444
            <copy file="${test-results.dir}/@{catalog}/${DSTAMP}/results_XSLT@{lang}.0_${version}.xml"
445
                  tofile="${test-results.dir}/@{catalog}/${DSTAMP}/results/saxon-@{version}-XT@{lang}0@{bc}.xml">
446
            </copy>
447
        </sequential>
448
    </macrodef>
449

    
450
    <!-- Running XSLT 3.0 test catalog with HE -->
451
    <target name="xslt30-tests-hej" depends="compile-testdrivers-j, xslt30-test-results-dir">
452
        <xslt30-tests version="he" lang="3" test-driver="net.sf.saxon.testdriver.Xslt30TestSuiteDriverHE"/>
453
    </target>
454
 
455
   
456
    <!-- QT3 test suites -->
457

    
458
    <!-- Create date-stamped directory for new QT3 test results -->
459
    <target name="qt3-test-results-dir">
460
        <tstamp/>
461
        <mkdir dir="${test-results.dir}/qt3/${DSTAMP}"/>
462
        <mkdir dir="${test-results.dir}/qt3/${DSTAMP}/results"/>
463
        <copy file="${test-results.dir}/qt3/exceptions.xml"
464
              tofile="${test-results.dir}/qt3/${DSTAMP}/exceptions.xml">
465
        </copy>
466
        <mkdir dir="${test-results.dir}/qt3extra/${DSTAMP}"/>
467
        <mkdir dir="${test-results.dir}/qt3extra/${DSTAMP}/results"/>
468
    </target>
469

    
470
    <!-- Running QT3 test catalog -->
471
    <property name="XP20" value="XPath2.0"/>
472
    <property name="XP30" value="XPath3.0"/>
473
    <property name="XP31" value="XPath3.1"/>
474
    <property name="XQ10" value="XQuery1.0"/>
475
    <property name="XQ30" value="XQuery3.0"/>
476
    <property name="XQ31" value="XQuery3.1"/>
477
    <macrodef name="qt3-tests"
478
              description="Run QT3 test catalog">
479
        <attribute name="catalog"/>
480
        <attribute name="version"/>
481
        <attribute name="lang"/>
482
        <attribute name="bc" default=""/>
483
        <attribute name="test-driver" default="com.saxonica.testdriver.QT3TestDriverEE"/>
484
        <element name="other-arg" optional="yes"/>
485
        <sequential>
486
            <exec executable="java"
487
                  failonerror="true">
488
                <arg line="-cp ${build.dir}/test-drivers${Z}${build-@{version}j.dir}/saxon9@{version}.jar${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-->
489
                <arg line="@{test-driver}"/>
490
                <arg line="${@{catalog}.dir}"/>
491
                <arg line="catalog.xml"/>
492
                <arg line="-o:${test-results.dir}/@{catalog}/${DSTAMP}"/>
493
                <arg line="-lang:@{lang}"/>
494
                <other-arg/>
495
            </exec>
496
            <copy file="${test-results.dir}/@{catalog}/${DSTAMP}/results_${@{lang}}_${version}.xml"
497
                  tofile="${test-results.dir}/@{catalog}/${DSTAMP}/results/saxon-@{version}-@{lang}@{bc}.xml">
498
            </copy>
499
        </sequential>
500
    </macrodef>
501

    
502
    <!-- Running W3C QT3 test catalog with HE -->
503
    <target name="qt3-tests-hej" depends="compile-testdrivers-j, qt3-test-results-dir">
504
        <qt3-tests catalog="qt3" version="he" lang="XP20" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
505
        <!--<qt3-tests catalog="qt3" version="he" lang="XP30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>-->
506
        <qt3-tests catalog="qt3" version="he" lang="XP31" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
507
        <!--<qt3-tests catalog="qt3" version="he" lang="XQ10" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
508
        <qt3-tests catalog="qt3" version="he" lang="XQ30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>-->
509
        <qt3-tests catalog="qt3" version="he" lang="XQ31" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
510
    </target>
511

    
512
    <!-- Running W3C QT3 test catalog with PE -->
513
    <target name="qt3-tests-pej" depends="compile-testdrivers-j, qt3-test-results-dir">
514
        <qt3-tests catalog="qt3" version="pe" lang="XP20" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
515
        <!--<qt3-tests catalog="qt3" version="pe" lang="XP30"/>-->
516
        <qt3-tests catalog="qt3" version="pe" lang="XP31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
517
        <!--<qt3-tests catalog="qt3" version="pe" lang="XQ10"/>
518
        <qt3-tests catalog="qt3" version="pe" lang="XQ30"/>-->
519
        <qt3-tests catalog="qt3" version="pe" lang="XQ31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
520
    </target>
521

    
522
    <!-- Running W3C QT3 test catalog with EE 
523
         These are split into 6 subtargets such that each can be run independently -->
524
    
525
    <!-- MHK 2017-05-26: dropped all except XP20, XP31, and XQ31 as Saxon 9.8 no longer supports other XP/XQ versions -->
526
    <!--<target name="qt3-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir, 
527
        qt3-tests-eej-XP20, qt3-tests-eej-XP30, qt3-tests-eej-XP31, qt3-tests-eej-XQ10,
528
        qt3-tests-eej-XQ30, qt3-tests-eej-XQ31">-->
529
    <!--</target>-->
530
    <target name="qt3-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir, 
531
        qt3-tests-eej-XP20, qt3-tests-eej-XP31, qt3-tests-eej-XQ31">
532
    </target>
533

    
534
    <target name="qt3-tests-eej-XP20" depends="compile-testdrivers-j, qt3-test-results-dir">        
535
        <qt3-tests catalog="qt3" version="ee" lang="XP20" bc="-off" >
536
            <other-arg>
537
                <arg line= "-bytecode:off"/>
538
            </other-arg>
539
        </qt3-tests>
540
        <qt3-tests catalog="qt3" version="ee" lang="XP20" bc="-on">
541
            <other-arg>
542
                <arg line= "-bytecode:on"/>
543
            </other-arg>
544
        </qt3-tests>
545
    </target>
546
    <target name="qt3-tests-eej-XP30" depends="compile-testdrivers-j, qt3-test-results-dir">
547
        <qt3-tests catalog="qt3" version="ee" lang="XP30" bc="-off">
548
            <other-arg>
549
                <arg line= "-bytecode:off"/>
550
            </other-arg>
551
        </qt3-tests>
552
        <qt3-tests catalog="qt3" version="ee" lang="XP30" bc="-on">
553
            <other-arg>
554
                <arg line= "-bytecode:on"/>
555
            </other-arg>
556
        </qt3-tests>
557
    </target>
558
    <target name="qt3-tests-eej-XP31" depends="compile-testdrivers-j, qt3-test-results-dir">
559
        <qt3-tests catalog="qt3" version="ee" lang="XP31" bc="-off">
560
            <other-arg>
561
                <arg line= "-bytecode:off"/>
562
            </other-arg>
563
        </qt3-tests>
564
        <qt3-tests catalog="qt3" version="ee" lang="XP31" bc="-on">
565
            <other-arg>
566
                <arg line= "-bytecode:on"/>
567
            </other-arg>
568
        </qt3-tests>
569
    </target>
570
    <target name="qt3-tests-eej-XQ10" depends="compile-testdrivers-j, qt3-test-results-dir">        
571
        <qt3-tests catalog="qt3" version="ee" lang="XQ10" bc="-off">
572
            <other-arg>
573
                <arg line= "-bytecode:off"/>
574
            </other-arg>
575
        </qt3-tests>
576
        <qt3-tests catalog="qt3" version="ee" lang="XQ10" bc="-on">
577
            <other-arg>
578
                <arg line= "-bytecode:on"/>
579
            </other-arg>
580
        </qt3-tests>
581
    </target>
582
    <target name="qt3-tests-eej-XQ30" depends="compile-testdrivers-j, qt3-test-results-dir">        
583
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-off">
584
            <other-arg>
585
                <arg line= "-bytecode:off"/>
586
            </other-arg>
587
        </qt3-tests>
588
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-on">
589
            <other-arg>
590
                <arg line= "-bytecode:on"/>
591
            </other-arg>
592
        </qt3-tests>
593
        <qt3-tests catalog="qt3" version="ee" lang="XQ30" bc="-on-unfolded">
594
            <other-arg>
595
                <arg line= "-bytecode:on"/>
596
                <arg line="-unfolded:yes"/>
597
            </other-arg>
598
        </qt3-tests>
599
    </target>
600
    <target name="qt3-tests-eej-XQ31" depends="compile-testdrivers-j, qt3-test-results-dir">
601
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-off">
602
            <other-arg>
603
                <arg line= "-bytecode:off"/>
604
            </other-arg>
605
        </qt3-tests>
606
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-on">
607
            <other-arg>
608
                <arg line= "-bytecode:on"/>
609
            </other-arg>
610
        </qt3-tests>
611
        <qt3-tests catalog="qt3" version="ee" lang="XQ31" bc="-on-unfolded">
612
            <other-arg>
613
                <arg line= "-bytecode:on"/>
614
                <arg line="-unfolded:yes"/>
615
            </other-arg>
616
        </qt3-tests>
617
    </target>
618
    
619

    
620

    
621

    
622

    
623
    <!-- Running Saxon's QT3extra test catalog with HE -->
624
    <!--<target name="qt3extra-tests-hej" depends="compile-testdrivers-j, qt3-test-results-dir">
625
        <qt3-tests catalog="qt3extra" version="he" lang="XP20" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
626
        <qt3-tests catalog="qt3extra" version="he" lang="XP30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
627
        <qt3-tests catalog="qt3extra" version="he" lang="XQ10" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
628
        <qt3-tests catalog="qt3extra" version="he" lang="XQ30" test-driver="net.sf.saxon.testdriver.QT3TestDriverHE"/>
629
    </target>-->
630

    
631
    <!-- Running Saxon's QT3extra test catalog with PE -->
632
    <target name="qt3extra-tests-pej" depends="compile-testdrivers-j, qt3-test-results-dir">
633
        <qt3-tests catalog="qt3extra" version="pe" lang="XP20" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
634
        <!--<qt3-tests catalog="qt3extra" version="pe" lang="XP30"/>-->
635
        <qt3-tests catalog="qt3extra" version="pe" lang="XP31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
636
        <!--<qt3-tests catalog="qt3extra" version="pe" lang="XQ10"/>
637
        <qt3-tests catalog="qt3extra" version="pe" lang="XQ30"/>-->
638
        <qt3-tests catalog="qt3extra" version="pe" lang="XQ31" test-driver="com.saxonica.testdriver.QT3TestDriverPE"/>
639
    </target>
640

    
641
    <!-- Running Saxon's QT3extra test catalog with EE -->
642
    <target name="qt3extra-tests-eej" depends="compile-testdrivers-j, qt3-test-results-dir">
643
        <qt3-tests catalog="qt3extra" version="ee" lang="XP20" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
644
            <other-arg>
645
                <arg line= "-bytecode:off"/>
646
            </other-arg>
647
        </qt3-tests>
648
        <qt3-tests catalog="qt3extra" version="ee" lang="XP20" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
649
            <other-arg>
650
                <arg line= "-bytecode:on"/>
651
            </other-arg>
652
        </qt3-tests>
653
        <qt3-tests catalog="qt3extra" version="ee" lang="XP30" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
654
            <other-arg>
655
                <arg line= "-bytecode:off"/>
656
            </other-arg>
657
        </qt3-tests>
658
        <qt3-tests catalog="qt3extra" version="ee" lang="XP30" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
659
            <other-arg>
660
                <arg line= "-bytecode:on"/>
661
            </other-arg>
662
        </qt3-tests>
663
        <qt3-tests catalog="qt3extra" version="ee" lang="XP31" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
664
            <other-arg>
665
                <arg line= "-bytecode:off"/>
666
            </other-arg>
667
        </qt3-tests>
668
        <qt3-tests catalog="qt3extra" version="ee" lang="XP31" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
669
            <other-arg>
670
                <arg line= "-bytecode:on"/>
671
            </other-arg>
672
        </qt3-tests>
673
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ10" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
674
            <other-arg>
675
                <arg line= "-bytecode:off"/>
676
            </other-arg>
677
        </qt3-tests>
678
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ10" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
679
            <other-arg>
680
                <arg line= "-bytecode:on"/>
681
            </other-arg>
682
        </qt3-tests>
683
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ30" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
684
            <other-arg>
685
                <arg line= "-bytecode:off"/>
686
            </other-arg>
687
        </qt3-tests>
688
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ30" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
689
            <other-arg>
690
                <arg line= "-bytecode:on"/>
691
            </other-arg>
692
        </qt3-tests>
693
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ31" bc="-off" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
694
            <other-arg>
695
                <arg line= "-bytecode:off"/>
696
            </other-arg>
697
        </qt3-tests>
698
        <qt3-tests catalog="qt3extra" version="ee" lang="XQ31" bc="-on" test-driver="com.saxonica.testdriver.QT3TestDriverEE">
699
            <other-arg>
700
                <arg line= "-bytecode:on"/>
701
            </other-arg>
702
        </qt3-tests>
703
    </target>
704

    
705

    
706

    
707
    
708
</project>
(5-5/5)