blob: 88b61c66c580ad9158c68e74835cee0851e05781 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="user" default="build" basedir=".">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +00002 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="user" />
kjin@google.combdabce32010-09-08 22:25:08 +00004 <property name="test.args" value="-ea" />
5 <property name="test.jvmargs" value="-ea" />
fabbott@google.com25305472009-06-10 21:39:00 +00006
jat@google.combf79ddb2009-10-14 07:44:30 +00007 <!-- support old variables names -->
8 <condition property="gwt.hosts.web.remote" value="${gwt.remote.browsers}">
9 <isset property="gwt.remote.browsers" />
10 </condition>
11 <condition property="gwt.hosts.web.selenium" value="${gwt.selenium.hosts}">
12 <isset property="gwt.selenium.hosts" />
13 </condition>
14
jat@google.com57b69402009-10-14 18:08:29 +000015 <!--
16 BrowserManagerServer_Stub compiled using rmic, which doesn't generate
17 full source code
18 -->
jlabanca@google.com81244562009-08-05 19:55:36 +000019 <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" />
20
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000021 <import file="${gwt.root}/common.ant.xml" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000022
jat@google.com8cf77ce2009-10-16 01:47:08 +000023 <property name="test.timeout" value="4" />
jlabanca@google.com81244562009-08-05 19:55:36 +000024 <property name="emma.merged.out" value="${junit.out}/emma-coverage" />
25 <property name="gwt.junit.testcase.web.includes" value="${gwt.junit.testcase.includes}" />
26 <property name="gwt.junit.testcase.web.excludes" value="" />
27
jat@google.combf79ddb2009-10-14 07:44:30 +000028 <property name="gwt.junit.testcase.dev.includes" value="${gwt.junit.testcase.includes}" />
29 <property name="gwt.junit.testcase.dev.excludes" value="" />
30
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +000031 <property name="benchmark.timeout" value="30" />
32 <property name="gwt.benchmark.testcase.web.includes" value="${gwt.benchmark.testcase.includes}" />
33 <property name="gwt.benchmark.testcase.web.excludes" value="${gwt.benchmark.testcase.excludes}" />
34
jat@google.com57b69402009-10-14 18:08:29 +000035 <!--
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +000036 Test args can be specified per test target type.
37 -->
kjin@google.combdabce32010-09-08 22:25:08 +000038 <property name="test.args.dev.remote" value="${test.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}" />
39 <property name="test.args.dev.selenium" value='${test.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"' />
40 <property name="test.args.web.remote" value="${test.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}" />
41 <property name="test.args.web.selenium" value='${test.args} -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}"' />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +000042
43 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000044 Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the
45 value is "dollar") or Foo_Inner_fr.properties (for "bar")
46 -->
47 <property name="gwt.i18n.test.InnerClassChar" value="dollar"/>
48
spoon@google.com11b85e12010-05-28 15:44:36 +000049 <!-- Platform shouldn't matter here, just picking one -->
50 <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" />
51
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000052 <!--
fabbott@google.com25305472009-06-10 21:39:00 +000053 Classpaths added for test cases
54 -->
55 <path id="test.extraclasspath">
jat@google.comacf97d32009-09-21 22:06:15 +000056 <pathelement location="${gwt.build}/out/dev/bin-test" />
bobv@google.comb39b79c2009-06-18 15:58:28 +000057 <pathelement location="test-super" />
fabbott@google.com25305472009-06-10 21:39:00 +000058 <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" />
jat@google.combf79ddb2009-10-14 07:44:30 +000059 <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/>
60 <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/>
61 <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/>
62 <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/>
kjin@google.comb289ff42010-08-20 14:59:07 +000063 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
64 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar" />
amitmanjhi@google.comd241b1d2010-09-03 05:25:06 +000065 <pathelement location="${gwt.tools.lib}/apache/log4j/log4j-1.2.16.jar" />
66 <pathelement location="${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final.jar" />
67 <pathelement location="${gwt.tools.lib}/slf4j/slf4j-api/slf4j-api-1.6.1.jar" />
68 <pathelement location="${gwt.tools.lib}/slf4j/slf4j-log4j12/slf4j-log4j12-1.6.1.jar" />
kjin@google.comb289ff42010-08-20 14:59:07 +000069 <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" />
spoon@google.com11b85e12010-05-28 15:44:36 +000070 <pathelement location="${gwt.dev.jar}" />
fabbott@google.com25305472009-06-10 21:39:00 +000071 </path>
72
jlabanca@google.comf780b7a2009-10-16 16:36:03 +000073 <target name="compile" description="Compile all class files"
74 unless="compile.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000075 <mkdir dir="${javac.out}" />
tomerigo@google.comc2163e62010-02-01 16:08:26 +000076 <gwt.javac excludes="**/super/**">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000077 <classpath>
scottb@google.com4f57bc22009-01-16 22:46:42 +000078 <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000079 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
80 <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" />
81 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
bobv@google.coma933c8b2009-03-26 02:12:25 +000082 <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +000083 <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
amitmanjhi@google.comc278ce82010-06-28 15:45:45 +000084 <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" />
amitmanjhi@google.coma2d73122010-06-24 21:48:00 +000085 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" />
nchalko@google.com90f14a02010-07-28 19:08:32 +000086 <!-- The source is included so validation is available from client code -->
87 <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000088 <pathelement location="${gwt.dev.jar}" />
89 </classpath>
90 </gwt.javac>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000091
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000092 <!-- Build the BrowserManagerServer_Stub to allow remote browser testing -->
93 <rmic base="${javac.out}"
jat@google.com57b69402009-10-14 18:08:29 +000094 classname="com.google.gwt.junit.remote.BrowserManagerServer"
95 stubversion="1.2"/>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000096 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000097
fabbott@google.com0e2dc6282008-08-22 16:09:01 +000098 <!--
jat@google.comacf97d32009-09-21 22:06:15 +000099 Compile test code for dev to pick up TypeOracleTestUtils and others.
jat@google.com57b69402009-10-14 18:08:29 +0000100 Compiles test dependencies in dev/core
spoon@google.comd0b00f82009-03-27 14:58:53 +0000101 -->
jat@google.com57b69402009-10-14 18:08:29 +0000102 <target name="compile.dev.tests">
jat@google.comc090a072009-09-21 17:39:53 +0000103 <gwt.ant dir="../dev" target="compile.tests" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000104 </target>
spoon@google.comd0b00f82009-03-27 14:58:53 +0000105
jat@google.com57b69402009-10-14 18:08:29 +0000106 <!--
107 Compiles the test code for this project
108 -->
jat@google.come0fa5b12009-10-13 23:57:19 +0000109 <target name="compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000110 depends="compile.dev.tests, compile.emma.if.enabled"
111 unless="compile.tests.complete">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000112 <mkdir dir="${javac.junit.out}" />
jat@google.com57b69402009-10-14 18:08:29 +0000113 <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**"
114 destdir="${javac.junit.out}">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000115 <classpath>
116 <pathelement location="${javac.out}" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000117 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
118 <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" />
spoon@google.com11b85e12010-05-28 15:44:36 +0000119 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000120 </classpath>
121 </gwt.javac>
122 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000123
jat@google.combf79ddb2009-10-14 07:44:30 +0000124 <target name="build" depends="compile"
125 description="Build and package this project">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000126 <mkdir dir="${gwt.build.lib}" />
127 <gwt.jar>
128 <fileset dir="src" excludes="**/package.html" />
129 <fileset dir="super" excludes="**/package.html" />
130 <fileset dir="${javac.out}" />
scottb@google.com171f3f52009-08-11 19:50:31 +0000131 <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" excludes="**/*.java"/>
bobv@google.coma933c8b2009-03-26 02:12:25 +0000132 <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" />
bobv@google.com93569172010-01-15 19:17:28 +0000133 <zipfileset src="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000134 </gwt.jar>
135 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000136
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000137 <target name="checkstyle" description="Static analysis of source">
138 <gwt.checkstyle>
nchalko@google.comeb3e87a2010-08-05 20:48:12 +0000139 <fileset dir="src" >
140 <exclude name="javax/validation/super/javax/validation/constraints/Pattern.java"/>
nchalko@google.comb1077dc2010-08-13 13:36:43 +0000141 <exclude name="javax/validation/super/javax/validation/spi/ConfigurationState.java"/>
142 <exclude name="javax/validation/super/javax/validation/MessageInterpolator.java"/>
143 <exclude name="javax/validation/super/javax/validation/Configuration.java"/>
144 <exclude name="javax/validation/super/javax/validation/Validation.java"/>
145 </fileset>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000146 <fileset dir="super/com/google/gwt/emul" />
147 <fileset dir="super/com/google/gwt/junit/translatable" />
148 </gwt.checkstyle>
scottb@google.com6de97562009-11-03 21:04:24 +0000149 <gwt.checkstyle.tests>
150 <fileset dir="test">
scottb@google.com391ffa02009-11-03 22:04:04 +0000151 <include name="com/google/**/*.java" />
152 <include name="test/**" />
scottb@google.com6de97562009-11-03 21:04:24 +0000153 </fileset>
154 </gwt.checkstyle.tests>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000155 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000156
jat@google.combf79ddb2009-10-14 07:44:30 +0000157 <target name="test.remoteweb" depends="test.web.remote">
158 <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/>
159 </target>
160
161 <target name="test.web.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000162 description="Run web test with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000163 if="gwt.hosts.web.remote"
164 unless="test.web.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000165 <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000166 <property name="test.web.remote.args" value="${test.args.web.remote}" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000167 <fileset id="test.web.remote.tests" dir="${javac.junit.out}"
168 includes="${gwt.junit.testcase.web.includes}"
169 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000170 <gwt.junit test.name="test.web.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000171 test.args="${test.web.remote.args}"
172 test.jvmargs="${test.jvmargs}"
jat@google.com3d3977f2009-10-16 04:52:05 +0000173 test.out="${junit.out}/web-remote"
174 test.cases="test.web.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000175 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000176 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000177 </extraclasspaths>
178 </gwt.junit>
179 </target>
zundel@google.com29666c82008-06-04 16:07:53 +0000180
jat@google.combf79ddb2009-10-14 07:44:30 +0000181 <target name="test.dev.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000182 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000183 description="Run dev-mode tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000184 if="gwt.hosts.dev.remote"
185 unless="test.dev.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000186 <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000187 <property name="test.dev.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000188 <fileset id="test.dev.remote.tests" dir="${javac.junit.out}"
189 includes="${gwt.junit.testcase.dev.includes}"
190 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000191 <gwt.junit test.name="test.dev.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000192 test.args="${test.dev.remote.args}"
193 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000194 test.out="${junit.out}/dev-remote" test.cases="test.dev.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000195 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000196 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000197 </extraclasspaths>
198 </gwt.junit>
199 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000200
jat@google.combf79ddb2009-10-14 07:44:30 +0000201 <target name="test.emma.remote"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000202 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000203 description="Run emma tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000204 if="gwt.hosts.dev.remote"
205 unless="test.emma.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000206 <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000207 <property name="test.emma.remote.args" value="${test.args.dev.remote}" />
jat@google.com57b69402009-10-14 18:08:29 +0000208 <fileset id="test.emma.remote.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000209 includes="${gwt.junit.testcase.dev.includes}"
210 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000211 <gwt.junit test.name="test.emma.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000212 test.args="${test.emma.remote.args}"
213 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000214 test.out="${junit.out}/emma-remote"
215 test.cases="test.emma.remote.tests" >
jgw@google.coma3509e22009-02-06 21:06:24 +0000216 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000217 <path refid="test.extraclasspath" />
jgw@google.coma3509e22009-02-06 21:06:24 +0000218 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
219 </extraclasspaths>
220 </gwt.junit>
221 </target>
222
jat@google.combf79ddb2009-10-14 07:44:30 +0000223 <target name="test.emma.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000224 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000225 description="Run emma tests with Selenium-RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000226 if="gwt.hosts.dev.selenium"
227 unless="test.emma.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000228 <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000229 <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000230 <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000231 includes="${gwt.junit.testcase.dev.includes}"
232 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000233 <gwt.junit test.name="test.emma.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000234 test.args='${test.emma.selenium.args}'
235 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000236 test.out="${junit.out}/emma-selenium"
237 test.cases="test.emma.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000238 <extraclasspaths>
239 <path refid="test.extraclasspath" />
240 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
241 </extraclasspaths>
242 </gwt.junit>
243 </target>
244
245 <target name="test.draft.remote"
246 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000247 description="Run draft compiled tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000248 if="gwt.hosts.web.remote"
249 unless="test.draft.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000250 <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" />
kjin@google.combdabce32010-09-08 22:25:08 +0000251 <property name="test.draft.remote.args" value="${test.args.web.remote} -draftCompile" />
jat@google.com57b69402009-10-14 18:08:29 +0000252 <fileset id="test.draft.remote.tests" dir="${javac.junit.out}"
253 includes="${gwt.junit.testcase.web.includes}"
254 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000255 <gwt.junit test.name="test.draft.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000256 test.args="${test.draft.remote.args}"
257 test.jvmargs="${test.jvmargs}"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000258 test.out="${junit.out}/draft-remote"
259 test.cases="test.draft.remote.tests" >
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000260 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000261 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000262 </extraclasspaths>
263 </gwt.junit>
spoon@google.comd0b00f82009-03-27 14:58:53 +0000264 </target>
265
jat@google.combf79ddb2009-10-14 07:44:30 +0000266 <target name="test.nometa.remote"
jat@google.com57b69402009-10-14 18:08:29 +0000267 description="Run -XdisableClassMetadata tests with remote browsers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000268 if="gwt.hosts.web.remote"
269 unless="test.nometa.remote.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000270 <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" />
kjin@google.combdabce32010-09-08 22:25:08 +0000271 <property name="test.nometa.remote.args" value="${test.args.web.remote} -XdisableClassMetadata" />
jat@google.com3d3977f2009-10-16 04:52:05 +0000272 <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}"
jat@google.com57b69402009-10-14 18:08:29 +0000273 includes="${gwt.junit.testcase.web.includes}"
274 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000275 <gwt.junit test.name="test.nometa.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000276 test.args="${test.nometa.remote.args}"
277 test.jvmargs="${test.jvmargs}"
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000278 test.out="${junit.out}/nometa-remote"
279 test.cases="test.nometa.remote.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000280 <extraclasspaths>
281 <path refid="test.extraclasspath" />
282 </extraclasspaths>
283 </gwt.junit>
284 </target>
285
286 <target name="test.selenium" depends="test.web.selenium">
287 <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/>
288 </target>
289
290 <target name="test.web.selenium"
291 depends="compile, compile.tests"
292 description="Run web tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000293 if="gwt.hosts.web.selenium"
294 unless="test.web.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000295 <echo message="Performing web testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000296 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000297 <fileset id="test.web.selenium.tests" dir="${javac.junit.out}"
298 includes="${gwt.junit.testcase.web.includes}"
299 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000300 <gwt.junit test.name="test.web.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000301 test.args='${test.web.selenium.args}'
302 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000303 test.out="${junit.out}/web-selenium"
304 test.cases="test.web.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000305 <extraclasspaths>
306 <path refid="test.extraclasspath" />
307 </extraclasspaths>
308 </gwt.junit>
309 </target>
310
311 <target name="test.dev.selenium"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000312 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000313 description="Run dev-mode tests using Selenium RC servers"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000314 if="gwt.hosts.dev.selenium"
315 unless="test.dev.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000316 <echo message="Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000317 <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" />
jat@google.com57b69402009-10-14 18:08:29 +0000318 <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}"
319 includes="${gwt.junit.testcase.dev.includes}"
320 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000321 <gwt.junit test.name="test.dev.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000322 test.args='${test.dev.selenium.args}'
323 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000324 test.out="${junit.out}/dev-selenium"
325 test.cases="test.dev.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000326 <extraclasspaths>
327 <path refid="test.extraclasspath" />
328 </extraclasspaths>
329 </gwt.junit>
330 </target>
331
332 <target name="test.nometa.selenium"
333 description="Run nometa tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000334 if="gwt.hosts.web.selenium"
335 unless="test.nometa.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000336 <echo message="Performing nometa testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000337 <property name="test.nometa.selenium.args"
kjin@google.combdabce32010-09-08 22:25:08 +0000338 value="${test.args.web.selenium} -XdisableClassMetadata" />
jat@google.com57b69402009-10-14 18:08:29 +0000339 <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}"
340 includes="${gwt.junit.testcase.web.includes}"
341 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000342 <gwt.junit test.name="test.nometa.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000343 test.args='${test.nometa.selenium.args}'
344 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000345 test.out="${junit.out}/nometa-selenium"
346 test.cases="test.nometa.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000347 <extraclasspaths>
348 <path refid="test.extraclasspath" />
349 </extraclasspaths>
350 </gwt.junit>
351 </target>
352
353 <target name="test.draft.selenium"
jat@google.com57b69402009-10-14 18:08:29 +0000354 description="Run draft compiled tests using Selenium RC"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000355 if="gwt.hosts.web.selenium"
356 unless="test.draft.selenium.disable">
jat@google.combf79ddb2009-10-14 07:44:30 +0000357 <echo message="Performing draft testing using Selenium RC at ${gwt.hosts.web.selenium}" />
jlabanca@google.com4c4d76d2009-11-01 16:30:34 +0000358 <property name="test.draft.selenium.args"
kjin@google.combdabce32010-09-08 22:25:08 +0000359 value="${test.args.web.selenium} -draftCompile" />
jat@google.com57b69402009-10-14 18:08:29 +0000360 <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}"
361 includes="${gwt.junit.testcase.web.includes}"
362 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000363 <gwt.junit test.name="test.draft.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000364 test.args='${test.draft.selenium.args}'
365 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000366 test.out="${junit.out}/draft-selenium"
367 test.cases="test.draft.selenium.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000368 <extraclasspaths>
369 <path refid="test.extraclasspath" />
370 </extraclasspaths>
371 </gwt.junit>
372 </target>
373
374 <target name="test.emma.htmlunit"
375 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000376 description="Run emma tests with HtmlUnit"
377 unless="test.emma.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000378 <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000379 includes="${gwt.junit.testcase.dev.includes}"
380 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000381 <gwt.junit test.name="test.emma.htmlunit"
382 test.args="${test.args} -standardsMode "
kjin@google.combdabce32010-09-08 22:25:08 +0000383 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000384 test.out="${junit.out}/emma-htmlunit"
385 test.cases="test.emma.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000386 <extraclasspaths>
387 <path refid="test.extraclasspath" />
388 <pathelement location="${gwt.tools.redist}/emma/emma.jar" />
389 </extraclasspaths>
390 </gwt.junit>
391 </target>
392
393 <target name="test.dev.htmlunit"
jlabanca@google.com66eac842009-10-14 19:48:54 +0000394 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000395 description="Run dev-mode tests with HtmlUnit."
396 unless="test.dev.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000397 <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}"
398 includes="${gwt.junit.testcase.dev.includes}"
399 excludes="${gwt.junit.testcase.dev.excludes}" />
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000400 <gwt.junit test.name="test.dev.htmlunit"
401 test.args="${test.args} -standardsMode "
kjin@google.combdabce32010-09-08 22:25:08 +0000402 test.jvmargs="${test.jvmargs}"
jlabanca@google.com2707b142009-11-04 17:47:36 +0000403 test.out="${junit.out}/dev-htmlunit"
jat@google.com57b69402009-10-14 18:08:29 +0000404 test.cases="test.dev.htmlunit.tests" >
jat@google.combf79ddb2009-10-14 07:44:30 +0000405 <extraclasspaths>
406 <path refid="test.extraclasspath" />
407 </extraclasspaths>
408 </gwt.junit>
409 </target>
410
411 <target name="test.hosted.emma" depends="test.emma">
412 <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/>
413 </target>
414
415 <target name="test.hosted" depends="test.dev">
416 <echo message="DEPRECATED: test.hosted has been renamed test.dev"/>
417 </target>
418
jat@google.combf79ddb2009-10-14 07:44:30 +0000419 <target name="test.web.htmlunit"
420 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000421 description="Run web-mode tests with HtmlUnit."
422 unless="test.web.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000423 <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}"
424 includes="${gwt.junit.testcase.web.includes}"
425 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000426 <gwt.junit test.name="test.web.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000427 test.args="${test.args} -out www -prod -standardsMode"
kjin@google.combdabce32010-09-08 22:25:08 +0000428 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000429 test.out="${junit.out}/web-htmlunit"
430 test.cases="test.web.htmlunit.tests">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000431 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000432 <path refid="test.extraclasspath" />
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000433 </extraclasspaths>
434 </gwt.junit>
435 </target>
gwt.team.scottb5b5e6342007-02-22 21:34:23 +0000436
jat@google.combf79ddb2009-10-14 07:44:30 +0000437 <target name="test.nometa.htmlunit"
438 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000439 description="Run -XdisableClassMetadata tests with HtmlUnit."
440 unless="test.nometa.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000441 <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}"
442 includes="${gwt.junit.testcase.web.includes}"
443 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000444 <gwt.junit test.name="test.nometa.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000445 test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode"
kjin@google.combdabce32010-09-08 22:25:08 +0000446 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000447 test.out="${junit.out}/nometa-htmlunit"
448 test.cases="test.nometa.htmlunit.tests" >
bobv@google.comc0e308f2009-02-19 01:08:17 +0000449 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000450 <path refid="test.extraclasspath" />
bobv@google.comc0e308f2009-02-19 01:08:17 +0000451 </extraclasspaths>
452 </gwt.junit>
453 </target>
454
jat@google.combf79ddb2009-10-14 07:44:30 +0000455 <target name="test.draft.htmlunit"
456 depends="compile, compile.tests"
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000457 description="Run draft compiled HtmlUnit tests (no batching on purpose)"
458 unless="test.draft.htmlunit.disable">
jat@google.com57b69402009-10-14 18:08:29 +0000459 <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}"
460 includes="${gwt.junit.testcase.web.includes}"
461 excludes="${gwt.junit.testcase.web.excludes}" />
jlabanca@google.com2707b142009-11-04 17:47:36 +0000462 <gwt.junit test.name="test.draft.htmlunit"
jlabanca@google.comffb28bb2010-01-25 16:52:17 +0000463 test.args="${test.args} -draftCompile -out www -prod -standardsMode"
kjin@google.combdabce32010-09-08 22:25:08 +0000464 test.jvmargs="${test.jvmargs}"
jat@google.com57b69402009-10-14 18:08:29 +0000465 test.out="${junit.out}/draft-htmlunit"
466 test.cases="test.draft.htmlunit.tests" >
bobv@google.com62773b12009-01-29 22:31:44 +0000467 <extraclasspaths>
fabbott@google.com25305472009-06-10 21:39:00 +0000468 <path refid="test.extraclasspath" />
bobv@google.com62773b12009-01-29 22:31:44 +0000469 </extraclasspaths>
470 </gwt.junit>
471 </target>
472
jat@google.combf79ddb2009-10-14 07:44:30 +0000473 <target name="test"
474 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000475 description="Run all tests for this project.">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000476 <!-- Prevent compilation for every target. -->
477 <property name="compile.complete" value="true"/>
478 <property name="compile.tests.complete" value="true"/>
479
jat@google.com57b69402009-10-14 18:08:29 +0000480 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
481 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
jlabanca@google.comf78c54b2009-07-16 17:19:20 +0000482 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000483 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
484 threadCount="${gwt.threadCount}">
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000485 <!--
486 The remote targets must be run sequentially or BrowserManager will queue
487 requests, which will cause some tests to timeout while waiting.
488 -->
489 <sequential>
490 <antcall target="test.dev.remote"/>
491 <antcall target="test.emma.remote"/>
492 <antcall target="test.web.remote"/>
493 <antcall target="test.draft.remote"/>
494 <antcall target="test.nometa.remote"/>
495 </sequential>
496 <antcall target="test.dev.selenium"/>
497 <antcall target="test.emma.selenium"/>
498 <antcall target="test.web.selenium"/>
499 <antcall target="test.draft.selenium"/>
500 <antcall target="test.nometa.selenium"/>
amitmanjhi@google.coma7c82b02010-03-25 14:19:13 +0000501 <antcall target="test.dev.htmlunit"/>
502 <antcall target="test.emma.htmlunit"/>
503 <antcall target="test.web.htmlunit"/>
504 <antcall target="test.draft.htmlunit"/>
505 <antcall target="test.nometa.htmlunit"/>
jlabanca@google.comf780b7a2009-10-16 16:36:03 +0000506 </parallel>
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000507 </limit>
508 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000509
jat@google.com57b69402009-10-14 18:08:29 +0000510 <target name="test.htmlunit"
511 depends="compile, compile.tests"
512 description="Run all HtmlUnit tests">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000513 <!-- Prevent compilation for every target. -->
514 <property name="compile.complete" value="true"/>
515 <property name="compile.tests.complete" value="true"/>
nchalko@google.com90f14a02010-07-28 19:08:32 +0000516
jat@google.com57b69402009-10-14 18:08:29 +0000517 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
518 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
519 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000520 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
521 threadCount="${gwt.threadCount}">
jat@google.com57b69402009-10-14 18:08:29 +0000522 <antcall target="test.dev.htmlunit"/>
523 <antcall target="test.emma.htmlunit"/>
524 <antcall target="test.web.htmlunit"/>
525 <antcall target="test.draft.htmlunit"/>
526 <antcall target="test.nometa.htmlunit"/>
jat@google.com57b69402009-10-14 18:08:29 +0000527 </parallel>
528 </limit>
529 </target>
530
jat@google.combf79ddb2009-10-14 07:44:30 +0000531 <target name="test.dev"
532 depends="compile, compile.tests"
533 description="Run dev-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000534 <!-- Prevent compilation for every target. -->
535 <property name="compile.complete" value="true"/>
536 <property name="compile.tests.complete" value="true"/>
537
jat@google.combf79ddb2009-10-14 07:44:30 +0000538 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000539 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
540 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000541 <antcall target="test.dev.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000542 <!-- no-op unless gwt.hosts.dev.remote is defined -->
543 <antcall target="test.dev.remote"/>
544 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
545 <antcall target="test.dev.selenium"/>
546 </parallel>
547 </limit>
548 </target>
549
550 <target name="test.web"
551 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000552 description="Run web-mode tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000553 <!-- Prevent compilation for every target. -->
554 <property name="compile.complete" value="true"/>
555 <property name="compile.tests.complete" value="true"/>
556
jat@google.combf79ddb2009-10-14 07:44:30 +0000557 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000558 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
559 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000560 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000561 <!-- no-op unless gwt.hosts.web.remote is defined -->
562 <antcall target="test.web.remote"/>
563 <!-- no-op unless gwt.hosts.web.selenium is defined -->
564 <antcall target="test.web.selenium"/>
565 </parallel>
566 </limit>
567 </target>
568
569 <target name="test.emma"
570 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000571 description="Run emma tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000572 <!-- Prevent compilation for every target. -->
573 <property name="compile.complete" value="true"/>
574 <property name="compile.tests.complete" value="true"/>
575
jat@google.combf79ddb2009-10-14 07:44:30 +0000576 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000577 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
578 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000579 <antcall target="test.emma.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000580 <!-- no-op unless gwt.hosts.dev.remote is defined -->
581 <antcall target="test.emma.remote"/>
582 <!-- no-op unless gwt.hosts.dev.selenium is defined -->
583 <antcall target="test.emma.selenium"/>
584 </parallel>
585 </limit>
586 </target>
587
588 <target name="test.draft"
589 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000590 description="Run draft compiled tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000591 <!-- Prevent compilation for every target. -->
592 <property name="compile.complete" value="true"/>
593 <property name="compile.tests.complete" value="true"/>
594
jat@google.combf79ddb2009-10-14 07:44:30 +0000595 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000596 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
597 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000598 <antcall target="test.draft.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000599 <!-- no-op unless gwt.hosts.web.remote is defined -->
600 <antcall target="test.draft.remote"/>
601 <!-- no-op unless gwt.hosts.web.selenium is defined -->
602 <antcall target="test.draft.selenium"/>
603 </parallel>
604 </limit>
605 </target>
606
607 <target name="test.nometa"
608 depends="compile, compile.tests"
jat@google.com57b69402009-10-14 18:08:29 +0000609 description="Run -XdisableClassMetadata tests for this project.">
jlabanca@google.com4af13062009-10-23 23:28:56 +0000610 <!-- Prevent compilation for every target. -->
611 <property name="compile.complete" value="true"/>
612 <property name="compile.tests.complete" value="true"/>
613
jat@google.combf79ddb2009-10-14 07:44:30 +0000614 <limit failonerror="true" hours="${test.timeout}">
jlabanca@google.com481db2d2009-10-19 17:28:15 +0000615 <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
616 threadCount="${gwt.threadCount}">
jat@google.combf79ddb2009-10-14 07:44:30 +0000617 <antcall target="test.web.htmlunit"/>
jat@google.combf79ddb2009-10-14 07:44:30 +0000618 <!-- no-op unless gwt.hosts.web.remote is defined -->
619 <antcall target="test.nometa.remote"/>
620 <!-- no-op unless gwt.hosts.web.selenium is defined -->
621 <antcall target="test.nometa.selenium"/>
622 </parallel>
623 </limit>
624 </target>
625
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000626 <target name="benchmark"
627 description="Run all benchmarks for this project.">
628
629 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}"
630 message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
631 <limit failonerror="true" hours="${benchmark.timeout}">
632 <!-- no-op unless gwt.hosts.web.remote is defined -->
633 <antcall target="benchmark.web.remote"/>
634 <!-- no-op unless gwt.hosts.web.selenium is defined -->
635 <antcall target="benchmark.web.selenium"/>
636 <antcall target="benchmark.web.htmlunit"/>
637 </limit>
638 </target>
639
640 <target name="benchmark.web.htmlunit"
641 depends="compile, compile.tests"
642 description="Run web-mode benchmarks with HtmlUnit."
643 unless="benchmark.web.htmlunit.disable">
644 <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}"
645 includes="${gwt.benchmark.testcase.web.includes}"
646 excludes="${gwt.benchmark.testcase.web.excludes}" />
647 <gwt.junit test.name="benchmark.web.htmlunit"
648 test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode"
kjin@google.combdabce32010-09-08 22:25:08 +0000649 test.jvmargs="${test.jvmargs}"
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000650 test.out="${junit.out}/web-htmlunit-benchmark"
651 test.cases="benchmark.web.htmlunit.tests" >
652 <extraclasspaths>
653 <path refid="test.extraclasspath" />
654 </extraclasspaths>
655 </gwt.junit>
656 </target>
657
658 <target name="benchmark.web.selenium"
659 depends="compile, compile.tests"
660 description="Run web benchmark using Selenium RC"
661 if="gwt.hosts.web.selenium"
662 unless="benchmark.web.selenium.disable">
663 <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" />
664 <property name="test.web.selenium.args" value="${test.args.web.selenium}" />
665 <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}"
666 includes="${gwt.benchmark.testcase.web.includes}"
667 excludes="${gwt.benchmark.testcase.web.excludes}" />
668 <gwt.junit test.name="benchmark.web.selenium"
kjin@google.combdabce32010-09-08 22:25:08 +0000669 test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout}'
670 test.jvmargs="${test.jvmargs}"
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000671 test.out="${junit.out}/web-selenium-benchmark"
672 test.cases="benchmark.web.selenium.tests" >
673 <extraclasspaths>
674 <path refid="test.extraclasspath" />
675 </extraclasspaths>
676 </gwt.junit>
677 </target>
678
679 <target name="benchmark.web.remote"
680 depends="compile, compile.tests"
681 description="Run web benchmarks with remote browsers"
682 if="gwt.hosts.web.remote"
683 unless="benchmark.web.remote.disable">
684 <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" />
685 <property name="test.web.remote.args" value="${test.args.web.remote}" />
686 <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}"
687 includes="${gwt.benchmark.testcase.web.includes}"
688 excludes="${gwt.benchmark.testcase.web.excludes}" />
689 <gwt.junit test.name="benchmark.web.remote"
kjin@google.combdabce32010-09-08 22:25:08 +0000690 test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout}"
691 test.jvmargs="${test.jvmargs}"
gwt.mirrorbot@gmail.comd54a4bd2010-06-07 19:20:31 +0000692 test.out="${junit.out}/web-remote-benchmark"
693 test.cases="benchmark.web.remote.tests" >
694 <extraclasspaths>
695 <path refid="test.extraclasspath" />
696 </extraclasspaths>
697 </gwt.junit>
698 </target>
699
jat@google.com57b69402009-10-14 18:08:29 +0000700 <!--
701 Merges coverage data for the entire project
702 -->
703 <target name="emma.merge">
jlabanca@google.com81244562009-08-05 19:55:36 +0000704 <delete dir="${emma.merged.out}" />
705 <mkdir dir="${emma.merged.out}" />
706 <emma>
707 <merge outfile="${emma.merged.out}/merged.emma" >
708 <fileset dir="${junit.out}" >
709 <include name="**/*.emma" />
710 <exclude name="${emma.merged.out}/merged.emma" />
711 </fileset>
712 </merge>
713 </emma>
714 <emma>
715 <report sourcepath="${project.classpath.src}">
716 <fileset file="${javac.emma.out}/metadata.emma" />
717 <fileset file="${emma.merged.out}/merged.emma" />
718 <txt outfile="${emma.merged.out}/coverage.txt" />
719 <html outfile="${emma.merged.out}/coverage.html" />
720 <xml outfile="${emma.merged.out}/coverage.xml" />
721 </report>
722 </emma>
723 </target>
724
jat@google.combf79ddb2009-10-14 07:44:30 +0000725 <target name="clean"
726 description="Cleans this project's intermediate and output files">
fabbott@google.com0e2dc6282008-08-22 16:09:01 +0000727 <delete dir="${project.build}" />
728 <delete file="${project.lib}" />
729 </target>
jat@google.com57b69402009-10-14 18:08:29 +0000730
731 <target name="presubmit" depends="test, checkstyle"
732 description="runs the gwt api checker, user checkstyle, and user tests">
spoon@google.comd0b00f82009-03-27 14:58:53 +0000733 <gwt.ant dir=".." target="apicheck-nobuild"/>
jgw@google.coma3509e22009-02-06 21:06:24 +0000734 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000735</project>