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