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