gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="user" default="build" basedir="."> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="gwt.root" location=".." /> |
| 3 | <property name="project.tail" value="user" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 4 | <property name="test.args" value="-ea" /> |
| 5 | <property name="test.jvmargs" value="-ea" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 6 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 7 | <!-- 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 15 | <!-- |
| 16 | BrowserManagerServer_Stub compiled using rmic, which doesn't generate |
| 17 | full source code |
| 18 | --> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 19 | <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" /> |
| 20 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 21 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 22 | |
jat@google.com | 8cf77ce | 2009-10-16 01:47:08 +0000 | [diff] [blame] | 23 | <property name="test.timeout" value="4" /> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 24 | <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.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 28 | <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.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 31 | <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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 35 | <!-- |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 36 | Test args can be specified per test target type. |
| 37 | --> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 38 | <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.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 42 | |
| 43 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 44 | 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.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 49 | <!-- 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.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 52 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 53 | Classpaths added for test cases |
| 54 | --> |
| 55 | <path id="test.extraclasspath"> |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 56 | <pathelement location="${gwt.build}/out/dev/bin-test" /> |
bobv@google.com | b39b79c | 2009-06-18 15:58:28 +0000 | [diff] [blame] | 57 | <pathelement location="test-super" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 58 | <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" /> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 59 | <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.com | b289ff4 | 2010-08-20 14:59:07 +0000 | [diff] [blame] | 63 | <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.com | d241b1d | 2010-09-03 05:25:06 +0000 | [diff] [blame] | 65 | <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.com | b289ff4 | 2010-08-20 14:59:07 +0000 | [diff] [blame] | 69 | <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" /> |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 70 | <pathelement location="${gwt.dev.jar}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 71 | </path> |
| 72 | |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 73 | <target name="compile" description="Compile all class files" |
| 74 | unless="compile.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 75 | <mkdir dir="${javac.out}" /> |
tomerigo@google.com | c2163e6 | 2010-02-01 16:08:26 +0000 | [diff] [blame] | 76 | <gwt.javac excludes="**/super/**"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 77 | <classpath> |
scottb@google.com | 4f57bc2 | 2009-01-16 22:46:42 +0000 | [diff] [blame] | 78 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 79 | <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.com | a933c8b | 2009-03-26 02:12:25 +0000 | [diff] [blame] | 82 | <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 83 | <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" /> |
amitmanjhi@google.com | c278ce8 | 2010-06-28 15:45:45 +0000 | [diff] [blame] | 84 | <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" /> |
amitmanjhi@google.com | a2d7312 | 2010-06-24 21:48:00 +0000 | [diff] [blame] | 85 | <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" /> |
nchalko@google.com | 90f14a0 | 2010-07-28 19:08:32 +0000 | [diff] [blame] | 86 | <!-- 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.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 88 | <pathelement location="${gwt.dev.jar}" /> |
| 89 | </classpath> |
| 90 | </gwt.javac> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 91 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 92 | <!-- Build the BrowserManagerServer_Stub to allow remote browser testing --> |
| 93 | <rmic base="${javac.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 94 | classname="com.google.gwt.junit.remote.BrowserManagerServer" |
| 95 | stubversion="1.2"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 96 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 97 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 98 | <!-- |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 99 | Compile test code for dev to pick up TypeOracleTestUtils and others. |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 100 | Compiles test dependencies in dev/core |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 101 | --> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 102 | <target name="compile.dev.tests"> |
jat@google.com | c090a07 | 2009-09-21 17:39:53 +0000 | [diff] [blame] | 103 | <gwt.ant dir="../dev" target="compile.tests" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 104 | </target> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 105 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 106 | <!-- |
| 107 | Compiles the test code for this project |
| 108 | --> |
jat@google.com | e0fa5b1 | 2009-10-13 23:57:19 +0000 | [diff] [blame] | 109 | <target name="compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 110 | depends="compile.dev.tests, compile.emma.if.enabled" |
| 111 | unless="compile.tests.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 112 | <mkdir dir="${javac.junit.out}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 113 | <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**" |
| 114 | destdir="${javac.junit.out}"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 115 | <classpath> |
| 116 | <pathelement location="${javac.out}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 117 | <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.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 119 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 120 | </classpath> |
| 121 | </gwt.javac> |
| 122 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 123 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 124 | <target name="build" depends="compile" |
| 125 | description="Build and package this project"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 126 | <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.com | 171f3f5 | 2009-08-11 19:50:31 +0000 | [diff] [blame] | 131 | <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" excludes="**/*.java"/> |
bobv@google.com | a933c8b | 2009-03-26 02:12:25 +0000 | [diff] [blame] | 132 | <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 133 | <zipfileset src="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 134 | </gwt.jar> |
| 135 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 136 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 137 | <target name="checkstyle" description="Static analysis of source"> |
| 138 | <gwt.checkstyle> |
nchalko@google.com | eb3e87a | 2010-08-05 20:48:12 +0000 | [diff] [blame] | 139 | <fileset dir="src" > |
| 140 | <exclude name="javax/validation/super/javax/validation/constraints/Pattern.java"/> |
nchalko@google.com | b1077dc | 2010-08-13 13:36:43 +0000 | [diff] [blame] | 141 | <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.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 146 | <fileset dir="super/com/google/gwt/emul" /> |
| 147 | <fileset dir="super/com/google/gwt/junit/translatable" /> |
| 148 | </gwt.checkstyle> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 149 | <gwt.checkstyle.tests> |
| 150 | <fileset dir="test"> |
scottb@google.com | 391ffa0 | 2009-11-03 22:04:04 +0000 | [diff] [blame] | 151 | <include name="com/google/**/*.java" /> |
| 152 | <include name="test/**" /> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 153 | </fileset> |
| 154 | </gwt.checkstyle.tests> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 155 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 156 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 157 | <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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 162 | description="Run web test with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 163 | if="gwt.hosts.web.remote" |
| 164 | unless="test.web.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 165 | <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 166 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 167 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 170 | <gwt.junit test.name="test.web.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 171 | test.args="${test.web.remote.args}" |
| 172 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 173 | test.out="${junit.out}/web-remote" |
| 174 | test.cases="test.web.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 175 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 176 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 177 | </extraclasspaths> |
| 178 | </gwt.junit> |
| 179 | </target> |
zundel@google.com | 29666c8 | 2008-06-04 16:07:53 +0000 | [diff] [blame] | 180 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 181 | <target name="test.dev.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 182 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 183 | description="Run dev-mode tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 184 | if="gwt.hosts.dev.remote" |
| 185 | unless="test.dev.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 186 | <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 187 | <property name="test.dev.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 188 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 191 | <gwt.junit test.name="test.dev.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 192 | test.args="${test.dev.remote.args}" |
| 193 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 194 | test.out="${junit.out}/dev-remote" test.cases="test.dev.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 195 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 196 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 197 | </extraclasspaths> |
| 198 | </gwt.junit> |
| 199 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 200 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 201 | <target name="test.emma.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 202 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 203 | description="Run emma tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 204 | if="gwt.hosts.dev.remote" |
| 205 | unless="test.emma.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 206 | <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 207 | <property name="test.emma.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 208 | <fileset id="test.emma.remote.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 209 | includes="${gwt.junit.testcase.dev.includes}" |
| 210 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 211 | <gwt.junit test.name="test.emma.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 212 | test.args="${test.emma.remote.args}" |
| 213 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 214 | test.out="${junit.out}/emma-remote" |
| 215 | test.cases="test.emma.remote.tests" > |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 216 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 217 | <path refid="test.extraclasspath" /> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 218 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 219 | </extraclasspaths> |
| 220 | </gwt.junit> |
| 221 | </target> |
| 222 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 223 | <target name="test.emma.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 224 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 225 | description="Run emma tests with Selenium-RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 226 | if="gwt.hosts.dev.selenium" |
| 227 | unless="test.emma.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 228 | <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 229 | <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 230 | <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 231 | includes="${gwt.junit.testcase.dev.includes}" |
| 232 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 233 | <gwt.junit test.name="test.emma.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 234 | test.args='${test.emma.selenium.args}' |
| 235 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 236 | test.out="${junit.out}/emma-selenium" |
| 237 | test.cases="test.emma.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 238 | <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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 247 | description="Run draft compiled tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 248 | if="gwt.hosts.web.remote" |
| 249 | unless="test.draft.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 250 | <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 251 | <property name="test.draft.remote.args" value="${test.args.web.remote} -draftCompile" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 252 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 255 | <gwt.junit test.name="test.draft.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 256 | test.args="${test.draft.remote.args}" |
| 257 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 258 | test.out="${junit.out}/draft-remote" |
| 259 | test.cases="test.draft.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 260 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 261 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 262 | </extraclasspaths> |
| 263 | </gwt.junit> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 264 | </target> |
| 265 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 266 | <target name="test.nometa.remote" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 267 | description="Run -XdisableClassMetadata tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 268 | if="gwt.hosts.web.remote" |
| 269 | unless="test.nometa.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 270 | <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 271 | <property name="test.nometa.remote.args" value="${test.args.web.remote} -XdisableClassMetadata" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 272 | <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 273 | includes="${gwt.junit.testcase.web.includes}" |
| 274 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 275 | <gwt.junit test.name="test.nometa.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 276 | test.args="${test.nometa.remote.args}" |
| 277 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 278 | test.out="${junit.out}/nometa-remote" |
| 279 | test.cases="test.nometa.remote.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 280 | <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.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 293 | if="gwt.hosts.web.selenium" |
| 294 | unless="test.web.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 295 | <echo message="Performing web testing using Selenium RC at ${gwt.hosts.web.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 296 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 297 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 300 | <gwt.junit test.name="test.web.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 301 | test.args='${test.web.selenium.args}' |
| 302 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 303 | test.out="${junit.out}/web-selenium" |
| 304 | test.cases="test.web.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 305 | <extraclasspaths> |
| 306 | <path refid="test.extraclasspath" /> |
| 307 | </extraclasspaths> |
| 308 | </gwt.junit> |
| 309 | </target> |
| 310 | |
| 311 | <target name="test.dev.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 312 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 313 | description="Run dev-mode tests using Selenium RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 314 | if="gwt.hosts.dev.selenium" |
| 315 | unless="test.dev.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 316 | <echo message="Performing dev-mode testing using Selenium RC at ${gwt.hosts.dev.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 317 | <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 318 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 321 | <gwt.junit test.name="test.dev.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 322 | test.args='${test.dev.selenium.args}' |
| 323 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 324 | test.out="${junit.out}/dev-selenium" |
| 325 | test.cases="test.dev.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 326 | <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.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 334 | if="gwt.hosts.web.selenium" |
| 335 | unless="test.nometa.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 336 | <echo message="Performing nometa testing using Selenium RC at ${gwt.hosts.web.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 337 | <property name="test.nometa.selenium.args" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 338 | value="${test.args.web.selenium} -XdisableClassMetadata" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 339 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 342 | <gwt.junit test.name="test.nometa.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 343 | test.args='${test.nometa.selenium.args}' |
| 344 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 345 | test.out="${junit.out}/nometa-selenium" |
| 346 | test.cases="test.nometa.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 347 | <extraclasspaths> |
| 348 | <path refid="test.extraclasspath" /> |
| 349 | </extraclasspaths> |
| 350 | </gwt.junit> |
| 351 | </target> |
| 352 | |
| 353 | <target name="test.draft.selenium" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 354 | description="Run draft compiled tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 355 | if="gwt.hosts.web.selenium" |
| 356 | unless="test.draft.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 357 | <echo message="Performing draft testing using Selenium RC at ${gwt.hosts.web.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 358 | <property name="test.draft.selenium.args" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 359 | value="${test.args.web.selenium} -draftCompile" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 360 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 363 | <gwt.junit test.name="test.draft.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 364 | test.args='${test.draft.selenium.args}' |
| 365 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 366 | test.out="${junit.out}/draft-selenium" |
| 367 | test.cases="test.draft.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 368 | <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.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 376 | description="Run emma tests with HtmlUnit" |
| 377 | unless="test.emma.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 378 | <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 379 | includes="${gwt.junit.testcase.dev.includes}" |
| 380 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 381 | <gwt.junit test.name="test.emma.htmlunit" |
| 382 | test.args="${test.args} -standardsMode " |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 383 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 384 | test.out="${junit.out}/emma-htmlunit" |
| 385 | test.cases="test.emma.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 386 | <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.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 394 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 395 | description="Run dev-mode tests with HtmlUnit." |
| 396 | unless="test.dev.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 397 | <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.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 400 | <gwt.junit test.name="test.dev.htmlunit" |
| 401 | test.args="${test.args} -standardsMode " |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 402 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 403 | test.out="${junit.out}/dev-htmlunit" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 404 | test.cases="test.dev.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 405 | <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.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 419 | <target name="test.web.htmlunit" |
| 420 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 421 | description="Run web-mode tests with HtmlUnit." |
| 422 | unless="test.web.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 423 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 426 | <gwt.junit test.name="test.web.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 427 | test.args="${test.args} -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 428 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 429 | test.out="${junit.out}/web-htmlunit" |
| 430 | test.cases="test.web.htmlunit.tests"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 431 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 432 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 433 | </extraclasspaths> |
| 434 | </gwt.junit> |
| 435 | </target> |
gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 436 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 437 | <target name="test.nometa.htmlunit" |
| 438 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 439 | description="Run -XdisableClassMetadata tests with HtmlUnit." |
| 440 | unless="test.nometa.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 441 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 444 | <gwt.junit test.name="test.nometa.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 445 | test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 446 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 447 | test.out="${junit.out}/nometa-htmlunit" |
| 448 | test.cases="test.nometa.htmlunit.tests" > |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 449 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 450 | <path refid="test.extraclasspath" /> |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 451 | </extraclasspaths> |
| 452 | </gwt.junit> |
| 453 | </target> |
| 454 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 455 | <target name="test.draft.htmlunit" |
| 456 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 457 | description="Run draft compiled HtmlUnit tests (no batching on purpose)" |
| 458 | unless="test.draft.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 459 | <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.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 462 | <gwt.junit test.name="test.draft.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 463 | test.args="${test.args} -draftCompile -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 464 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 465 | test.out="${junit.out}/draft-htmlunit" |
| 466 | test.cases="test.draft.htmlunit.tests" > |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 467 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 468 | <path refid="test.extraclasspath" /> |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 469 | </extraclasspaths> |
| 470 | </gwt.junit> |
| 471 | </target> |
| 472 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 473 | <target name="test" |
| 474 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 475 | description="Run all tests for this project."> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 476 | <!-- Prevent compilation for every target. --> |
| 477 | <property name="compile.complete" value="true"/> |
| 478 | <property name="compile.tests.complete" value="true"/> |
| 479 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 480 | <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.com | f78c54b | 2009-07-16 17:19:20 +0000 | [diff] [blame] | 482 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 483 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 484 | threadCount="${gwt.threadCount}"> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 485 | <!-- |
| 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.com | a7c82b0 | 2010-03-25 14:19:13 +0000 | [diff] [blame] | 501 | <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.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 506 | </parallel> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 507 | </limit> |
| 508 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 509 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 510 | <target name="test.htmlunit" |
| 511 | depends="compile, compile.tests" |
| 512 | description="Run all HtmlUnit tests"> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 513 | <!-- Prevent compilation for every target. --> |
| 514 | <property name="compile.complete" value="true"/> |
| 515 | <property name="compile.tests.complete" value="true"/> |
nchalko@google.com | 90f14a0 | 2010-07-28 19:08:32 +0000 | [diff] [blame] | 516 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 517 | <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.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 520 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 521 | threadCount="${gwt.threadCount}"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 522 | <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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 527 | </parallel> |
| 528 | </limit> |
| 529 | </target> |
| 530 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 531 | <target name="test.dev" |
| 532 | depends="compile, compile.tests" |
| 533 | description="Run dev-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 534 | <!-- Prevent compilation for every target. --> |
| 535 | <property name="compile.complete" value="true"/> |
| 536 | <property name="compile.tests.complete" value="true"/> |
| 537 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 538 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 539 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 540 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 541 | <antcall target="test.dev.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 542 | <!-- 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 552 | description="Run web-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 553 | <!-- Prevent compilation for every target. --> |
| 554 | <property name="compile.complete" value="true"/> |
| 555 | <property name="compile.tests.complete" value="true"/> |
| 556 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 557 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 558 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 559 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 560 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 561 | <!-- 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 571 | description="Run emma tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 572 | <!-- Prevent compilation for every target. --> |
| 573 | <property name="compile.complete" value="true"/> |
| 574 | <property name="compile.tests.complete" value="true"/> |
| 575 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 576 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 577 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 578 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 579 | <antcall target="test.emma.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 580 | <!-- 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 590 | description="Run draft compiled tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 591 | <!-- Prevent compilation for every target. --> |
| 592 | <property name="compile.complete" value="true"/> |
| 593 | <property name="compile.tests.complete" value="true"/> |
| 594 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 595 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 596 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 597 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 598 | <antcall target="test.draft.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 599 | <!-- 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 609 | description="Run -XdisableClassMetadata tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 610 | <!-- Prevent compilation for every target. --> |
| 611 | <property name="compile.complete" value="true"/> |
| 612 | <property name="compile.tests.complete" value="true"/> |
| 613 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 614 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 615 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 616 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 617 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 618 | <!-- 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.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 626 | <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.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 649 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 650 | 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.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 669 | test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout}' |
| 670 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 671 | 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.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 690 | test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout}" |
| 691 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 692 | 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.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 700 | <!-- |
| 701 | Merges coverage data for the entire project |
| 702 | --> |
| 703 | <target name="emma.merge"> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 704 | <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.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 725 | <target name="clean" |
| 726 | description="Cleans this project's intermediate and output files"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 727 | <delete dir="${project.build}" /> |
| 728 | <delete file="${project.lib}" /> |
| 729 | </target> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 730 | |
| 731 | <target name="presubmit" depends="test, checkstyle" |
| 732 | description="runs the gwt api checker, user checkstyle, and user tests"> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 733 | <gwt.ant dir=".." target="apicheck-nobuild"/> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 734 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 735 | </project> |