| 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 | 860d8b4 | 2010-08-11 00:21:50 +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"/> |
| 135 | </fileset> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 136 | <fileset dir="super/com/google/gwt/emul" /> |
| 137 | <fileset dir="super/com/google/gwt/junit/translatable" /> |
| 138 | </gwt.checkstyle> |
| scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 139 | <gwt.checkstyle.tests> |
| 140 | <fileset dir="test"> |
| scottb@google.com | 391ffa0 | 2009-11-03 22:04:04 +0000 | [diff] [blame] | 141 | <include name="com/google/**/*.java" /> |
| 142 | <include name="test/**" /> |
| scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 143 | </fileset> |
| 144 | </gwt.checkstyle.tests> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 145 | </target> |
| gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 146 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 147 | <target name="test.remoteweb" depends="test.web.remote"> |
| 148 | <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/> |
| 149 | </target> |
| 150 | |
| 151 | <target name="test.web.remote" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 152 | description="Run web test with remote browsers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 153 | if="gwt.hosts.web.remote" |
| 154 | unless="test.web.remote.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 155 | <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 156 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
| jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 157 | <fileset id="test.web.remote.tests" dir="${javac.junit.out}" |
| 158 | includes="${gwt.junit.testcase.web.includes}" |
| 159 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 160 | <gwt.junit test.name="test.web.remote" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 161 | 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] | 162 | test.out="${junit.out}/web-remote" |
| 163 | test.cases="test.web.remote.tests" > |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 164 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 165 | <path refid="test.extraclasspath" /> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 166 | </extraclasspaths> |
| 167 | </gwt.junit> |
| 168 | </target> |
| zundel@google.com | 29666c8 | 2008-06-04 16:07:53 +0000 | [diff] [blame] | 169 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 170 | <target name="test.dev.remote" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 171 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 172 | description="Run dev-mode tests with remote browsers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 173 | if="gwt.hosts.dev.remote" |
| 174 | unless="test.dev.remote.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 175 | <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 176 | <property name="test.dev.remote.args" value="${test.args.dev.remote}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 177 | <fileset id="test.dev.remote.tests" dir="${javac.junit.out}" |
| 178 | includes="${gwt.junit.testcase.dev.includes}" |
| 179 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 180 | <gwt.junit test.name="test.dev.remote" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 181 | 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] | 182 | 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] | 183 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 184 | <path refid="test.extraclasspath" /> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 185 | </extraclasspaths> |
| 186 | </gwt.junit> |
| 187 | </target> |
| gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 188 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 189 | <target name="test.emma.remote" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 190 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 191 | description="Run emma tests with remote browsers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 192 | if="gwt.hosts.dev.remote" |
| 193 | unless="test.emma.remote.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 194 | <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 195 | <property name="test.emma.remote.args" value="${test.args.dev.remote}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 196 | <fileset id="test.emma.remote.tests" dir="${javac.junit.out}" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 197 | includes="${gwt.junit.testcase.dev.includes}" |
| 198 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 199 | <gwt.junit test.name="test.emma.remote" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 200 | 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] | 201 | test.out="${junit.out}/emma-remote" |
| 202 | test.cases="test.emma.remote.tests" > |
| jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 203 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 204 | <path refid="test.extraclasspath" /> |
| jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 205 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 206 | </extraclasspaths> |
| 207 | </gwt.junit> |
| 208 | </target> |
| 209 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 210 | <target name="test.emma.selenium" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 211 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 212 | description="Run emma tests with Selenium-RC servers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 213 | if="gwt.hosts.dev.selenium" |
| 214 | unless="test.emma.selenium.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 215 | <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 216 | <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 217 | <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 218 | includes="${gwt.junit.testcase.dev.includes}" |
| 219 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 220 | <gwt.junit test.name="test.emma.selenium" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 221 | 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] | 222 | test.out="${junit.out}/emma-selenium" |
| 223 | test.cases="test.emma.selenium.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 224 | <extraclasspaths> |
| 225 | <path refid="test.extraclasspath" /> |
| 226 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 227 | </extraclasspaths> |
| 228 | </gwt.junit> |
| 229 | </target> |
| 230 | |
| 231 | <target name="test.draft.remote" |
| 232 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 233 | description="Run draft compiled tests with remote browsers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 234 | if="gwt.hosts.web.remote" |
| 235 | unless="test.draft.remote.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 236 | <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 237 | <property name="test.draft.remote.args" value="${test.args.web.remote}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 238 | <fileset id="test.draft.remote.tests" dir="${javac.junit.out}" |
| 239 | includes="${gwt.junit.testcase.web.includes}" |
| 240 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 241 | <gwt.junit test.name="test.draft.remote" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 242 | 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] | 243 | test.out="${junit.out}/draft-remote" |
| 244 | test.cases="test.draft.remote.tests" > |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 245 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 246 | <path refid="test.extraclasspath" /> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 247 | </extraclasspaths> |
| 248 | </gwt.junit> |
| spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 249 | </target> |
| 250 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 251 | <target name="test.nometa.remote" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 252 | description="Run -XdisableClassMetadata tests with remote browsers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 253 | if="gwt.hosts.web.remote" |
| 254 | unless="test.nometa.remote.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 255 | <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" /> |
| jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 256 | <property name="test.nometa.remote.args" value="${test.args.web.remote}" /> |
| jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 257 | <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 258 | includes="${gwt.junit.testcase.web.includes}" |
| 259 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 260 | <gwt.junit test.name="test.nometa.remote" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 261 | 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] | 262 | test.out="${junit.out}/nometa-remote" |
| 263 | test.cases="test.nometa.remote.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 264 | <extraclasspaths> |
| 265 | <path refid="test.extraclasspath" /> |
| 266 | </extraclasspaths> |
| 267 | </gwt.junit> |
| 268 | </target> |
| 269 | |
| 270 | <target name="test.selenium" depends="test.web.selenium"> |
| 271 | <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/> |
| 272 | </target> |
| 273 | |
| 274 | <target name="test.web.selenium" |
| 275 | depends="compile, compile.tests" |
| 276 | description="Run web tests using Selenium RC" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 277 | if="gwt.hosts.web.selenium" |
| 278 | unless="test.web.selenium.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 279 | <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] | 280 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 281 | <fileset id="test.web.selenium.tests" dir="${javac.junit.out}" |
| 282 | includes="${gwt.junit.testcase.web.includes}" |
| 283 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 284 | <gwt.junit test.name="test.web.selenium" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 285 | 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] | 286 | test.out="${junit.out}/web-selenium" |
| 287 | test.cases="test.web.selenium.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 288 | <extraclasspaths> |
| 289 | <path refid="test.extraclasspath" /> |
| 290 | </extraclasspaths> |
| 291 | </gwt.junit> |
| 292 | </target> |
| 293 | |
| 294 | <target name="test.dev.selenium" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 295 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 296 | description="Run dev-mode tests using Selenium RC servers" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 297 | if="gwt.hosts.dev.selenium" |
| 298 | unless="test.dev.selenium.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 299 | <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] | 300 | <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 301 | <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}" |
| 302 | includes="${gwt.junit.testcase.dev.includes}" |
| 303 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 304 | <gwt.junit test.name="test.dev.selenium" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 305 | 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] | 306 | test.out="${junit.out}/dev-selenium" |
| 307 | test.cases="test.dev.selenium.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 308 | <extraclasspaths> |
| 309 | <path refid="test.extraclasspath" /> |
| 310 | </extraclasspaths> |
| 311 | </gwt.junit> |
| 312 | </target> |
| 313 | |
| 314 | <target name="test.nometa.selenium" |
| 315 | description="Run nometa tests using Selenium RC" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 316 | if="gwt.hosts.web.selenium" |
| 317 | unless="test.nometa.selenium.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 318 | <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] | 319 | <property name="test.nometa.selenium.args" |
| 320 | value="${test.args.web.selenium}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 321 | <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}" |
| 322 | includes="${gwt.junit.testcase.web.includes}" |
| 323 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 324 | <gwt.junit test.name="test.nometa.selenium" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 325 | 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] | 326 | test.out="${junit.out}/nometa-selenium" |
| 327 | test.cases="test.nometa.selenium.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 328 | <extraclasspaths> |
| 329 | <path refid="test.extraclasspath" /> |
| 330 | </extraclasspaths> |
| 331 | </gwt.junit> |
| 332 | </target> |
| 333 | |
| 334 | <target name="test.draft.selenium" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 335 | description="Run draft compiled tests using Selenium RC" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 336 | if="gwt.hosts.web.selenium" |
| 337 | unless="test.draft.selenium.disable"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 338 | <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] | 339 | <property name="test.draft.selenium.args" |
| 340 | value="${test.args.web.selenium}" /> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 341 | <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}" |
| 342 | includes="${gwt.junit.testcase.web.includes}" |
| 343 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 344 | <gwt.junit test.name="test.draft.selenium" |
| jlabanca@google.com | 6e5c766 | 2010-04-20 12:32:24 +0000 | [diff] [blame] | 345 | 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] | 346 | test.out="${junit.out}/draft-selenium" |
| 347 | test.cases="test.draft.selenium.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 348 | <extraclasspaths> |
| 349 | <path refid="test.extraclasspath" /> |
| 350 | </extraclasspaths> |
| 351 | </gwt.junit> |
| 352 | </target> |
| 353 | |
| 354 | <target name="test.emma.htmlunit" |
| 355 | depends="compile, compile.tests" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 356 | description="Run emma tests with HtmlUnit" |
| 357 | unless="test.emma.htmlunit.disable"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 358 | <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 359 | includes="${gwt.junit.testcase.dev.includes}" |
| 360 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 361 | <gwt.junit test.name="test.emma.htmlunit" |
| 362 | test.args="${test.args} -standardsMode " |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 363 | test.out="${junit.out}/emma-htmlunit" |
| 364 | test.cases="test.emma.htmlunit.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 365 | <extraclasspaths> |
| 366 | <path refid="test.extraclasspath" /> |
| 367 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 368 | </extraclasspaths> |
| 369 | </gwt.junit> |
| 370 | </target> |
| 371 | |
| 372 | <target name="test.dev.htmlunit" |
| jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 373 | depends="compile, compile.tests" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 374 | description="Run dev-mode tests with HtmlUnit." |
| 375 | unless="test.dev.htmlunit.disable"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 376 | <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}" |
| 377 | includes="${gwt.junit.testcase.dev.includes}" |
| 378 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
| jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 379 | <gwt.junit test.name="test.dev.htmlunit" |
| 380 | test.args="${test.args} -standardsMode " |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 381 | test.out="${junit.out}/dev-htmlunit" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 382 | test.cases="test.dev.htmlunit.tests" > |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 383 | <extraclasspaths> |
| 384 | <path refid="test.extraclasspath" /> |
| 385 | </extraclasspaths> |
| 386 | </gwt.junit> |
| 387 | </target> |
| 388 | |
| 389 | <target name="test.hosted.emma" depends="test.emma"> |
| 390 | <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/> |
| 391 | </target> |
| 392 | |
| 393 | <target name="test.hosted" depends="test.dev"> |
| 394 | <echo message="DEPRECATED: test.hosted has been renamed test.dev"/> |
| 395 | </target> |
| 396 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 397 | <target name="test.web.htmlunit" |
| 398 | depends="compile, compile.tests" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 399 | description="Run web-mode tests with HtmlUnit." |
| 400 | unless="test.web.htmlunit.disable"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 401 | <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}" |
| 402 | includes="${gwt.junit.testcase.web.includes}" |
| 403 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 404 | <gwt.junit test.name="test.web.htmlunit" |
| jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 405 | test.args="${test.args} -out www -prod -standardsMode" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 406 | test.out="${junit.out}/web-htmlunit" |
| 407 | test.cases="test.web.htmlunit.tests"> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 408 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 409 | <path refid="test.extraclasspath" /> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 410 | </extraclasspaths> |
| 411 | </gwt.junit> |
| 412 | </target> |
| gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 413 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 414 | <target name="test.nometa.htmlunit" |
| 415 | depends="compile, compile.tests" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 416 | description="Run -XdisableClassMetadata tests with HtmlUnit." |
| 417 | unless="test.nometa.htmlunit.disable"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 418 | <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}" |
| 419 | includes="${gwt.junit.testcase.web.includes}" |
| 420 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 421 | <gwt.junit test.name="test.nometa.htmlunit" |
| jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 422 | test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 423 | test.out="${junit.out}/nometa-htmlunit" |
| 424 | test.cases="test.nometa.htmlunit.tests" > |
| bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 425 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 426 | <path refid="test.extraclasspath" /> |
| bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 427 | </extraclasspaths> |
| 428 | </gwt.junit> |
| 429 | </target> |
| 430 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 431 | <target name="test.draft.htmlunit" |
| 432 | depends="compile, compile.tests" |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 433 | description="Run draft compiled HtmlUnit tests (no batching on purpose)" |
| 434 | unless="test.draft.htmlunit.disable"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 435 | <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}" |
| 436 | includes="${gwt.junit.testcase.web.includes}" |
| 437 | excludes="${gwt.junit.testcase.web.excludes}" /> |
| jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 438 | <gwt.junit test.name="test.draft.htmlunit" |
| jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 439 | test.args="${test.args} -draftCompile -out www -prod -standardsMode" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 440 | test.out="${junit.out}/draft-htmlunit" |
| 441 | test.cases="test.draft.htmlunit.tests" > |
| bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 442 | <extraclasspaths> |
| fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 443 | <path refid="test.extraclasspath" /> |
| bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 444 | </extraclasspaths> |
| 445 | </gwt.junit> |
| 446 | </target> |
| 447 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 448 | <target name="test" |
| 449 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 450 | description="Run all tests for this project."> |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 451 | <!-- Prevent compilation for every target. --> |
| 452 | <property name="compile.complete" value="true"/> |
| 453 | <property name="compile.tests.complete" value="true"/> |
| 454 | |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 455 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 456 | 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] | 457 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 458 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 459 | threadCount="${gwt.threadCount}"> |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 460 | <!-- |
| 461 | The remote targets must be run sequentially or BrowserManager will queue |
| 462 | requests, which will cause some tests to timeout while waiting. |
| 463 | --> |
| 464 | <sequential> |
| 465 | <antcall target="test.dev.remote"/> |
| 466 | <antcall target="test.emma.remote"/> |
| 467 | <antcall target="test.web.remote"/> |
| 468 | <antcall target="test.draft.remote"/> |
| 469 | <antcall target="test.nometa.remote"/> |
| 470 | </sequential> |
| 471 | <antcall target="test.dev.selenium"/> |
| 472 | <antcall target="test.emma.selenium"/> |
| 473 | <antcall target="test.web.selenium"/> |
| 474 | <antcall target="test.draft.selenium"/> |
| 475 | <antcall target="test.nometa.selenium"/> |
| amitmanjhi@google.com | a7c82b0 | 2010-03-25 14:19:13 +0000 | [diff] [blame] | 476 | <antcall target="test.dev.htmlunit"/> |
| 477 | <antcall target="test.emma.htmlunit"/> |
| 478 | <antcall target="test.web.htmlunit"/> |
| 479 | <antcall target="test.draft.htmlunit"/> |
| 480 | <antcall target="test.nometa.htmlunit"/> |
| jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 481 | </parallel> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 482 | </limit> |
| 483 | </target> |
| gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 484 | |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 485 | <target name="test.htmlunit" |
| 486 | depends="compile, compile.tests" |
| 487 | description="Run all HtmlUnit tests"> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 488 | <!-- Prevent compilation for every target. --> |
| 489 | <property name="compile.complete" value="true"/> |
| 490 | <property name="compile.tests.complete" value="true"/> |
| nchalko@google.com | 90f14a0 | 2010-07-28 19:08:32 +0000 | [diff] [blame] | 491 | |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 492 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 493 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 494 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 495 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 496 | threadCount="${gwt.threadCount}"> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 497 | <antcall target="test.dev.htmlunit"/> |
| 498 | <antcall target="test.emma.htmlunit"/> |
| 499 | <antcall target="test.web.htmlunit"/> |
| 500 | <antcall target="test.draft.htmlunit"/> |
| 501 | <antcall target="test.nometa.htmlunit"/> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 502 | </parallel> |
| 503 | </limit> |
| 504 | </target> |
| 505 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 506 | <target name="test.dev" |
| 507 | depends="compile, compile.tests" |
| 508 | description="Run dev-mode tests for this project."> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 509 | <!-- Prevent compilation for every target. --> |
| 510 | <property name="compile.complete" value="true"/> |
| 511 | <property name="compile.tests.complete" value="true"/> |
| 512 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 513 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 514 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 515 | threadCount="${gwt.threadCount}"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 516 | <antcall target="test.dev.htmlunit"/> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 517 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 518 | <antcall target="test.dev.remote"/> |
| 519 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 520 | <antcall target="test.dev.selenium"/> |
| 521 | </parallel> |
| 522 | </limit> |
| 523 | </target> |
| 524 | |
| 525 | <target name="test.web" |
| 526 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 527 | description="Run web-mode tests for this project."> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 528 | <!-- Prevent compilation for every target. --> |
| 529 | <property name="compile.complete" value="true"/> |
| 530 | <property name="compile.tests.complete" value="true"/> |
| 531 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 532 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 533 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 534 | threadCount="${gwt.threadCount}"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 535 | <antcall target="test.web.htmlunit"/> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 536 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 537 | <antcall target="test.web.remote"/> |
| 538 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 539 | <antcall target="test.web.selenium"/> |
| 540 | </parallel> |
| 541 | </limit> |
| 542 | </target> |
| 543 | |
| 544 | <target name="test.emma" |
| 545 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 546 | description="Run emma tests for this project."> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 547 | <!-- Prevent compilation for every target. --> |
| 548 | <property name="compile.complete" value="true"/> |
| 549 | <property name="compile.tests.complete" value="true"/> |
| 550 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 551 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 552 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 553 | threadCount="${gwt.threadCount}"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 554 | <antcall target="test.emma.htmlunit"/> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 555 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 556 | <antcall target="test.emma.remote"/> |
| 557 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 558 | <antcall target="test.emma.selenium"/> |
| 559 | </parallel> |
| 560 | </limit> |
| 561 | </target> |
| 562 | |
| 563 | <target name="test.draft" |
| 564 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 565 | description="Run draft compiled tests for this project."> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 566 | <!-- Prevent compilation for every target. --> |
| 567 | <property name="compile.complete" value="true"/> |
| 568 | <property name="compile.tests.complete" value="true"/> |
| 569 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 570 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 571 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 572 | threadCount="${gwt.threadCount}"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 573 | <antcall target="test.draft.htmlunit"/> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 574 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 575 | <antcall target="test.draft.remote"/> |
| 576 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 577 | <antcall target="test.draft.selenium"/> |
| 578 | </parallel> |
| 579 | </limit> |
| 580 | </target> |
| 581 | |
| 582 | <target name="test.nometa" |
| 583 | depends="compile, compile.tests" |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 584 | description="Run -XdisableClassMetadata tests for this project."> |
| jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 585 | <!-- Prevent compilation for every target. --> |
| 586 | <property name="compile.complete" value="true"/> |
| 587 | <property name="compile.tests.complete" value="true"/> |
| 588 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 589 | <limit failonerror="true" hours="${test.timeout}"> |
| jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 590 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 591 | threadCount="${gwt.threadCount}"> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 592 | <antcall target="test.web.htmlunit"/> |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 593 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 594 | <antcall target="test.nometa.remote"/> |
| 595 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 596 | <antcall target="test.nometa.selenium"/> |
| 597 | </parallel> |
| 598 | </limit> |
| 599 | </target> |
| 600 | |
| gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 601 | <target name="benchmark" |
| 602 | description="Run all benchmarks for this project."> |
| 603 | |
| 604 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 605 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 606 | <limit failonerror="true" hours="${benchmark.timeout}"> |
| 607 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 608 | <antcall target="benchmark.web.remote"/> |
| 609 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 610 | <antcall target="benchmark.web.selenium"/> |
| 611 | <antcall target="benchmark.web.htmlunit"/> |
| 612 | </limit> |
| 613 | </target> |
| 614 | |
| 615 | <target name="benchmark.web.htmlunit" |
| 616 | depends="compile, compile.tests" |
| 617 | description="Run web-mode benchmarks with HtmlUnit." |
| 618 | unless="benchmark.web.htmlunit.disable"> |
| 619 | <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}" |
| 620 | includes="${gwt.benchmark.testcase.web.includes}" |
| 621 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 622 | <gwt.junit test.name="benchmark.web.htmlunit" |
| 623 | test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode" |
| 624 | test.out="${junit.out}/web-htmlunit-benchmark" |
| 625 | test.cases="benchmark.web.htmlunit.tests" > |
| 626 | <extraclasspaths> |
| 627 | <path refid="test.extraclasspath" /> |
| 628 | </extraclasspaths> |
| 629 | </gwt.junit> |
| 630 | </target> |
| 631 | |
| 632 | <target name="benchmark.web.selenium" |
| 633 | depends="compile, compile.tests" |
| 634 | description="Run web benchmark using Selenium RC" |
| 635 | if="gwt.hosts.web.selenium" |
| 636 | unless="benchmark.web.selenium.disable"> |
| 637 | <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" /> |
| 638 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
| 639 | <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}" |
| 640 | includes="${gwt.benchmark.testcase.web.includes}" |
| 641 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 642 | <gwt.junit test.name="benchmark.web.selenium" |
| 643 | test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}"' |
| 644 | test.out="${junit.out}/web-selenium-benchmark" |
| 645 | test.cases="benchmark.web.selenium.tests" > |
| 646 | <extraclasspaths> |
| 647 | <path refid="test.extraclasspath" /> |
| 648 | </extraclasspaths> |
| 649 | </gwt.junit> |
| 650 | </target> |
| 651 | |
| 652 | <target name="benchmark.web.remote" |
| 653 | depends="compile, compile.tests" |
| 654 | description="Run web benchmarks with remote browsers" |
| 655 | if="gwt.hosts.web.remote" |
| 656 | unless="benchmark.web.remote.disable"> |
| 657 | <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" /> |
| 658 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
| 659 | <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}" |
| 660 | includes="${gwt.benchmark.testcase.web.includes}" |
| 661 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 662 | <gwt.junit test.name="benchmark.web.remote" |
| 663 | test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}" |
| 664 | test.out="${junit.out}/web-remote-benchmark" |
| 665 | test.cases="benchmark.web.remote.tests" > |
| 666 | <extraclasspaths> |
| 667 | <path refid="test.extraclasspath" /> |
| 668 | </extraclasspaths> |
| 669 | </gwt.junit> |
| 670 | </target> |
| 671 | |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 672 | <!-- |
| 673 | Merges coverage data for the entire project |
| 674 | --> |
| 675 | <target name="emma.merge"> |
| jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 676 | <delete dir="${emma.merged.out}" /> |
| 677 | <mkdir dir="${emma.merged.out}" /> |
| 678 | <emma> |
| 679 | <merge outfile="${emma.merged.out}/merged.emma" > |
| 680 | <fileset dir="${junit.out}" > |
| 681 | <include name="**/*.emma" /> |
| 682 | <exclude name="${emma.merged.out}/merged.emma" /> |
| 683 | </fileset> |
| 684 | </merge> |
| 685 | </emma> |
| 686 | <emma> |
| 687 | <report sourcepath="${project.classpath.src}"> |
| 688 | <fileset file="${javac.emma.out}/metadata.emma" /> |
| 689 | <fileset file="${emma.merged.out}/merged.emma" /> |
| 690 | <txt outfile="${emma.merged.out}/coverage.txt" /> |
| 691 | <html outfile="${emma.merged.out}/coverage.html" /> |
| 692 | <xml outfile="${emma.merged.out}/coverage.xml" /> |
| 693 | </report> |
| 694 | </emma> |
| 695 | </target> |
| 696 | |
| jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 697 | <target name="clean" |
| 698 | description="Cleans this project's intermediate and output files"> |
| fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 699 | <delete dir="${project.build}" /> |
| 700 | <delete file="${project.lib}" /> |
| 701 | </target> |
| jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 702 | |
| 703 | <target name="presubmit" depends="test, checkstyle" |
| 704 | description="runs the gwt api checker, user checkstyle, and user tests"> |
| spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 705 | <gwt.ant dir=".." target="apicheck-nobuild"/> |
| jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 706 | </target> |
| gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 707 | </project> |