gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 1 | <project name="user" default="build" basedir="."> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 2 | <property name="gwt.root" location=".." /> |
| 3 | <property name="project.tail" value="user" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 4 | <property name="test.args" value="-ea" /> |
| 5 | <property name="test.jvmargs" value="-ea" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 6 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 7 | <!-- support old variables names --> |
| 8 | <condition property="gwt.hosts.web.remote" value="${gwt.remote.browsers}"> |
| 9 | <isset property="gwt.remote.browsers" /> |
| 10 | </condition> |
| 11 | <condition property="gwt.hosts.web.selenium" value="${gwt.selenium.hosts}"> |
| 12 | <isset property="gwt.selenium.hosts" /> |
| 13 | </condition> |
| 14 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 15 | <!-- |
| 16 | BrowserManagerServer_Stub compiled using rmic, which doesn't generate |
| 17 | full source code |
| 18 | --> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 19 | <property name="emma.filter.exclude" value="*BrowserManagerServer_Stub*" /> |
| 20 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 21 | <import file="${gwt.root}/common.ant.xml" /> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 22 | |
jat@google.com | 8cf77ce | 2009-10-16 01:47:08 +0000 | [diff] [blame] | 23 | <property name="test.timeout" value="4" /> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 24 | <property name="emma.merged.out" value="${junit.out}/emma-coverage" /> |
| 25 | <property name="gwt.junit.testcase.web.includes" value="${gwt.junit.testcase.includes}" /> |
| 26 | <property name="gwt.junit.testcase.web.excludes" value="" /> |
| 27 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 28 | <property name="gwt.junit.testcase.dev.includes" value="${gwt.junit.testcase.includes}" /> |
| 29 | <property name="gwt.junit.testcase.dev.excludes" value="" /> |
| 30 | |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 31 | <property name="benchmark.timeout" value="30" /> |
| 32 | <property name="gwt.benchmark.testcase.web.includes" value="${gwt.benchmark.testcase.includes}" /> |
| 33 | <property name="gwt.benchmark.testcase.web.excludes" value="${gwt.benchmark.testcase.excludes}" /> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 34 | |
| 35 | <property name="gwt.tck.testcase.dev.includes" value="com/google/gwt/validation/tck/**/*GwtSuite.class" /> |
| 36 | <property name="gwt.tct.testcase.dev.excludes" value="" /> |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 37 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 38 | <!-- |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 39 | Test args can be specified per test target type. |
| 40 | --> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 41 | <property name="test.args.dev.remote" value="${test.args} -out www -standardsMode -runStyle RemoteWeb:${gwt.hosts.dev.remote}" /> |
| 42 | <property name="test.args.dev.selenium" value='${test.args} -out www -standardsMode -runStyle "Selenium:${gwt.hosts.dev.selenium}"' /> |
| 43 | <property name="test.args.web.remote" value="${test.args} -out www -prod -standardsMode -runStyle RemoteWeb:${gwt.hosts.web.remote}" /> |
| 44 | <property name="test.args.web.selenium" value='${test.args} -prod -standardsMode -out www -runStyle "Selenium:${gwt.hosts.web.selenium}"' /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 45 | |
| 46 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 47 | Whether I18NSuite should test e.g. Foo$InnerMsgs_fr.properties (if the |
| 48 | value is "dollar") or Foo_Inner_fr.properties (for "bar") |
| 49 | --> |
| 50 | <property name="gwt.i18n.test.InnerClassChar" value="dollar"/> |
| 51 | |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 52 | <!-- Platform shouldn't matter here, just picking one --> |
| 53 | <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev.jar" /> |
| 54 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 55 | <!-- |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 56 | Classpaths added for test cases |
| 57 | --> |
| 58 | <path id="test.extraclasspath"> |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 59 | <pathelement location="${gwt.build}/out/dev/bin-test" /> |
bobv@google.com | b39b79c | 2009-06-18 15:58:28 +0000 | [diff] [blame] | 60 | <pathelement location="test-super" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 61 | <pathelement location="test_i18n_${gwt.i18n.test.InnerClassChar}" /> |
nchalko@google.com | 69da43f | 2010-10-06 13:53:06 +0000 | [diff] [blame] | 62 | <pathelement location="${gwt.tools.lib}/apache/log4j/log4j-1.2.16.jar" /> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 63 | <pathelement location="${gwt.tools.lib}/cglib/cglib-2.2.jar"/> |
yaxin@google.com | e7a1360 | 2010-10-28 01:53:17 +0000 | [diff] [blame] | 64 | <pathelement location="${gwt.tools.lib}/objenesis/objenesis-1.2.jar"/> |
| 65 | <pathelement location="${gwt.tools.lib}/easymock/easymock-3.0.jar"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 66 | <pathelement location="${gwt.tools.lib}/objectweb/asm-3.1.jar"/> |
kjin@google.com | b289ff4 | 2010-08-20 14:59:07 +0000 | [diff] [blame] | 67 | <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA.jar" /> |
| 68 | <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar" /> |
amitmanjhi@google.com | d241b1d | 2010-09-03 05:25:06 +0000 | [diff] [blame] | 69 | <pathelement location="${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final.jar" /> |
nchalko@google.com | 69da43f | 2010-10-06 13:53:06 +0000 | [diff] [blame] | 70 | <pathelement location="${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar" /> |
amitmanjhi@google.com | d241b1d | 2010-09-03 05:25:06 +0000 | [diff] [blame] | 71 | <pathelement location="${gwt.tools.lib}/slf4j/slf4j-api/slf4j-api-1.6.1.jar" /> |
| 72 | <pathelement location="${gwt.tools.lib}/slf4j/slf4j-log4j12/slf4j-log4j12-1.6.1.jar" /> |
kjin@google.com | b289ff4 | 2010-08-20 14:59:07 +0000 | [diff] [blame] | 73 | <pathelement location="${gwt.tools}/redist/json/r2_20080312/json-1.5.jar" /> |
nchalko@google.com | 0045701 | 2011-01-11 22:19:47 +0000 | [diff] [blame] | 74 | <!-- TCK jars --> |
| 75 | <pathelement location="${gwt.tools.lib}/hibernate/validator/tck/jsr303-tck-1.0.3.GA-sources.jar" /> |
| 76 | <pathelement location="${gwt.tools.lib}/hibernate/validator/tck/jsr303-tck-1.0.3.GA.jar" /> |
| 77 | <pathelement location="${gwt.tools.lib}/jboss/test-audit/jboss-test-audit-api-1.0.0-sources.jar" /> |
| 78 | <pathelement location="${gwt.tools.lib}/jboss/test-audit/jboss-test-audit-api-1.0.0.jar" /> |
| 79 | <pathelement location="${gwt.tools.lib}/jboss/test-harness/jboss-test-harness-1.0.0-sources.jar" /> |
| 80 | <pathelement location="${gwt.tools.lib}/jboss/test-harness/jboss-test-harness-1.0.0.jar" /> |
| 81 | <pathelement location="${gwt.tools.lib}/jboss/test-harness/jboss-test-harness-api-1.0.0-sources.jar" /> |
| 82 | <pathelement location="${gwt.tools.lib}/jboss/test-harness/jboss-test-harness-api-1.0.0.jar" /> |
| 83 | <pathelement location="${gwt.tools.lib}/testng/testng-5.14.1-sources.jar" /> |
| 84 | <pathelement location="${gwt.tools.lib}/testng/testng-5.14.1.jar" /> |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 85 | <pathelement location="${gwt.dev.jar}" /> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 86 | </path> |
| 87 | |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 88 | <target name="compile" description="Compile all class files" |
| 89 | unless="compile.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 90 | <mkdir dir="${javac.out}" /> |
tomerigo@google.com | c2163e6 | 2010-02-01 16:08:26 +0000 | [diff] [blame] | 91 | <gwt.javac excludes="**/super/**"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 92 | <classpath> |
scottb@google.com | 4f57bc2 | 2009-01-16 22:46:42 +0000 | [diff] [blame] | 93 | <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.5.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 94 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 95 | <pathelement location="${gwt.tools.lib}/jfreechart/jfreechart-1.0.3.jar" /> |
| 96 | <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" /> |
bobv@google.com | a933c8b | 2009-03-26 02:12:25 +0000 | [diff] [blame] | 97 | <pathelement location="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 98 | <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] | 99 | <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] | 100 | <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] | 101 | <!-- The source is included so validation is available from client code --> |
| 102 | <pathelement location="${gwt.tools.lib}/javax/validation/validation-api-1.0.0.GA-sources.jar" /> |
nchalko@google.com | 69da43f | 2010-10-06 13:53:06 +0000 | [diff] [blame] | 103 | <!-- Hibernate is included until we can provide the super source as an third party jar" --> |
| 104 | <pathelement location="${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final.jar" /> |
| 105 | <pathelement location="${gwt.tools.lib}/hibernate/validator/hibernate-validator-4.1.0.Final-sources.jar" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 106 | <pathelement location="${gwt.dev.jar}" /> |
| 107 | </classpath> |
| 108 | </gwt.javac> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 109 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 110 | <!-- Build the BrowserManagerServer_Stub to allow remote browser testing --> |
| 111 | <rmic base="${javac.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 112 | classname="com.google.gwt.junit.remote.BrowserManagerServer" |
| 113 | stubversion="1.2"/> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 114 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 115 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 116 | <!-- |
jat@google.com | acf97d3 | 2009-09-21 22:06:15 +0000 | [diff] [blame] | 117 | Compile test code for dev to pick up TypeOracleTestUtils and others. |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 118 | Compiles test dependencies in dev/core |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 119 | --> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 120 | <target name="compile.dev.tests"> |
jat@google.com | c090a07 | 2009-09-21 17:39:53 +0000 | [diff] [blame] | 121 | <gwt.ant dir="../dev" target="compile.tests" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 122 | </target> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 123 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 124 | <!-- |
| 125 | Compiles the test code for this project |
| 126 | --> |
jat@google.com | e0fa5b1 | 2009-10-13 23:57:19 +0000 | [diff] [blame] | 127 | <target name="compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 128 | depends="compile.dev.tests, compile.emma.if.enabled" |
| 129 | unless="compile.tests.complete"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 130 | <mkdir dir="${javac.junit.out}" /> |
nchalko@google.com | 0045701 | 2011-01-11 22:19:47 +0000 | [diff] [blame] | 131 | <gwt.javac srcdir="test" excludes="com/google/gwt/langtest/**" destdir="${javac.junit.out}"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 132 | <classpath> |
| 133 | <pathelement location="${javac.out}" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 134 | <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" /> |
| 135 | <pathelement location="${gwt.tools.lib}/selenium/selenium-java-client-driver.jar" /> |
spoon@google.com | 11b85e1 | 2010-05-28 15:44:36 +0000 | [diff] [blame] | 136 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 137 | </classpath> |
| 138 | </gwt.javac> |
| 139 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 140 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 141 | <target name="build" depends="compile" |
| 142 | description="Build and package this project"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 143 | <mkdir dir="${gwt.build.lib}" /> |
| 144 | <gwt.jar> |
| 145 | <fileset dir="src" excludes="**/package.html" /> |
| 146 | <fileset dir="super" excludes="**/package.html" /> |
| 147 | <fileset dir="${javac.out}" /> |
scottb@google.com | 171f3f5 | 2009-08-11 19:50:31 +0000 | [diff] [blame] | 148 | <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] | 149 | <zipfileset src="${gwt.tools.lib}/w3c/sac/sac-1.3.jar" /> |
bobv@google.com | 9356917 | 2010-01-15 19:17:28 +0000 | [diff] [blame] | 150 | <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] | 151 | </gwt.jar> |
| 152 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 153 | |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 154 | <target name="checkstyle" description="Static analysis of source"> |
| 155 | <gwt.checkstyle> |
nchalko@google.com | eb3e87a | 2010-08-05 20:48:12 +0000 | [diff] [blame] | 156 | <fileset dir="src" > |
| 157 | <exclude name="javax/validation/super/javax/validation/constraints/Pattern.java"/> |
nchalko@google.com | b1077dc | 2010-08-13 13:36:43 +0000 | [diff] [blame] | 158 | <exclude name="javax/validation/super/javax/validation/spi/ConfigurationState.java"/> |
| 159 | <exclude name="javax/validation/super/javax/validation/MessageInterpolator.java"/> |
| 160 | <exclude name="javax/validation/super/javax/validation/Configuration.java"/> |
| 161 | <exclude name="javax/validation/super/javax/validation/Validation.java"/> |
nchalko@google.com | 4973524 | 2010-10-22 15:52:03 +0000 | [diff] [blame] | 162 | <exclude name="org/hibernate/validator/super/org/hibernate/validator/**/*.java"/> |
nchalko@google.com | a648abd | 2010-12-20 19:43:41 +0000 | [diff] [blame] | 163 | <exclude name="org/hibernate/validator/ValidationMessages.java"/> |
nchalko@google.com | b1077dc | 2010-08-13 13:36:43 +0000 | [diff] [blame] | 164 | </fileset> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 165 | <fileset dir="super/com/google/gwt/emul" /> |
| 166 | <fileset dir="super/com/google/gwt/junit/translatable" /> |
| 167 | </gwt.checkstyle> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 168 | <gwt.checkstyle.tests> |
| 169 | <fileset dir="test"> |
scottb@google.com | 391ffa0 | 2009-11-03 22:04:04 +0000 | [diff] [blame] | 170 | <include name="com/google/**/*.java" /> |
| 171 | <include name="test/**" /> |
scottb@google.com | 6de9756 | 2009-11-03 21:04:24 +0000 | [diff] [blame] | 172 | </fileset> |
| 173 | </gwt.checkstyle.tests> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 174 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 175 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 176 | <target name="test.remoteweb" depends="test.web.remote"> |
| 177 | <echo message="DEPRECATED: test.remoteweb has been renamed test.web.remote"/> |
| 178 | </target> |
| 179 | |
| 180 | <target name="test.web.remote" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 181 | description="Run web test with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 182 | if="gwt.hosts.web.remote" |
| 183 | unless="test.web.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 184 | <echo message="Performing web remote testing at ${gwt.hosts.web.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 185 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 186 | <fileset id="test.web.remote.tests" dir="${javac.junit.out}" |
| 187 | includes="${gwt.junit.testcase.web.includes}" |
| 188 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 189 | <gwt.junit test.name="test.web.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 190 | test.args="${test.web.remote.args}" |
| 191 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 192 | test.out="${junit.out}/web-remote" |
| 193 | test.cases="test.web.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 194 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 195 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 196 | </extraclasspaths> |
| 197 | </gwt.junit> |
| 198 | </target> |
zundel@google.com | 29666c8 | 2008-06-04 16:07:53 +0000 | [diff] [blame] | 199 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 200 | <target name="test.dev.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 201 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 202 | description="Run dev-mode tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 203 | if="gwt.hosts.dev.remote" |
| 204 | unless="test.dev.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 205 | <echo message="Performing dev-mode remote testing at ${gwt.remote.browsers}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 206 | <property name="test.dev.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 207 | <fileset id="test.dev.remote.tests" dir="${javac.junit.out}" |
| 208 | includes="${gwt.junit.testcase.dev.includes}" |
| 209 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 210 | <gwt.junit test.name="test.dev.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 211 | test.args="${test.dev.remote.args}" |
| 212 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 213 | 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] | 214 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 215 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 216 | </extraclasspaths> |
| 217 | </gwt.junit> |
| 218 | </target> |
gwt.team.mmendez | 99f280b | 2006-12-08 23:11:29 +0000 | [diff] [blame] | 219 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 220 | <target name="test.emma.remote" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 221 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 222 | description="Run emma tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 223 | if="gwt.hosts.dev.remote" |
| 224 | unless="test.emma.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 225 | <echo message="Performing emma remote testing at ${gwt.hosts.dev.remote}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 226 | <property name="test.emma.remote.args" value="${test.args.dev.remote}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 227 | <fileset id="test.emma.remote.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 228 | includes="${gwt.junit.testcase.dev.includes}" |
| 229 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 230 | <gwt.junit test.name="test.emma.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 231 | test.args="${test.emma.remote.args}" |
| 232 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 233 | test.out="${junit.out}/emma-remote" |
| 234 | test.cases="test.emma.remote.tests" > |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 235 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 236 | <path refid="test.extraclasspath" /> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 237 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 238 | </extraclasspaths> |
| 239 | </gwt.junit> |
| 240 | </target> |
| 241 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 242 | <target name="test.emma.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 243 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 244 | description="Run emma tests with Selenium-RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 245 | if="gwt.hosts.dev.selenium" |
| 246 | unless="test.emma.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 247 | <echo message="Performing emma selenium testing at ${gwt.hosts.dev.selenium}" /> |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 248 | <property name="test.emma.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 249 | <fileset id="test.emma.selenium.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 250 | includes="${gwt.junit.testcase.dev.includes}" |
| 251 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 252 | <gwt.junit test.name="test.emma.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 253 | test.args='${test.emma.selenium.args}' |
| 254 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 255 | test.out="${junit.out}/emma-selenium" |
| 256 | test.cases="test.emma.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 257 | <extraclasspaths> |
| 258 | <path refid="test.extraclasspath" /> |
| 259 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 260 | </extraclasspaths> |
| 261 | </gwt.junit> |
| 262 | </target> |
| 263 | |
| 264 | <target name="test.draft.remote" |
| 265 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 266 | description="Run draft compiled tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 267 | if="gwt.hosts.web.remote" |
| 268 | unless="test.draft.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 269 | <echo message="Performing draft remote testing at ${gwt.hosts.web.remote}" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 270 | <property name="test.draft.remote.args" value="${test.args.web.remote} -draftCompile" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 271 | <fileset id="test.draft.remote.tests" dir="${javac.junit.out}" |
| 272 | includes="${gwt.junit.testcase.web.includes}" |
| 273 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 274 | <gwt.junit test.name="test.draft.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 275 | test.args="${test.draft.remote.args}" |
| 276 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 277 | test.out="${junit.out}/draft-remote" |
| 278 | test.cases="test.draft.remote.tests" > |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 279 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 280 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 281 | </extraclasspaths> |
| 282 | </gwt.junit> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 283 | </target> |
| 284 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 285 | <target name="test.nometa.remote" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 286 | description="Run -XdisableClassMetadata tests with remote browsers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 287 | if="gwt.hosts.web.remote" |
| 288 | unless="test.nometa.remote.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 289 | <echo message="Performing nometa remote testing at ${gwt.hosts.web.remote}" /> |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 290 | <property name="test.nometa.remote.args" value="${test.args.web.remote} -XdisableClassMetadata" /> |
jat@google.com | 3d3977f | 2009-10-16 04:52:05 +0000 | [diff] [blame] | 291 | <fileset id="test.nometa.remote.tests" dir="${javac.junit.out}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 292 | includes="${gwt.junit.testcase.web.includes}" |
| 293 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 294 | <gwt.junit test.name="test.nometa.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 295 | test.args="${test.nometa.remote.args}" |
| 296 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 4c4d76d | 2009-11-01 16:30:34 +0000 | [diff] [blame] | 297 | test.out="${junit.out}/nometa-remote" |
| 298 | test.cases="test.nometa.remote.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 299 | <extraclasspaths> |
| 300 | <path refid="test.extraclasspath" /> |
| 301 | </extraclasspaths> |
| 302 | </gwt.junit> |
| 303 | </target> |
| 304 | |
| 305 | <target name="test.selenium" depends="test.web.selenium"> |
| 306 | <echo message="DEPRECATED: test.selenium has been renamed test.web.selenium"/> |
| 307 | </target> |
| 308 | |
| 309 | <target name="test.web.selenium" |
| 310 | depends="compile, compile.tests" |
| 311 | description="Run web tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 312 | if="gwt.hosts.web.selenium" |
| 313 | unless="test.web.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 314 | <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] | 315 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 316 | <fileset id="test.web.selenium.tests" dir="${javac.junit.out}" |
| 317 | includes="${gwt.junit.testcase.web.includes}" |
| 318 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 319 | <gwt.junit test.name="test.web.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 320 | test.args='${test.web.selenium.args}' |
| 321 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 322 | test.out="${junit.out}/web-selenium" |
| 323 | test.cases="test.web.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 324 | <extraclasspaths> |
| 325 | <path refid="test.extraclasspath" /> |
| 326 | </extraclasspaths> |
| 327 | </gwt.junit> |
| 328 | </target> |
| 329 | |
| 330 | <target name="test.dev.selenium" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 331 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 332 | description="Run dev-mode tests using Selenium RC servers" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 333 | if="gwt.hosts.dev.selenium" |
| 334 | unless="test.dev.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 335 | <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] | 336 | <property name="test.dev.selenium.args" value="${test.args.dev.selenium}" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 337 | <fileset id="test.dev.selenium.tests" dir="${javac.junit.out}" |
| 338 | includes="${gwt.junit.testcase.dev.includes}" |
| 339 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 340 | <gwt.junit test.name="test.dev.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 341 | test.args='${test.dev.selenium.args}' |
| 342 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 343 | test.out="${junit.out}/dev-selenium" |
| 344 | test.cases="test.dev.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 345 | <extraclasspaths> |
| 346 | <path refid="test.extraclasspath" /> |
| 347 | </extraclasspaths> |
| 348 | </gwt.junit> |
| 349 | </target> |
| 350 | |
| 351 | <target name="test.nometa.selenium" |
| 352 | description="Run nometa tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 353 | if="gwt.hosts.web.selenium" |
| 354 | unless="test.nometa.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 355 | <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] | 356 | <property name="test.nometa.selenium.args" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 357 | value="${test.args.web.selenium} -XdisableClassMetadata" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 358 | <fileset id="test.nometa.selenium.tests" dir="${javac.junit.out}" |
| 359 | includes="${gwt.junit.testcase.web.includes}" |
| 360 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 361 | <gwt.junit test.name="test.nometa.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 362 | test.args='${test.nometa.selenium.args}' |
| 363 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 364 | test.out="${junit.out}/nometa-selenium" |
| 365 | test.cases="test.nometa.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 366 | <extraclasspaths> |
| 367 | <path refid="test.extraclasspath" /> |
| 368 | </extraclasspaths> |
| 369 | </gwt.junit> |
| 370 | </target> |
| 371 | |
| 372 | <target name="test.draft.selenium" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 373 | description="Run draft compiled tests using Selenium RC" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 374 | if="gwt.hosts.web.selenium" |
| 375 | unless="test.draft.selenium.disable"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 376 | <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] | 377 | <property name="test.draft.selenium.args" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 378 | value="${test.args.web.selenium} -draftCompile" /> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 379 | <fileset id="test.draft.selenium.tests" dir="${javac.junit.out}" |
| 380 | includes="${gwt.junit.testcase.web.includes}" |
| 381 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 382 | <gwt.junit test.name="test.draft.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 383 | test.args='${test.draft.selenium.args}' |
| 384 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 385 | test.out="${junit.out}/draft-selenium" |
| 386 | test.cases="test.draft.selenium.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 387 | <extraclasspaths> |
| 388 | <path refid="test.extraclasspath" /> |
| 389 | </extraclasspaths> |
| 390 | </gwt.junit> |
| 391 | </target> |
| 392 | |
| 393 | <target name="test.emma.htmlunit" |
| 394 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 395 | description="Run emma tests with HtmlUnit" |
| 396 | unless="test.emma.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 397 | <fileset id="test.emma.htmlunit.tests" dir="${javac.junit.out}" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 398 | includes="${gwt.junit.testcase.dev.includes}" |
| 399 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 400 | <gwt.junit test.name="test.emma.htmlunit" |
| 401 | test.args="${test.args} -standardsMode " |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 402 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 403 | test.out="${junit.out}/emma-htmlunit" |
| 404 | test.cases="test.emma.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 405 | <extraclasspaths> |
| 406 | <path refid="test.extraclasspath" /> |
| 407 | <pathelement location="${gwt.tools.redist}/emma/emma.jar" /> |
| 408 | </extraclasspaths> |
| 409 | </gwt.junit> |
| 410 | </target> |
| 411 | |
| 412 | <target name="test.dev.htmlunit" |
jlabanca@google.com | 66eac84 | 2009-10-14 19:48:54 +0000 | [diff] [blame] | 413 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 414 | description="Run dev-mode tests with HtmlUnit." |
| 415 | unless="test.dev.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 416 | <fileset id="test.dev.htmlunit.tests" dir="${javac.junit.out}" |
| 417 | includes="${gwt.junit.testcase.dev.includes}" |
| 418 | excludes="${gwt.junit.testcase.dev.excludes}" /> |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 419 | <gwt.junit test.name="test.dev.htmlunit" |
| 420 | test.args="${test.args} -standardsMode " |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 421 | test.jvmargs="${test.jvmargs}" |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 422 | test.out="${junit.out}/dev-htmlunit" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 423 | test.cases="test.dev.htmlunit.tests" > |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 424 | <extraclasspaths> |
| 425 | <path refid="test.extraclasspath" /> |
| 426 | </extraclasspaths> |
| 427 | </gwt.junit> |
| 428 | </target> |
| 429 | |
| 430 | <target name="test.hosted.emma" depends="test.emma"> |
| 431 | <echo message="DEPRECATED: test.hosted.emma has been renamed test.emma"/> |
| 432 | </target> |
| 433 | |
| 434 | <target name="test.hosted" depends="test.dev"> |
| 435 | <echo message="DEPRECATED: test.hosted has been renamed test.dev"/> |
| 436 | </target> |
| 437 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 438 | <target name="test.web.htmlunit" |
| 439 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 440 | description="Run web-mode tests with HtmlUnit." |
| 441 | unless="test.web.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 442 | <fileset id="test.web.htmlunit.tests" dir="${javac.junit.out}" |
| 443 | includes="${gwt.junit.testcase.web.includes}" |
| 444 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 445 | <gwt.junit test.name="test.web.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 446 | test.args="${test.args} -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 447 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 448 | test.out="${junit.out}/web-htmlunit" |
| 449 | test.cases="test.web.htmlunit.tests"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 450 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 451 | <path refid="test.extraclasspath" /> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 452 | </extraclasspaths> |
| 453 | </gwt.junit> |
| 454 | </target> |
gwt.team.scottb | 5b5e634 | 2007-02-22 21:34:23 +0000 | [diff] [blame] | 455 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 456 | <target name="test.nometa.htmlunit" |
| 457 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 458 | description="Run -XdisableClassMetadata tests with HtmlUnit." |
| 459 | unless="test.nometa.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 460 | <fileset id="test.nometa.htmlunit.tests" dir="${javac.junit.out}" |
| 461 | includes="${gwt.junit.testcase.web.includes}" |
| 462 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 463 | <gwt.junit test.name="test.nometa.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 464 | test.args="${test.args} -XdisableClassMetadata -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 465 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 466 | test.out="${junit.out}/nometa-htmlunit" |
| 467 | test.cases="test.nometa.htmlunit.tests" > |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 468 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 469 | <path refid="test.extraclasspath" /> |
bobv@google.com | c0e308f | 2009-02-19 01:08:17 +0000 | [diff] [blame] | 470 | </extraclasspaths> |
| 471 | </gwt.junit> |
| 472 | </target> |
| 473 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 474 | <target name="test.draft.htmlunit" |
| 475 | depends="compile, compile.tests" |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 476 | description="Run draft compiled HtmlUnit tests (no batching on purpose)" |
| 477 | unless="test.draft.htmlunit.disable"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 478 | <fileset id="test.draft.htmlunit.tests" dir="${javac.junit.out}" |
| 479 | includes="${gwt.junit.testcase.web.includes}" |
| 480 | excludes="${gwt.junit.testcase.web.excludes}" /> |
jlabanca@google.com | 2707b14 | 2009-11-04 17:47:36 +0000 | [diff] [blame] | 481 | <gwt.junit test.name="test.draft.htmlunit" |
jlabanca@google.com | ffb28bb | 2010-01-25 16:52:17 +0000 | [diff] [blame] | 482 | test.args="${test.args} -draftCompile -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 483 | test.jvmargs="${test.jvmargs}" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 484 | test.out="${junit.out}/draft-htmlunit" |
| 485 | test.cases="test.draft.htmlunit.tests" > |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 486 | <extraclasspaths> |
fabbott@google.com | 2530547 | 2009-06-10 21:39:00 +0000 | [diff] [blame] | 487 | <path refid="test.extraclasspath" /> |
bobv@google.com | 62773b1 | 2009-01-29 22:31:44 +0000 | [diff] [blame] | 488 | </extraclasspaths> |
| 489 | </gwt.junit> |
| 490 | </target> |
| 491 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 492 | <target name="test" |
| 493 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 494 | description="Run all tests for this project."> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 495 | <!-- Prevent compilation for every target. --> |
| 496 | <property name="compile.complete" value="true"/> |
| 497 | <property name="compile.tests.complete" value="true"/> |
| 498 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 499 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 500 | 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] | 501 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 502 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 503 | threadCount="${gwt.threadCount}"> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 504 | <!-- |
| 505 | The remote targets must be run sequentially or BrowserManager will queue |
| 506 | requests, which will cause some tests to timeout while waiting. |
| 507 | --> |
| 508 | <sequential> |
| 509 | <antcall target="test.dev.remote"/> |
| 510 | <antcall target="test.emma.remote"/> |
| 511 | <antcall target="test.web.remote"/> |
| 512 | <antcall target="test.draft.remote"/> |
| 513 | <antcall target="test.nometa.remote"/> |
| 514 | </sequential> |
| 515 | <antcall target="test.dev.selenium"/> |
| 516 | <antcall target="test.emma.selenium"/> |
| 517 | <antcall target="test.web.selenium"/> |
| 518 | <antcall target="test.draft.selenium"/> |
| 519 | <antcall target="test.nometa.selenium"/> |
amitmanjhi@google.com | a7c82b0 | 2010-03-25 14:19:13 +0000 | [diff] [blame] | 520 | <antcall target="test.dev.htmlunit"/> |
| 521 | <antcall target="test.emma.htmlunit"/> |
| 522 | <antcall target="test.web.htmlunit"/> |
| 523 | <antcall target="test.draft.htmlunit"/> |
| 524 | <antcall target="test.nometa.htmlunit"/> |
jlabanca@google.com | f780b7a | 2009-10-16 16:36:03 +0000 | [diff] [blame] | 525 | </parallel> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 526 | </limit> |
| 527 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 528 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 529 | <target name="test.htmlunit" |
| 530 | depends="compile, compile.tests" |
| 531 | description="Run all HtmlUnit tests"> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 532 | <!-- Prevent compilation for every target. --> |
| 533 | <property name="compile.complete" value="true"/> |
| 534 | <property name="compile.tests.complete" value="true"/> |
nchalko@google.com | 90f14a0 | 2010-07-28 19:08:32 +0000 | [diff] [blame] | 535 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 536 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 537 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 538 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 539 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 540 | threadCount="${gwt.threadCount}"> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 541 | <antcall target="test.dev.htmlunit"/> |
| 542 | <antcall target="test.emma.htmlunit"/> |
| 543 | <antcall target="test.web.htmlunit"/> |
| 544 | <antcall target="test.draft.htmlunit"/> |
| 545 | <antcall target="test.nometa.htmlunit"/> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 546 | </parallel> |
| 547 | </limit> |
| 548 | </target> |
| 549 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 550 | <target name="test.dev" |
| 551 | depends="compile, compile.tests" |
| 552 | description="Run dev-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 553 | <!-- Prevent compilation for every target. --> |
| 554 | <property name="compile.complete" value="true"/> |
| 555 | <property name="compile.tests.complete" value="true"/> |
| 556 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 557 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 558 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 559 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 560 | <antcall target="test.dev.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 561 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 562 | <antcall target="test.dev.remote"/> |
| 563 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 564 | <antcall target="test.dev.selenium"/> |
| 565 | </parallel> |
| 566 | </limit> |
| 567 | </target> |
| 568 | |
| 569 | <target name="test.web" |
| 570 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 571 | description="Run web-mode tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 572 | <!-- Prevent compilation for every target. --> |
| 573 | <property name="compile.complete" value="true"/> |
| 574 | <property name="compile.tests.complete" value="true"/> |
| 575 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 576 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 577 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 578 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 579 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 580 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 581 | <antcall target="test.web.remote"/> |
| 582 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 583 | <antcall target="test.web.selenium"/> |
| 584 | </parallel> |
| 585 | </limit> |
| 586 | </target> |
| 587 | |
| 588 | <target name="test.emma" |
| 589 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 590 | description="Run emma tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 591 | <!-- Prevent compilation for every target. --> |
| 592 | <property name="compile.complete" value="true"/> |
| 593 | <property name="compile.tests.complete" value="true"/> |
| 594 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 595 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 596 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 597 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 598 | <antcall target="test.emma.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 599 | <!-- no-op unless gwt.hosts.dev.remote is defined --> |
| 600 | <antcall target="test.emma.remote"/> |
| 601 | <!-- no-op unless gwt.hosts.dev.selenium is defined --> |
| 602 | <antcall target="test.emma.selenium"/> |
| 603 | </parallel> |
| 604 | </limit> |
| 605 | </target> |
| 606 | |
| 607 | <target name="test.draft" |
| 608 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 609 | description="Run draft compiled tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 610 | <!-- Prevent compilation for every target. --> |
| 611 | <property name="compile.complete" value="true"/> |
| 612 | <property name="compile.tests.complete" value="true"/> |
| 613 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 614 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 615 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 616 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 617 | <antcall target="test.draft.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 618 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 619 | <antcall target="test.draft.remote"/> |
| 620 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 621 | <antcall target="test.draft.selenium"/> |
| 622 | </parallel> |
| 623 | </limit> |
| 624 | </target> |
| 625 | |
| 626 | <target name="test.nometa" |
| 627 | depends="compile, compile.tests" |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 628 | description="Run -XdisableClassMetadata tests for this project."> |
jlabanca@google.com | 4af1306 | 2009-10-23 23:28:56 +0000 | [diff] [blame] | 629 | <!-- Prevent compilation for every target. --> |
| 630 | <property name="compile.complete" value="true"/> |
| 631 | <property name="compile.tests.complete" value="true"/> |
| 632 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 633 | <limit failonerror="true" hours="${test.timeout}"> |
jlabanca@google.com | 481db2d | 2009-10-19 17:28:15 +0000 | [diff] [blame] | 634 | <parallel threadsPerProcessor="${gwt.threadsPerProcessor}" |
| 635 | threadCount="${gwt.threadCount}"> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 636 | <antcall target="test.web.htmlunit"/> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 637 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 638 | <antcall target="test.nometa.remote"/> |
| 639 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 640 | <antcall target="test.nometa.selenium"/> |
| 641 | </parallel> |
| 642 | </limit> |
| 643 | </target> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 644 | |
| 645 | |
| 646 | <!-- Validation TCK test and reports --> |
| 647 | |
| 648 | <!-- TODO(nchalko) move the tck target to user/build.xml and then delete |
| 649 | all of samples/validaitontck --> |
| 650 | <target name="tck" |
| 651 | depends="tck.run,tck.report" |
| 652 | description="Run all tests for this project."> |
| 653 | <fail |
| 654 | message="One or more junit tests failed for target: @{test.name} @{test.args}" |
| 655 | if="junit.failure" status="2" /> |
| 656 | </target> |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 657 | |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 658 | <target name="tck.run" |
| 659 | depends="compile, compile.tests" |
| 660 | description="Run all tests for this project."> |
| 661 | <!-- Prevent compilation for every target. --> |
| 662 | <property name="compile.complete" value="true"/> |
| 663 | <property name="compile.tests.complete" value="true"/> |
| 664 | |
| 665 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 666 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 667 | <limit failonerror="true" hours="${test.timeout}"> |
| 668 | |
| 669 | <antcall target="tck.dev.htmlunit"/> |
| 670 | </limit> |
| 671 | |
| 672 | <fail |
| 673 | message="One or more tck tests failed for target: @{test.name} @{test.args}" |
| 674 | if="junit.failure" status="2" /> |
| 675 | </target> |
| 676 | |
| 677 | <macrodef name="countMarkedTests"> |
| 678 | <attribute name="annotation" default="NOT SET" /> |
| 679 | <attribute name="outputproperty" default="jsr303.marked.@{annotation}" /> |
| 680 | <sequential> |
| 681 | |
| 682 | </sequential> |
| 683 | </macrodef> |
| 684 | |
| 685 | <target name="tck.report"> |
| 686 | <mkdir dir="${junit.out}/tck-report" /> |
| 687 | <mkdir dir="${junit.out}/tck-report/text" /> |
| 688 | |
| 689 | <scan> |
| 690 | <fileset dir="test/org/hibernate/jsr303/tck/tests" id="id"/> |
| 691 | <filterchain> |
| 692 | <countfilter match="@Failing" property="jsr303.marked.Failing" init="0"/> |
| 693 | <countfilter match="@NonTckTest" property="jsr303.marked.NonTckTest" init="0"/> |
| 694 | <countfilter match="@NotSupported" property="jsr303.marked.NotSupported" init="0"/> |
nchalko@google.com | 4c81c39 | 2011-01-17 23:51:59 +0000 | [diff] [blame] | 695 | <countfilter match="@TestNotCompatible" property="jsr303.marked.NotSupported" init="0"/> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 696 | </filterchain> |
| 697 | </scan> |
| 698 | |
| 699 | <!-- force to zero if not set above --> |
| 700 | <property name="jsr303.marked.Failing" value="0"/> |
| 701 | <property name="jsr303.marked.NonTckTest" value="0"/> |
nchalko@google.com | 4c81c39 | 2011-01-17 23:51:59 +0000 | [diff] [blame] | 702 | <property name="jsr303.marked.TestNotCompatible" value="0"/> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 703 | |
| 704 | <echo message="Marked Failing = ${jsr303.marked.Failing}" /> |
| 705 | <echo message="Marked NonTckTest = ${jsr303.marked.NonTckTest}" /> |
| 706 | <echo message="Marked NotSupported = ${jsr303.marked.NotSupported}" /> |
nchalko@google.com | 4c81c39 | 2011-01-17 23:51:59 +0000 | [diff] [blame] | 707 | <echo message="Marked TestNotCompatible = ${jsr303.marked.TestNotCompatible}" /> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 708 | |
| 709 | <junitreport todir="${junit.out}/tck-report"> |
| 710 | <fileset dir="${junit.out}/tck-dev-htmlunit"> |
| 711 | <include name="reports/TEST-*.xml" /> |
| 712 | </fileset> |
| 713 | <report format="noframes" todir="${junit.out}/tck-report" styledir="style/html"> |
| 714 | <param name="markedFailing" expression="${jsr303.marked.Failing}" /> |
| 715 | <param name="markedNonTckTest" expression="${jsr303.marked.NonTckTest}" /> |
| 716 | <param name="markedNotSupported" expression="${jsr303.marked.NotSupported}" /> |
nchalko@google.com | 4c81c39 | 2011-01-17 23:51:59 +0000 | [diff] [blame] | 717 | <param name="markedTestNotCompatible" expression="${jsr303.marked.TestNotCompatible}" /> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 718 | </report> |
| 719 | <report format="noframes" todir="${junit.out}/tck-report/text" styledir="style/text"> |
| 720 | <param name="markedFailing" expression="${jsr303.marked.Failing}" /> |
| 721 | <param name="markedNonTckTest" expression="${jsr303.marked.NonTckTest}" /> |
| 722 | <param name="markedNotSupported" expression="${jsr303.marked.NotSupported}" /> |
nchalko@google.com | 4c81c39 | 2011-01-17 23:51:59 +0000 | [diff] [blame] | 723 | <param name="markedTestNotCompatible" expression="${jsr303.marked.TestNotCompatible}" /> |
nchalko@google.com | ad61f1d | 2011-01-17 17:08:08 +0000 | [diff] [blame] | 724 | </report> |
| 725 | </junitreport> |
| 726 | |
| 727 | <concat taskname="JSR 303 TCK Result"> |
| 728 | <filelist> |
| 729 | <file name="${junit.out}/tck-report/text/junit-noframes.html" /> |
| 730 | </filelist> |
| 731 | </concat> |
| 732 | |
| 733 | </target> |
| 734 | |
| 735 | <target name="tck.dev.htmlunit" |
| 736 | depends="compile, compile.tests" |
| 737 | description="Run dev-mode tests with HtmlUnit." |
| 738 | unless="test.dev.htmlunit.disable"> |
| 739 | <fileset id="tck.dev.htmlunit.tests" dir="${javac.junit.out}" |
| 740 | includes="${gwt.tck.testcase.dev.includes}" |
| 741 | excludes="${gwt.tck.testcase.dev.excludes}" /> |
| 742 | <gwt.junit test.name="test.dev.htmlunit" |
| 743 | test.args="${test.args} -standardsMode " |
| 744 | test.jvmargs="-ea -Dcom.google.gwt.sample.validationtck.util.Failing.include=true -Dcom.google.gwt.sample.validationtck.util.NonTckTest.exclude=true" |
| 745 | test.out="${junit.out}/tck-dev-htmlunit" |
| 746 | test.cases="tck.dev.htmlunit.tests" |
| 747 | haltonfailure="false" |
| 748 | > |
| 749 | <extraclasspaths> |
| 750 | <path refid="test.extraclasspath" /> |
| 751 | </extraclasspaths> |
| 752 | </gwt.junit> |
| 753 | </target> |
| 754 | |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 755 | <target name="benchmark" |
| 756 | description="Run all benchmarks for this project."> |
| 757 | |
| 758 | <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" |
| 759 | message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." /> |
| 760 | <limit failonerror="true" hours="${benchmark.timeout}"> |
| 761 | <!-- no-op unless gwt.hosts.web.remote is defined --> |
| 762 | <antcall target="benchmark.web.remote"/> |
| 763 | <!-- no-op unless gwt.hosts.web.selenium is defined --> |
| 764 | <antcall target="benchmark.web.selenium"/> |
| 765 | <antcall target="benchmark.web.htmlunit"/> |
| 766 | </limit> |
| 767 | </target> |
| 768 | |
| 769 | <target name="benchmark.web.htmlunit" |
| 770 | depends="compile, compile.tests" |
| 771 | description="Run web-mode benchmarks with HtmlUnit." |
| 772 | unless="benchmark.web.htmlunit.disable"> |
| 773 | <fileset id="benchmark.web.htmlunit.tests" dir="${javac.junit.out}" |
| 774 | includes="${gwt.benchmark.testcase.web.includes}" |
| 775 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 776 | <gwt.junit test.name="benchmark.web.htmlunit" |
| 777 | test.args="${test.args} -testMethodTimeout ${benchmark.timeout} -out www -prod -standardsMode" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 778 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 779 | test.out="${junit.out}/web-htmlunit-benchmark" |
| 780 | test.cases="benchmark.web.htmlunit.tests" > |
| 781 | <extraclasspaths> |
| 782 | <path refid="test.extraclasspath" /> |
| 783 | </extraclasspaths> |
| 784 | </gwt.junit> |
| 785 | </target> |
| 786 | |
| 787 | <target name="benchmark.web.selenium" |
| 788 | depends="compile, compile.tests" |
| 789 | description="Run web benchmark using Selenium RC" |
| 790 | if="gwt.hosts.web.selenium" |
| 791 | unless="benchmark.web.selenium.disable"> |
| 792 | <echo message="Performing web benchmarking using Selenium RC at ${gwt.hosts.web.selenium}" /> |
| 793 | <property name="test.web.selenium.args" value="${test.args.web.selenium}" /> |
| 794 | <fileset id="benchmark.web.selenium.tests" dir="${javac.junit.out}" |
| 795 | includes="${gwt.benchmark.testcase.web.includes}" |
| 796 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 797 | <gwt.junit test.name="benchmark.web.selenium" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 798 | test.args='${test.web.selenium.args} -testMethodTimeout ${benchmark.timeout}' |
| 799 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 800 | test.out="${junit.out}/web-selenium-benchmark" |
| 801 | test.cases="benchmark.web.selenium.tests" > |
| 802 | <extraclasspaths> |
| 803 | <path refid="test.extraclasspath" /> |
| 804 | </extraclasspaths> |
| 805 | </gwt.junit> |
| 806 | </target> |
| 807 | |
| 808 | <target name="benchmark.web.remote" |
| 809 | depends="compile, compile.tests" |
| 810 | description="Run web benchmarks with remote browsers" |
| 811 | if="gwt.hosts.web.remote" |
| 812 | unless="benchmark.web.remote.disable"> |
| 813 | <echo message="Performing web remote benchmarking at ${gwt.hosts.web.remote}" /> |
| 814 | <property name="test.web.remote.args" value="${test.args.web.remote}" /> |
| 815 | <fileset id="benchmark.web.remote.tests" dir="${javac.junit.out}" |
| 816 | includes="${gwt.benchmark.testcase.web.includes}" |
| 817 | excludes="${gwt.benchmark.testcase.web.excludes}" /> |
| 818 | <gwt.junit test.name="benchmark.web.remote" |
kjin@google.com | bdabce3 | 2010-09-08 22:25:08 +0000 | [diff] [blame] | 819 | test.args="${test.web.remote.args} -testMethodTimeout ${benchmark.timeout}" |
| 820 | test.jvmargs="${test.jvmargs}" |
gwt.mirrorbot@gmail.com | d54a4bd | 2010-06-07 19:20:31 +0000 | [diff] [blame] | 821 | test.out="${junit.out}/web-remote-benchmark" |
| 822 | test.cases="benchmark.web.remote.tests" > |
| 823 | <extraclasspaths> |
| 824 | <path refid="test.extraclasspath" /> |
| 825 | </extraclasspaths> |
| 826 | </gwt.junit> |
| 827 | </target> |
| 828 | |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 829 | <!-- |
| 830 | Merges coverage data for the entire project |
| 831 | --> |
| 832 | <target name="emma.merge"> |
jlabanca@google.com | 8124456 | 2009-08-05 19:55:36 +0000 | [diff] [blame] | 833 | <delete dir="${emma.merged.out}" /> |
| 834 | <mkdir dir="${emma.merged.out}" /> |
| 835 | <emma> |
| 836 | <merge outfile="${emma.merged.out}/merged.emma" > |
| 837 | <fileset dir="${junit.out}" > |
| 838 | <include name="**/*.emma" /> |
| 839 | <exclude name="${emma.merged.out}/merged.emma" /> |
| 840 | </fileset> |
| 841 | </merge> |
| 842 | </emma> |
| 843 | <emma> |
| 844 | <report sourcepath="${project.classpath.src}"> |
| 845 | <fileset file="${javac.emma.out}/metadata.emma" /> |
| 846 | <fileset file="${emma.merged.out}/merged.emma" /> |
| 847 | <txt outfile="${emma.merged.out}/coverage.txt" /> |
| 848 | <html outfile="${emma.merged.out}/coverage.html" /> |
| 849 | <xml outfile="${emma.merged.out}/coverage.xml" /> |
| 850 | </report> |
| 851 | </emma> |
| 852 | </target> |
| 853 | |
jat@google.com | bf79ddb | 2009-10-14 07:44:30 +0000 | [diff] [blame] | 854 | <target name="clean" |
| 855 | description="Cleans this project's intermediate and output files"> |
fabbott@google.com | 0e2dc628 | 2008-08-22 16:09:01 +0000 | [diff] [blame] | 856 | <delete dir="${project.build}" /> |
| 857 | <delete file="${project.lib}" /> |
| 858 | </target> |
jat@google.com | 57b6940 | 2009-10-14 18:08:29 +0000 | [diff] [blame] | 859 | |
| 860 | <target name="presubmit" depends="test, checkstyle" |
| 861 | description="runs the gwt api checker, user checkstyle, and user tests"> |
spoon@google.com | d0b00f8 | 2009-03-27 14:58:53 +0000 | [diff] [blame] | 862 | <gwt.ant dir=".." target="apicheck-nobuild"/> |
jgw@google.com | a3509e2 | 2009-02-06 21:06:24 +0000 | [diff] [blame] | 863 | </target> |
gwt.team.scottb | 14c5b9d | 2006-12-10 06:06:08 +0000 | [diff] [blame] | 864 | </project> |