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" /> |
| 4 | <property name="test.args" value="" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 5 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 6 | <!-- support old variables names --> |
| 7 | <condition property="gwt.hosts.web.remote" value="${gwt.remote.browsers}"> |
| 8 | <isset property="gwt.remote.browsers" /> |
| 9 | </condition> |
| 10 | <condition property="gwt.hosts.web.selenium" value="${gwt.selenium.hosts}"> |
| 11 | <isset property="gwt.selenium.hosts" /> |
| 12 | </condition> |
| 13 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 14 | <!-- |
| 15 | BrowserManagerServer_Stub compiled using rmic, which doesn't generate |
| 16 | full source code |
| 17 | --> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 18 | <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" /> |
| 19 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 20 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 21 | |
jat@google.com | 8cf77ce | 2009-10-16 01:47:08 +0000 | [diff] [blame] | 22 | <property name="test.timeout" value="4" /> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 23 | <property name="emma.merged.out" value="${junit.out}/emma-coverage" /> |
| 24 | <property name="gwt.junit.testcase.web.includes" value="${gwt.junit.testcase.includes}" /> |
| 25 | <property name="gwt.junit.testcase.web.excludes" value="" /> |
| 26 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 27 | <property name="gwt.junit.testcase.dev.includes" value="${gwt.junit.testcase.includes}" /> |
| 28 | <property name="gwt.junit.testcase.dev.excludes" value="" /> |
| 29 | |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 30 | <property name="benchmark.timeout" value="30" /> |
| 31 | <property name="gwt.benchmark.testcase.web.includes" value="${gwt.benchmark.testcase.includes}" /> |
| 32 | <property name="gwt.benchmark.testcase.web.excludes" value="${gwt.benchmark.testcase.excludes}" /> |
| 33 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 34 | <!-- |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 35 | Test args can be specified per test target type. |
| 36 | --> |
| 37 | <property name="test.args.dev.remote" value="${test.args}" /> |
| 38 | <property name="test.args.dev.selenium" value="${test.args}" /> |
| 39 | <property name="test.args.web.remote" value="${test.args}" /> |
| 40 | <property name="test.args.web.selenium" value="${test.args}" /> |
| 41 | |
| 42 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 43 | Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the |
| 44 | value is "dollar") or Foo_Inner_fr.properties (for "bar") |
| 45 | --> |
| 46 | <property name="gwt.i18n.test.InnerClassChar" value="dollar"/> |
| 47 | |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 48 | <!-- Platform shouldn't matter here, just picking one --> |
| 49 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" /> |
| 50 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 51 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 52 | Classpaths added for test cases |
| 53 | --> |
| 54 | <path id="test.extraclasspath"> |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 55 | <pathelement location="${gwt.build}/out/dev/bin-test" /> |
bobv@google.com | b39b79c | 2009-06-18 15:58:28 +0000 | [diff] [blame] | 56 | <pathelement location="test-super" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 57 | <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" /> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 58 | <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/> |
| 59 | <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/> |
| 60 | <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/> |
| 61 | <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/> |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 62 | <pathelement location="${gwt.dev.jar}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 63 | </path> |
| 64 | |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 65 | <target name="compile" description="Compile all class files" |
| 66 | unless="compile.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 67 | <mkdir dir="${javac.out}" /> |
tomerigo@google.com | c2163e6 | 2010-02-01 16:08:26 +0000 | [diff] [blame] | 68 | <gwt.javac excludes="**/super/**"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 69 | <classpath> |
scottb@google.com | 4f57bc2 | 2009-01-16 22:46:42 +0000 | [diff] [blame] | 70 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 71 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 72 | <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" /> |
| 73 | <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" /> |
bobv@google.com | a933c8b | 2009-03-26 02:12:25 +0000 | [diff] [blame] | 74 | <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 75 | <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] | 76 | <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] | 77 | <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] | 78 | <!-- The source is included so validation is available from client code --> |
| 79 | <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] | 80 | <pathelement location="${gwt.dev.jar}" /> |
| 81 | </classpath> |
| 82 | </gwt.javac> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 83 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 84 | <!-- Build the BrowserManagerServer_Stub to allow remote browser testing --> |
| 85 | <rmic base="${javac.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 86 | classname="com.google.gwt.junit.remote.BrowserManagerServer" |
| 87 | stubversion="1.2"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 88 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 89 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 90 | <!-- |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 91 | Compile test code for dev to pick up TypeOracleTestUtils and others. |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 92 | Compiles test dependencies in dev/core |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 93 | --> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 94 | <target name="compile.dev.tests"> |
jat@google.com | c090a07 | 2009-09-21 17:39:53 +0000 | [diff] [blame] | 95 | <gwt.ant dir="../dev" target="compile.tests" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 96 | </target> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 97 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 98 | <!-- |
| 99 | Compiles the test code for this project |
| 100 | --> |
jat@google.com | e0fa5b1 | 2009-10-13 23:57:19 +0000 | [diff] [blame] | 101 | <target name="compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 102 | depends="compile.dev.tests, compile.emma.if.enabled" |
| 103 | unless="compile.tests.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 104 | <mkdir dir="${javac.junit.out}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 105 | <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**" |
| 106 | destdir="${javac.junit.out}"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 107 | <classpath> |
| 108 | <pathelement location="${javac.out}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 109 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 110 | <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" /> |
amitmanjhi@google.com | c278ce8 | 2010-06-28 15:45:45 +0000 | [diff] [blame] | 111 | <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" /> |
nchalko@google.com | b1077dc | 2010-08-13 13:36:43 +0000 | [diff] [blame] | 112 | <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" /> |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 113 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 114 | </classpath> |
| 115 | </gwt.javac> |
| 116 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 117 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 118 | <target name="build" depends="compile" |
| 119 | description="Build and package this project"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 120 | <mkdir dir="${gwt.build.lib}" /> |
| 121 | <gwt.jar> |
| 122 | <fileset dir="src" excludes="**/package.html" /> |
| 123 | <fileset dir="super" excludes="**/package.html" /> |
| 124 | <fileset dir="${javac.out}" /> |
scottb@google.com | 171f3f5 | 2009-08-11 19:50:31 +0000 | [diff] [blame] | 125 | <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] | 126 | <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 127 | <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] | 128 | </gwt.jar> |
| 129 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 130 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 131 | <target name="checkstyle" description="Static analysis of source"> |
| 132 | <gwt.checkstyle> |
nchalko@google.com | eb3e87a | 2010-08-05 20:48:12 +0000 | [diff] [blame] | 133 | <fileset dir="src" > |
| 134 | <exclude name="javax/validation/super/javax/validation/constraints/Pattern.java"/> |
nchalko@google.com | b1077dc | 2010-08-13 13:36:43 +0000 | [diff] [blame] | 135 | <exclude name="javax/validation/super/javax/validation/spi/ConfigurationState.java"/> |
| 136 | <exclude name="javax/validation/super/javax/validation/MessageInterpolator.java"/> |
| 137 | <exclude name="javax/validation/super/javax/validation/Configuration.java"/> |
| 138 | <exclude name="javax/validation/super/javax/validation/Validation.java"/> |
| 139 | </fileset> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 140 | <fileset dir="super/com/google/gwt/emul" /> |
| 141 | <fileset dir="super/com/google/gwt/junit/translatable" /> |
| 142 | </gwt.checkstyle> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 143 | <gwt.checkstyle.tests> |
| 144 | <fileset dir="test"> |
scottb@google.com | 391ffa0 | 2009-11-03 22:04:04 +0000 | [diff] [blame] | 145 | <include name="com/google/**/*.java" /> |
| 146 | <include name="test/**" /> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 147 | </fileset> |
| 148 | </gwt.checkstyle.tests> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 149 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 150 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 151 | <target name="test.remoteweb" depends="test.web.remote"> |
| 152 | <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/> |
| 153 | </target> |
| 154 | |
| 155 | <target name="test.web.remote" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 156 | description="Run web test with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 157 | if="gwt.hosts.web.remote" |
| 158 | unless="test.web.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 159 | <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 160 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 161 | <fileset id="test.web.remote.tests" dir="${javac.junit.out}" |
| 162 | includes="${gwt.junit.testcase.web.includes}" |
| 163 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 164 | <gwt.junit test.name="test.web.remote" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 165 | test.args="${test.web.remote.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}" |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 166 | test.out="${junit.out}/web-remote" |
| 167 | test.cases="test.web.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 168 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 169 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 170 | </extraclasspaths> |
| 171 | </gwt.junit> |
| 172 | </target> |
zundel@google.com | 29666c8 | 2008-06-04 16:07:53 +0000 | [diff] [blame] | 173 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 174 | <target name="test.dev.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 175 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 176 | description="Run dev-mode tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 177 | if="gwt.hosts.dev.remote" |
| 178 | unless="test.dev.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 179 | <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 180 | <property name="test.dev.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 181 | <fileset id="test.dev.remote.tests" dir="${javac.junit.out}" |
| 182 | includes="${gwt.junit.testcase.dev.includes}" |
| 183 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 184 | <gwt.junit test.name="test.dev.remote" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 185 | test.args="${test.dev.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 186 | 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] | 187 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 188 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 189 | </extraclasspaths> |
| 190 | </gwt.junit> |
| 191 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 192 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 193 | <target name="test.emma.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 194 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 195 | description="Run emma tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 196 | if="gwt.hosts.dev.remote" |
| 197 | unless="test.emma.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 198 | <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 199 | <property name="test.emma.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 200 | <fileset id="test.emma.remote.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 201 | includes="${gwt.junit.testcase.dev.includes}" |
| 202 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 203 | <gwt.junit test.name="test.emma.remote" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 204 | test.args="${test.emma.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 205 | test.out="${junit.out}/emma-remote" |
| 206 | test.cases="test.emma.remote.tests" > |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 207 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 208 | <path refid="test.extraclasspath" /> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 209 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 210 | </extraclasspaths> |
| 211 | </gwt.junit> |
| 212 | </target> |
| 213 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 214 | <target name="test.emma.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 215 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 216 | description="Run emma tests with Selenium-RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 217 | if="gwt.hosts.dev.selenium" |
| 218 | unless="test.emma.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 219 | <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 220 | <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 221 | <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 222 | includes="${gwt.junit.testcase.dev.includes}" |
| 223 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 224 | <gwt.junit test.name="test.emma.selenium" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 225 | test.args='${test.emma.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"' |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 226 | test.out="${junit.out}/emma-selenium" |
| 227 | test.cases="test.emma.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 228 | <extraclasspaths> |
| 229 | <path refid="test.extraclasspath" /> |
| 230 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 231 | </extraclasspaths> |
| 232 | </gwt.junit> |
| 233 | </target> |
| 234 | |
| 235 | <target name="test.draft.remote" |
| 236 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 237 | description="Run draft compiled tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 238 | if="gwt.hosts.web.remote" |
| 239 | unless="test.draft.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 240 | <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 241 | <property name="test.draft.remote.args" value="${test.args.web.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 242 | <fileset id="test.draft.remote.tests" dir="${javac.junit.out}" |
| 243 | includes="${gwt.junit.testcase.web.includes}" |
| 244 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 245 | <gwt.junit test.name="test.draft.remote" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 246 | test.args="${test.draft.remote.args} -draftCompile -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 247 | test.out="${junit.out}/draft-remote" |
| 248 | test.cases="test.draft.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 249 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 250 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 251 | </extraclasspaths> |
| 252 | </gwt.junit> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 253 | </target> |
| 254 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 255 | <target name="test.nometa.remote" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 256 | description="Run -XdisableClassMetadata tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 257 | if="gwt.hosts.web.remote" |
| 258 | unless="test.nometa.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 259 | <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 260 | <property name="test.nometa.remote.args" value="${test.args.web.remote}" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 261 | <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 262 | includes="${gwt.junit.testcase.web.includes}" |
| 263 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 264 | <gwt.junit test.name="test.nometa.remote" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 265 | test.args="${test.nometa.remote.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 266 | test.out="${junit.out}/nometa-remote" |
| 267 | test.cases="test.nometa.remote.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 268 | <extraclasspaths> |
| 269 | <path refid="test.extraclasspath" /> |
| 270 | </extraclasspaths> |
| 271 | </gwt.junit> |
| 272 | </target> |
| 273 | |
| 274 | <target name="test.selenium" depends="test.web.selenium"> |
| 275 | <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/> |
| 276 | </target> |
| 277 | |
| 278 | <target name="test.web.selenium" |
| 279 | depends="compile, compile.tests" |
| 280 | description="Run web tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 281 | if="gwt.hosts.web.selenium" |
| 282 | unless="test.web.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 283 | <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] | 284 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 285 | <fileset id="test.web.selenium.tests" dir="${javac.junit.out}" |
| 286 | includes="${gwt.junit.testcase.web.includes}" |
| 287 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 288 | <gwt.junit test.name="test.web.selenium" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 289 | test.args='${test.web.selenium.args} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"' |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 290 | test.out="${junit.out}/web-selenium" |
| 291 | test.cases="test.web.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 292 | <extraclasspaths> |
| 293 | <path refid="test.extraclasspath" /> |
| 294 | </extraclasspaths> |
| 295 | </gwt.junit> |
| 296 | </target> |
| 297 | |
| 298 | <target name="test.dev.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 299 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 300 | description="Run dev-mode tests using Selenium RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 301 | if="gwt.hosts.dev.selenium" |
| 302 | unless="test.dev.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 303 | <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] | 304 | <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 305 | <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}" |
| 306 | includes="${gwt.junit.testcase.dev.includes}" |
| 307 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 308 | <gwt.junit test.name="test.dev.selenium" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 309 | test.args='${test.dev.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"' |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 310 | test.out="${junit.out}/dev-selenium" |
| 311 | test.cases="test.dev.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 312 | <extraclasspaths> |
| 313 | <path refid="test.extraclasspath" /> |
| 314 | </extraclasspaths> |
| 315 | </gwt.junit> |
| 316 | </target> |
| 317 | |
| 318 | <target name="test.nometa.selenium" |
| 319 | description="Run nometa tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 320 | if="gwt.hosts.web.selenium" |
| 321 | unless="test.nometa.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 322 | <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] | 323 | <property name="test.nometa.selenium.args" |
| 324 | value="${test.args.web.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 325 | <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}" |
| 326 | includes="${gwt.junit.testcase.web.includes}" |
| 327 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 328 | <gwt.junit test.name="test.nometa.selenium" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 329 | test.args='${test.nometa.selenium.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}"' |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 330 | test.out="${junit.out}/nometa-selenium" |
| 331 | test.cases="test.nometa.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 332 | <extraclasspaths> |
| 333 | <path refid="test.extraclasspath" /> |
| 334 | </extraclasspaths> |
| 335 | </gwt.junit> |
| 336 | </target> |
| 337 | |
| 338 | <target name="test.draft.selenium" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 339 | description="Run draft compiled tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 340 | if="gwt.hosts.web.selenium" |
| 341 | unless="test.draft.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 342 | <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] | 343 | <property name="test.draft.selenium.args" |
| 344 | value="${test.args.web.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 345 | <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}" |
| 346 | includes="${gwt.junit.testcase.web.includes}" |
| 347 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 348 | <gwt.junit test.name="test.draft.selenium" |
jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 349 | test.args='${test.draft.selenium.args} -draftCompile -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"' |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 350 | test.out="${junit.out}/draft-selenium" |
| 351 | test.cases="test.draft.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 352 | <extraclasspaths> |
| 353 | <path refid="test.extraclasspath" /> |
| 354 | </extraclasspaths> |
| 355 | </gwt.junit> |
| 356 | </target> |
| 357 | |
| 358 | <target name="test.emma.htmlunit" |
| 359 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 360 | description="Run emma tests with HtmlUnit" |
| 361 | unless="test.emma.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 362 | <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 363 | includes="${gwt.junit.testcase.dev.includes}" |
| 364 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 365 | <gwt.junit test.name="test.emma.htmlunit" |
| 366 | test.args="${test.args} -standardsMode " |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 367 | test.out="${junit.out}/emma-htmlunit" |
| 368 | test.cases="test.emma.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 369 | <extraclasspaths> |
| 370 | <path refid="test.extraclasspath" /> |
| 371 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 372 | </extraclasspaths> |
| 373 | </gwt.junit> |
| 374 | </target> |
| 375 | |
| 376 | <target name="test.dev.htmlunit" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 377 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 378 | description="Run dev-mode tests with HtmlUnit." |
| 379 | unless="test.dev.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 380 | <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}" |
| 381 | includes="${gwt.junit.testcase.dev.includes}" |
| 382 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 383 | <gwt.junit test.name="test.dev.htmlunit" |
| 384 | test.args="${test.args} -standardsMode " |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 385 | test.out="${junit.out}/dev-htmlunit" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 386 | test.cases="test.dev.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 387 | <extraclasspaths> |
| 388 | <path refid="test.extraclasspath" /> |
| 389 | </extraclasspaths> |
| 390 | </gwt.junit> |
| 391 | </target> |
| 392 | |
| 393 | <target name="test.hosted.emma" depends="test.emma"> |
| 394 | <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/> |
| 395 | </target> |
| 396 | |
| 397 | <target name="test.hosted" depends="test.dev"> |
| 398 | <echo message="DEPRECATED: test.hosted has been renamed test.dev"/> |
| 399 | </target> |
| 400 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 401 | <target name="test.web.htmlunit" |
| 402 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 403 | description="Run web-mode tests with HtmlUnit." |
| 404 | unless="test.web.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 405 | <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}" |
| 406 | includes="${gwt.junit.testcase.web.includes}" |
| 407 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 408 | <gwt.junit test.name="test.web.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 409 | test.args="${test.args} -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 410 | test.out="${junit.out}/web-htmlunit" |
| 411 | test.cases="test.web.htmlunit.tests"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 412 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 413 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 414 | </extraclasspaths> |
| 415 | </gwt.junit> |
| 416 | </target> |
gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 417 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 418 | <target name="test.nometa.htmlunit" |
| 419 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 420 | description="Run -XdisableClassMetadata tests with HtmlUnit." |
| 421 | unless="test.nometa.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 422 | <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}" |
| 423 | includes="${gwt.junit.testcase.web.includes}" |
| 424 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 425 | <gwt.junit test.name="test.nometa.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 426 | test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 427 | test.out="${junit.out}/nometa-htmlunit" |
| 428 | test.cases="test.nometa.htmlunit.tests" > |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 429 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 430 | <path refid="test.extraclasspath" /> |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 431 | </extraclasspaths> |
| 432 | </gwt.junit> |
| 433 | </target> |
| 434 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 435 | <target name="test.draft.htmlunit" |
| 436 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 437 | description="Run draft compiled HtmlUnit tests (no batching on purpose)" |
| 438 | unless="test.draft.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 439 | <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}" |
| 440 | includes="${gwt.junit.testcase.web.includes}" |
| 441 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 442 | <gwt.junit test.name="test.draft.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 443 | test.args="${test.args} -draftCompile -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 444 | test.out="${junit.out}/draft-htmlunit" |
| 445 | test.cases="test.draft.htmlunit.tests" > |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 446 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 447 | <path refid="test.extraclasspath" /> |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 448 | </extraclasspaths> |
| 449 | </gwt.junit> |
| 450 | </target> |
| 451 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 452 | <target name="test" |
| 453 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 454 | description="Run all tests for this project."> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 455 | <!-- Prevent compilation for every target. --> |
| 456 | <property name="compile.complete" value="true"/> |
| 457 | <property name="compile.tests.complete" value="true"/> |
| 458 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 459 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 460 | 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] | 461 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 462 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 463 | threadCount="${gwt.threadCount}"> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 464 | <!-- |
| 465 | The remote targets must be run sequentially or BrowserManager will queue |
| 466 | requests, which will cause some tests to timeout while waiting. |
| 467 | --> |
| 468 | <sequential> |
| 469 | <antcall target="test.dev.remote"/> |
| 470 | <antcall target="test.emma.remote"/> |
| 471 | <antcall target="test.web.remote"/> |
| 472 | <antcall target="test.draft.remote"/> |
| 473 | <antcall target="test.nometa.remote"/> |
| 474 | </sequential> |
| 475 | <antcall target="test.dev.selenium"/> |
| 476 | <antcall target="test.emma.selenium"/> |
| 477 | <antcall target="test.web.selenium"/> |
| 478 | <antcall target="test.draft.selenium"/> |
| 479 | <antcall target="test.nometa.selenium"/> |
amitmanjhi@google.com | a7c82b0 | 2010-03-25 14:19:13 +0000 | [diff] [blame] | 480 | <antcall target="test.dev.htmlunit"/> |
| 481 | <antcall target="test.emma.htmlunit"/> |
| 482 | <antcall target="test.web.htmlunit"/> |
| 483 | <antcall target="test.draft.htmlunit"/> |
| 484 | <antcall target="test.nometa.htmlunit"/> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 485 | </parallel> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 486 | </limit> |
| 487 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 488 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 489 | <target name="test.htmlunit" |
| 490 | depends="compile, compile.tests" |
| 491 | description="Run all HtmlUnit tests"> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 492 | <!-- Prevent compilation for every target. --> |
| 493 | <property name="compile.complete" value="true"/> |
| 494 | <property name="compile.tests.complete" value="true"/> |
nchalko@google.com | 90f14a0 | 2010-07-28 19:08:32 +0000 | [diff] [blame] | 495 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 496 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 497 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 498 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 499 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 500 | threadCount="${gwt.threadCount}"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +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"/> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 506 | </parallel> |
| 507 | </limit> |
| 508 | </target> |
| 509 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 510 | <target name="test.dev" |
| 511 | depends="compile, compile.tests" |
| 512 | description="Run dev-mode tests for this project."> |
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"/> |
| 516 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 517 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 518 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 519 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 520 | <antcall target="test.dev.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 521 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 522 | <antcall target="test.dev.remote"/> |
| 523 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 524 | <antcall target="test.dev.selenium"/> |
| 525 | </parallel> |
| 526 | </limit> |
| 527 | </target> |
| 528 | |
| 529 | <target name="test.web" |
| 530 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 531 | description="Run web-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 532 | <!-- Prevent compilation for every target. --> |
| 533 | <property name="compile.complete" value="true"/> |
| 534 | <property name="compile.tests.complete" value="true"/> |
| 535 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 536 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 537 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 538 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 539 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 540 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 541 | <antcall target="test.web.remote"/> |
| 542 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 543 | <antcall target="test.web.selenium"/> |
| 544 | </parallel> |
| 545 | </limit> |
| 546 | </target> |
| 547 | |
| 548 | <target name="test.emma" |
| 549 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 550 | description="Run emma tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 551 | <!-- Prevent compilation for every target. --> |
| 552 | <property name="compile.complete" value="true"/> |
| 553 | <property name="compile.tests.complete" value="true"/> |
| 554 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 555 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 556 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 557 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 558 | <antcall target="test.emma.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 559 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 560 | <antcall target="test.emma.remote"/> |
| 561 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 562 | <antcall target="test.emma.selenium"/> |
| 563 | </parallel> |
| 564 | </limit> |
| 565 | </target> |
| 566 | |
| 567 | <target name="test.draft" |
| 568 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 569 | description="Run draft compiled tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 570 | <!-- Prevent compilation for every target. --> |
| 571 | <property name="compile.complete" value="true"/> |
| 572 | <property name="compile.tests.complete" value="true"/> |
| 573 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 574 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 575 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 576 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 577 | <antcall target="test.draft.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 578 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 579 | <antcall target="test.draft.remote"/> |
| 580 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 581 | <antcall target="test.draft.selenium"/> |
| 582 | </parallel> |
| 583 | </limit> |
| 584 | </target> |
| 585 | |
| 586 | <target name="test.nometa" |
| 587 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 588 | description="Run -XdisableClassMetadata tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 589 | <!-- Prevent compilation for every target. --> |
| 590 | <property name="compile.complete" value="true"/> |
| 591 | <property name="compile.tests.complete" value="true"/> |
| 592 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 593 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 594 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 595 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 596 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 597 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 598 | <antcall target="test.nometa.remote"/> |
| 599 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 600 | <antcall target="test.nometa.selenium"/> |
| 601 | </parallel> |
| 602 | </limit> |
| 603 | </target> |
| 604 | |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 605 | <target name="benchmark" |
| 606 | description="Run all benchmarks for this project."> |
| 607 | |
| 608 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 609 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 610 | <limit failonerror="true" hours="${benchmark.timeout}"> |
| 611 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 612 | <antcall target="benchmark.web.remote"/> |
| 613 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 614 | <antcall target="benchmark.web.selenium"/> |
| 615 | <antcall target="benchmark.web.htmlunit"/> |
| 616 | </limit> |
| 617 | </target> |
| 618 | |
| 619 | <target name="benchmark.web.htmlunit" |
| 620 | depends="compile, compile.tests" |
| 621 | description="Run web-mode benchmarks with HtmlUnit." |
| 622 | unless="benchmark.web.htmlunit.disable"> |
| 623 | <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}" |
| 624 | includes="${gwt.benchmark.testcase.web.includes}" |
| 625 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 626 | <gwt.junit test.name="benchmark.web.htmlunit" |
| 627 | test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode" |
| 628 | test.out="${junit.out}/web-htmlunit-benchmark" |
| 629 | test.cases="benchmark.web.htmlunit.tests" > |
| 630 | <extraclasspaths> |
| 631 | <path refid="test.extraclasspath" /> |
| 632 | </extraclasspaths> |
| 633 | </gwt.junit> |
| 634 | </target> |
| 635 | |
| 636 | <target name="benchmark.web.selenium" |
| 637 | depends="compile, compile.tests" |
| 638 | description="Run web benchmark using Selenium RC" |
| 639 | if="gwt.hosts.web.selenium" |
| 640 | unless="benchmark.web.selenium.disable"> |
| 641 | <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" /> |
| 642 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
| 643 | <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}" |
| 644 | includes="${gwt.benchmark.testcase.web.includes}" |
| 645 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 646 | <gwt.junit test.name="benchmark.web.selenium" |
| 647 | test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"' |
| 648 | test.out="${junit.out}/web-selenium-benchmark" |
| 649 | test.cases="benchmark.web.selenium.tests" > |
| 650 | <extraclasspaths> |
| 651 | <path refid="test.extraclasspath" /> |
| 652 | </extraclasspaths> |
| 653 | </gwt.junit> |
| 654 | </target> |
| 655 | |
| 656 | <target name="benchmark.web.remote" |
| 657 | depends="compile, compile.tests" |
| 658 | description="Run web benchmarks with remote browsers" |
| 659 | if="gwt.hosts.web.remote" |
| 660 | unless="benchmark.web.remote.disable"> |
| 661 | <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" /> |
| 662 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
| 663 | <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}" |
| 664 | includes="${gwt.benchmark.testcase.web.includes}" |
| 665 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 666 | <gwt.junit test.name="benchmark.web.remote" |
| 667 | test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}" |
| 668 | test.out="${junit.out}/web-remote-benchmark" |
| 669 | test.cases="benchmark.web.remote.tests" > |
| 670 | <extraclasspaths> |
| 671 | <path refid="test.extraclasspath" /> |
| 672 | </extraclasspaths> |
| 673 | </gwt.junit> |
| 674 | </target> |
| 675 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 676 | <!-- |
| 677 | Merges coverage data for the entire project |
| 678 | --> |
| 679 | <target name="emma.merge"> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 680 | <delete dir="${emma.merged.out}" /> |
| 681 | <mkdir dir="${emma.merged.out}" /> |
| 682 | <emma> |
| 683 | <merge outfile="${emma.merged.out}/merged.emma" > |
| 684 | <fileset dir="${junit.out}" > |
| 685 | <include name="**/*.emma" /> |
| 686 | <exclude name="${emma.merged.out}/merged.emma" /> |
| 687 | </fileset> |
| 688 | </merge> |
| 689 | </emma> |
| 690 | <emma> |
| 691 | <report sourcepath="${project.classpath.src}"> |
| 692 | <fileset file="${javac.emma.out}/metadata.emma" /> |
| 693 | <fileset file="${emma.merged.out}/merged.emma" /> |
| 694 | <txt outfile="${emma.merged.out}/coverage.txt" /> |
| 695 | <html outfile="${emma.merged.out}/coverage.html" /> |
| 696 | <xml outfile="${emma.merged.out}/coverage.xml" /> |
| 697 | </report> |
| 698 | </emma> |
| 699 | </target> |
| 700 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 701 | <target name="clean" |
| 702 | description="Cleans this project's intermediate and output files"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 703 | <delete dir="${project.build}" /> |
| 704 | <delete file="${project.lib}" /> |
| 705 | </target> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 706 | |
| 707 | <target name="presubmit" depends="test, checkstyle" |
| 708 | description="runs the gwt api checker, user checkstyle, and user tests"> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 709 | <gwt.ant dir=".." target="apicheck-nobuild"/> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 710 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 711 | </project> |