tenderlove / dom-test-suite

2001 Dom test suite

tenderlove (author)
Sun Aug 31 16:22:01 -0700 2008
commit  c28bfab0e66a8b9125e690dd2e6c08c8e367553e
tree    ec271e0cd19e1bcdd30a97848ff9ee23df5132dc
parent  b9538458499af0f0911fed42018c0f48e10df409
dom-test-suite / clover.xml
100644 171 lines (134 sloc) 5.302 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0"?>
<!--
Copyright (c) 2003 World Wide Web Consortium,
(Massachusetts Institute of Technology, Institut National de
Recherche en Informatique et en Automatique, Keio University). All
Rights Reserved. This program is distributed under the W3C's Software
Intellectual Property License. This program is distributed in the
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
See W3C License http://www.w3.org/Consortium/Legal/ for more details.
-->
 
<!--
$Log: clover.xml,v $
Revision 1.5 2004-01-05 08:27:14 dom-ts-4
XHTML compatible L3 Core tests (bug 455)
 
Revision 1.4 2003/12/22 17:39:46 dom-ts-4
Modified to use Xalan's XPath implementation (bug 397)
 
Revision 1.3 2003/12/06 06:50:29 dom-ts-4
More fixes for L&S (Bug 396)
 
Revision 1.2 2003/12/05 07:09:12 dom-ts-4
build.xml refactoring and L3 distributions (bug 398)
 
Revision 1.1 2003/12/02 04:08:22 dom-ts-4
Implementation coverage using clover (bug 397)
 
 
-->
 
<!--
 
This project instruments xercesImpl.jar using Clover
(http://www.thecortex.net/clover), runs DOM test suites and
generates a coverage report
 
-->
 
<project default="usage" basedir=".">
 
<property name="domts.build.dir" value="build"/>
<property name="domts.lib.dir" value="lib"/>
<property name="clover.build.dir" location="build/clover"/>
<property name="clover.jar" location="/clover-1.2/lib/clover.jar"/>
<property name="xerces.java.dir" location="../xerces/java"/>
<property name="xalan.java.dir" location="../xalan/java"/>
<property name="junit.jar" location="${domts.lib.dir}/junit.jar"/>
 
<taskdef classpath="${clover.jar}" resource="clovertasks"/>
 
<target name="with.clover">
<clover-setup initString="xercesImpl.db"/>
</target>
 
<target name="usage">
<echo message="common targets:"/>
</target>
 
<target name="init" depends="with.clover">
<mkdir dir="${clover.build.dir}/xerces"/>
</target>
 
<target name="clean">
<delete dir="${clover.build.dir}"/>
<delete file="xercesImpl.db"/>
</target>
 
<target name="instrument-xerces" depends="init">
<ant dir="${xerces.java.dir}" target="jar-dom3">
<property name="build.dir" location="${clover.build.dir}/xerces"/>
</ant>
<ant dir="${xerces.java.dir}" target="apijar-dom3">
<property name="build.dir" location="${clover.build.dir}/xerces"/>
</ant>
</target>
 
<target name="instrument-xalan" depends="init">
<ant dir="${xalan.java.dir}" target="jar">
<property name="build.dir" location="${clover.build.dir}/xalan"/>
</ant>
</target>
 
<target name="instrument" depends="instrument-xerces, instrument-xalan"/>
 
<target name="run-suite">
<java fork="true"
classname="${testclass}">
<classpath>
<pathelement location="${clover.build.dir}/xerces/dom3-xercesImpl.jar"/>
<pathelement location="${clover.build.dir}/xerces/dom3-xml-apis.jar"/>
<pathelement location="${clover.build.dir}/xalan/xalan.jar"/>
<pathelement location="${domts.build.dir}/junit-run.jar"/>
<pathelement location="${domts.build.dir}/${testjar}"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${clover.jar}"/>
</classpath>
</java>
</target>
 
<target name="dom1-core" depends="instrument">
<antcall target="run-suite">
<param name="testclass" value="org.w3c.domts.level1.core.alltests"/>
<param name="testjar" value="dom1-core.jar"/>
</antcall>
</target>
 
<target name="dom2-core" depends="instrument">
<antcall target="run-suite">
<param name="testclass" value="org.w3c.domts.level2.core.alltests"/>
<param name="testjar" value="dom2-core.jar"/>
</antcall>
</target>
 
<target name="dom2-events" depends="instrument">
<antcall target="run-suite">
<param name="testclass" value="org.w3c.domts.level2.events.alltests"/>
<param name="testjar" value="dom2-events.jar"/>
</antcall>
</target>
 
 
<target name="dom3-core" depends="instrument">
<antcall target="run-suite">
<param name="testclass" value="org.w3c.domts.level3.core.alltests"/>
<param name="testjar" value="dom3-core.jar"/>
</antcall>
</target>
 
 
<target name="dom3-ls" depends="instrument">
<antcall target="run-suite">
<param name="testclass" value="org.w3c.domts.level3.ls.alltests"/>
<param name="testjar" value="dom3-ls.jar"/>
</antcall>
</target>
 
 
<target name="dom3-xpath" depends="instrument">
<java fork="true" classname="junit.textui.TestRunner">
<arg value="org.w3c.domts.level3.xpath.TestXalan"/>
<classpath>
<pathelement location="${clover.build.dir}/xerces/dom3-xercesImpl.jar"/>
<pathelement location="${clover.build.dir}/xerces/dom3-xml-apis.jar"/>
<pathelement location="${clover.build.dir}/xalan/xalan.jar"/>
<pathelement location="${domts.build.dir}/junit-run.jar"/>
<pathelement location="${domts.build.dir}/dom3-xpath.jar"/>
<pathelement location="${junit.jar}"/>
<pathelement location="${clover.jar}"/>
</classpath>
</java>
</target>
 
 
<target name="all-tests" depends="dom1-core, dom2-core, dom2-events"/>
 
<!-- target name="all-tests" depends="dom1-core, dom2-core, dom2-events, dom3-core, dom3-ls, dom3-xpath"/ -->
 
 
<target name="report" depends="init">
<clover-report>
<current title="DOM Test Suite coverage" outfile="${clover.build.dir}/report">
<format type="html"/>
</current>
</clover-report>
</target>
 
</project>