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 | <!-- |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 31 | Test args can be specified per test target type. |
| 32 | --> |
| 33 | <property name="test.args.dev.remote" value="${test.args}" /> |
| 34 | <property name="test.args.dev.selenium" value="${test.args}" /> |
| 35 | <property name="test.args.web.remote" value="${test.args}" /> |
| 36 | <property name="test.args.web.selenium" value="${test.args}" /> |
| 37 | |
| 38 | <!-- |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 39 | Only IFrameLinker actually supports -noserver mode; run the other linker |
| 40 | tests if and when they are supported |
| 41 | --> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 42 | <property name="gwt.junit.testcase.noserver.includes" value="**/IFrameLinkerTest.class" /> |
| 43 | <property name="gwt.junit.testcase.noserver.excludes" value="" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 44 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 45 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 46 | Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the |
| 47 | value is "dollar") or Foo_Inner_fr.properties (for "bar") |
| 48 | --> |
| 49 | <property name="gwt.i18n.test.InnerClassChar" value="dollar"/> |
| 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"/> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 62 | </path> |
| 63 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 64 | <!-- Platform shouldn't matter here, just picking one --> |
jat@google.com | 0b1619e | 2009-09-20 19:33:31 +0000 | [diff] [blame] | 65 | <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] | 66 | |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 67 | <target name="compile" description="Compile all class files" |
| 68 | unless="compile.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 69 | <mkdir dir="${javac.out}" /> |
| 70 | <gwt.javac> |
| 71 | <classpath> |
scottb@google.com | 4f57bc2 | 2009-01-16 22:46:42 +0000 | [diff] [blame] | 72 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 73 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 74 | <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" /> |
| 75 | <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" /> |
bobv@google.com | a933c8b | 2009-03-26 02:12:25 +0000 | [diff] [blame] | 76 | <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 77 | <pathelement location="${gwt.tools.lib}/w3c/flute/flute-1.3-gg1.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 78 | <pathelement location="${gwt.dev.jar}" /> |
| 79 | </classpath> |
| 80 | </gwt.javac> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 81 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 82 | <!-- Build the BrowserManagerServer_Stub to allow remote browser testing --> |
| 83 | <rmic base="${javac.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 84 | classname="com.google.gwt.junit.remote.BrowserManagerServer" |
| 85 | stubversion="1.2"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 86 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 87 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 88 | <!-- |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 89 | Compile test code for dev to pick up TypeOracleTestUtils and others. |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 90 | Compiles test dependencies in dev/core |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 91 | --> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 92 | <target name="compile.dev.tests"> |
jat@google.com | c090a07 | 2009-09-21 17:39:53 +0000 | [diff] [blame] | 93 | <gwt.ant dir="../dev" target="compile.tests" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 94 | </target> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 95 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 96 | <!-- |
| 97 | Compiles the test code for this project |
| 98 | --> |
jat@google.com | e0fa5b1 | 2009-10-13 23:57:19 +0000 | [diff] [blame] | 99 | <target name="compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 100 | depends="compile.dev.tests, compile.emma.if.enabled" |
| 101 | unless="compile.tests.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 102 | <mkdir dir="${javac.junit.out}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 103 | <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**" |
| 104 | destdir="${javac.junit.out}"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 105 | <classpath> |
| 106 | <pathelement location="${javac.out}" /> |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 107 | <pathelement location="${gwt.build}/out/dev/bin-test" /> |
scottb@google.com | 4f57bc2 | 2009-01-16 22:46:42 +0000 | [diff] [blame] | 108 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" /> |
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" /> |
rjrjr@google.com | 34ea8a2 | 2009-10-06 16:46:04 +0000 | [diff] [blame] | 111 | <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/> |
| 112 | <pathelement location="${gwt.tools.lib}/easymock/easymock.jar"/> |
| 113 | <pathelement location="${gwt.tools.lib}/easymock/easymockclassextension.jar"/> |
| 114 | <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/> |
scottb@google.com | 2e8ef32 | 2008-11-04 20:59:58 +0000 | [diff] [blame] | 115 | <pathelement location="${gwt.dev.jar}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 116 | </classpath> |
| 117 | </gwt.javac> |
| 118 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 119 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 120 | <target name="build" depends="compile" |
| 121 | description="Build and package this project"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 122 | <mkdir dir="${gwt.build.lib}" /> |
| 123 | <gwt.jar> |
| 124 | <fileset dir="src" excludes="**/package.html" /> |
| 125 | <fileset dir="super" excludes="**/package.html" /> |
| 126 | <fileset dir="${javac.out}" /> |
scottb@google.com | 171f3f5 | 2009-08-11 19:50:31 +0000 | [diff] [blame] | 127 | <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] | 128 | <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 129 | <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] | 130 | </gwt.jar> |
| 131 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 132 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 133 | <target name="checkstyle" description="Static analysis of source"> |
| 134 | <gwt.checkstyle> |
| 135 | <fileset dir="src" /> |
| 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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 161 | test.args="${test.web.remote.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module" |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 181 | test.args="${test.dev.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module" |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 200 | test.args="${test.emma.remote.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote} -batch module" |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 221 | test.args='${test.emma.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}" -batch module' |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 242 | test.args="${test.draft.remote.args} -draftCompile -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module" |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 261 | test.args="${test.nometa.remote.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle RemoteWeb:${gwt.hosts.web.remote} -batch module" |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 285 | test.args='${test.web.selenium.args} -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module' |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 305 | test.args='${test.dev.selenium.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}" -batch module' |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 325 | test.args='${test.nometa.selenium.args} -XdisableClassMetadata -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module' |
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 | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 345 | test.args='${test.draft.selenium.args} -draftCompile -prod -out www -standardsMode -runStyle "Selenium:${gwt.hosts.web.selenium}" -batch module' |
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.noserver" |
| 398 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 399 | description="Run noserver tests for this project." |
| 400 | unless="test.noserver.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 401 | <fileset id="test.noserver.tests" dir="${javac.junit.out}" |
| 402 | includes="${gwt.junit.testcase.noserver.includes}" |
| 403 | excludes="${gwt.junit.testcase.noserver.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 404 | <gwt.junit test.name="test.noserver" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 405 | test.args="${test.args} -prod -standardsMode -noserver" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 406 | test.out="${junit.out}/noserver" test.cases="test.noserver.tests"> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 407 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 408 | <path refid="test.extraclasspath" /> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 409 | </extraclasspaths> |
| 410 | </gwt.junit> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 411 | </target> |
gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 412 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 413 | <target name="test.web.htmlunit" |
| 414 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 415 | description="Run web-mode tests with HtmlUnit." |
| 416 | unless="test.web.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 417 | <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}" |
| 418 | includes="${gwt.junit.testcase.web.includes}" |
| 419 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 420 | <gwt.junit test.name="test.web.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 421 | test.args="${test.args} -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 422 | test.out="${junit.out}/web-htmlunit" |
| 423 | test.cases="test.web.htmlunit.tests"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 424 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 425 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 426 | </extraclasspaths> |
| 427 | </gwt.junit> |
| 428 | </target> |
gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 429 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 430 | <target name="test.nometa.htmlunit" |
| 431 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 432 | description="Run -XdisableClassMetadata tests with HtmlUnit." |
| 433 | unless="test.nometa.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 434 | <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}" |
| 435 | includes="${gwt.junit.testcase.web.includes}" |
| 436 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 437 | <gwt.junit test.name="test.nometa.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 438 | test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 439 | test.out="${junit.out}/nometa-htmlunit" |
| 440 | test.cases="test.nometa.htmlunit.tests" > |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 441 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 442 | <path refid="test.extraclasspath" /> |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 443 | </extraclasspaths> |
| 444 | </gwt.junit> |
| 445 | </target> |
| 446 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 447 | <target name="test.draft.htmlunit" |
| 448 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 449 | description="Run draft compiled HtmlUnit tests (no batching on purpose)" |
| 450 | unless="test.draft.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 451 | <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}" |
| 452 | includes="${gwt.junit.testcase.web.includes}" |
| 453 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 454 | <gwt.junit test.name="test.draft.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame^] | 455 | test.args="${test.args} -draftCompile -out www -prod -standardsMode" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 456 | test.out="${junit.out}/draft-htmlunit" |
| 457 | test.cases="test.draft.htmlunit.tests" > |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 458 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 459 | <path refid="test.extraclasspath" /> |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 460 | </extraclasspaths> |
| 461 | </gwt.junit> |
| 462 | </target> |
| 463 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 464 | <target name="test" |
| 465 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 466 | description="Run all tests for this project."> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 467 | <!-- Prevent compilation for every target. --> |
| 468 | <property name="compile.complete" value="true"/> |
| 469 | <property name="compile.tests.complete" value="true"/> |
| 470 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 471 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 472 | 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] | 473 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 474 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 475 | threadCount="${gwt.threadCount}"> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 476 | <!-- |
| 477 | The remote targets must be run sequentially or BrowserManager will queue |
| 478 | requests, which will cause some tests to timeout while waiting. |
| 479 | --> |
| 480 | <sequential> |
| 481 | <antcall target="test.dev.remote"/> |
| 482 | <antcall target="test.emma.remote"/> |
| 483 | <antcall target="test.web.remote"/> |
| 484 | <antcall target="test.draft.remote"/> |
| 485 | <antcall target="test.nometa.remote"/> |
| 486 | </sequential> |
| 487 | <antcall target="test.dev.selenium"/> |
| 488 | <antcall target="test.emma.selenium"/> |
| 489 | <antcall target="test.web.selenium"/> |
| 490 | <antcall target="test.draft.selenium"/> |
| 491 | <antcall target="test.nometa.selenium"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 492 | <antcall target="test.noserver"/> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 493 | <!-- TODO(jlabanca): Enable htmlunit tests when they are stable. --> |
| 494 | <!-- <antcall target="test.dev.htmlunit"/> --> |
| 495 | <!-- <antcall target="test.emma.htmlunit"/> --> |
| 496 | <!-- <antcall target="test.web.htmlunit"/> --> |
| 497 | <!-- <antcall target="test.draft.htmlunit"/> --> |
| 498 | <!-- <antcall target="test.nometa.htmlunit"/> --> |
| 499 | </parallel> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 500 | </limit> |
| 501 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 502 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 503 | <target name="test.htmlunit" |
| 504 | depends="compile, compile.tests" |
| 505 | description="Run all HtmlUnit tests"> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 506 | <!-- Prevent compilation for every target. --> |
| 507 | <property name="compile.complete" value="true"/> |
| 508 | <property name="compile.tests.complete" value="true"/> |
| 509 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 510 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 511 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 512 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 513 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 514 | threadCount="${gwt.threadCount}"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 515 | <antcall target="test.dev.htmlunit"/> |
| 516 | <antcall target="test.emma.htmlunit"/> |
| 517 | <antcall target="test.web.htmlunit"/> |
| 518 | <antcall target="test.draft.htmlunit"/> |
| 519 | <antcall target="test.nometa.htmlunit"/> |
| 520 | <antcall target="test.noserver"/> |
| 521 | </parallel> |
| 522 | </limit> |
| 523 | </target> |
| 524 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 525 | <target name="test.dev" |
| 526 | depends="compile, compile.tests" |
| 527 | description="Run dev-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 | <!-- disable HtmlUnit until it is reliable |
| 536 | <antcall target="test.dev.htmlunit"/> |
| 537 | --> |
| 538 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 539 | <antcall target="test.dev.remote"/> |
| 540 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 541 | <antcall target="test.dev.selenium"/> |
| 542 | </parallel> |
| 543 | </limit> |
| 544 | </target> |
| 545 | |
| 546 | <target name="test.web" |
| 547 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 548 | description="Run web-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 549 | <!-- Prevent compilation for every target. --> |
| 550 | <property name="compile.complete" value="true"/> |
| 551 | <property name="compile.tests.complete" value="true"/> |
| 552 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 553 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 554 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 555 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 556 | <!-- disable HtmlUnit until it is reliable |
| 557 | <antcall target="test.web.htmlunit"/> |
| 558 | --> |
| 559 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 560 | <antcall target="test.web.remote"/> |
| 561 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 562 | <antcall target="test.web.selenium"/> |
| 563 | </parallel> |
| 564 | </limit> |
| 565 | </target> |
| 566 | |
| 567 | <target name="test.emma" |
| 568 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 569 | description="Run emma tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 570 | <!-- Prevent compilation for every target. --> |
| 571 | <property name="compile.complete" value="true"/> |
| 572 | <property name="compile.tests.complete" value="true"/> |
| 573 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 574 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 575 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 576 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 577 | <!-- disable HtmlUnit until it is reliable |
| 578 | <antcall target="test.emma.htmlunit"/> |
| 579 | --> |
| 580 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 581 | <antcall target="test.emma.remote"/> |
| 582 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 583 | <antcall target="test.emma.selenium"/> |
| 584 | </parallel> |
| 585 | </limit> |
| 586 | </target> |
| 587 | |
| 588 | <target name="test.draft" |
| 589 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 590 | description="Run draft compiled tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 591 | <!-- Prevent compilation for every target. --> |
| 592 | <property name="compile.complete" value="true"/> |
| 593 | <property name="compile.tests.complete" value="true"/> |
| 594 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 595 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 596 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 597 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 598 | <!-- disable HtmlUnit until it is reliable |
| 599 | <antcall target="test.draft.htmlunit"/> |
| 600 | --> |
| 601 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 602 | <antcall target="test.draft.remote"/> |
| 603 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 604 | <antcall target="test.draft.selenium"/> |
| 605 | </parallel> |
| 606 | </limit> |
| 607 | </target> |
| 608 | |
| 609 | <target name="test.nometa" |
| 610 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 611 | description="Run -XdisableClassMetadata tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 612 | <!-- Prevent compilation for every target. --> |
| 613 | <property name="compile.complete" value="true"/> |
| 614 | <property name="compile.tests.complete" value="true"/> |
| 615 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 616 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 617 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 618 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 619 | <!-- disable HtmlUnit until it is reliable |
| 620 | <antcall target="test.web.htmlunit"/> |
| 621 | --> |
| 622 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 623 | <antcall target="test.nometa.remote"/> |
| 624 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 625 | <antcall target="test.nometa.selenium"/> |
| 626 | </parallel> |
| 627 | </limit> |
| 628 | </target> |
| 629 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 630 | <!-- |
| 631 | Merges coverage data for the entire project |
| 632 | --> |
| 633 | <target name="emma.merge"> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 634 | <delete dir="${emma.merged.out}" /> |
| 635 | <mkdir dir="${emma.merged.out}" /> |
| 636 | <emma> |
| 637 | <merge outfile="${emma.merged.out}/merged.emma" > |
| 638 | <fileset dir="${junit.out}" > |
| 639 | <include name="**/*.emma" /> |
| 640 | <exclude name="${emma.merged.out}/merged.emma" /> |
| 641 | </fileset> |
| 642 | </merge> |
| 643 | </emma> |
| 644 | <emma> |
| 645 | <report sourcepath="${project.classpath.src}"> |
| 646 | <fileset file="${javac.emma.out}/metadata.emma" /> |
| 647 | <fileset file="${emma.merged.out}/merged.emma" /> |
| 648 | <txt outfile="${emma.merged.out}/coverage.txt" /> |
| 649 | <html outfile="${emma.merged.out}/coverage.html" /> |
| 650 | <xml outfile="${emma.merged.out}/coverage.xml" /> |
| 651 | </report> |
| 652 | </emma> |
| 653 | </target> |
| 654 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 655 | <target name="clean" |
| 656 | description="Cleans this project's intermediate and output files"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 657 | <delete dir="${project.build}" /> |
| 658 | <delete file="${project.lib}" /> |
| 659 | </target> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 660 | |
| 661 | <target name="presubmit" depends="test, checkstyle" |
| 662 | description="runs the gwt api checker, user checkstyle, and user tests"> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 663 | <gwt.ant dir=".." target="apicheck-nobuild"/> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 664 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 665 | </project> |