blob: 5a93d645ba1563e70a207a0573397803747ef557 [file] [log] [blame]
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +00001<project name="user" default="build" basedir=".">
2 <property name="gwt.root" location=".." />
3 <property name="project.tail" value="user" />
4 <import file="${gwt.root}/common.ant.xml" />
5
gwt.team.mmendez99f280b2006-12-08 23:11:29 +00006 <!--
7 Default hosted mode test cases
8 -->
9 <fileset id="default.hosted.tests" dir="${javac.junit.out}">
10 <!--
11 Causes a security dialog to popup and subsequently blocks testing
gwt.team.scottbd0f6c562006-12-11 17:28:15 +000012 -->
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000013 <exclude name="com/google/gwt/user/client/ui/FormPanelTest.class" />
14
15 <!--
16 Need to confirm with JGW if this should still be disabled
17 -->
18 <exclude name="com/google/gwt/user/client/ui/HistoryTest.class" />
19
20 <include name="**/*Test.class" />
21 </fileset>
22
23 <!--
24 Default web mode test cases
25 -->
26 <fileset id="default.web.tests" dir="${javac.junit.out}">
27 <!--
gwt.team.mmendezac0bccb2006-12-11 18:40:21 +000028 Causes a security dialog to popup and subsequently blocks testing
29 -->
30 <exclude name="com/google/gwt/user/client/ui/FormPanelTest.class" />
gwt.team.scottb9fba66c2006-12-11 18:50:42 +000031
gwt.team.mmendezac0bccb2006-12-11 18:40:21 +000032 <!--
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000033 Need to confirm with JGW if this should still be disabled
34 -->
35 <exclude name="com/google/gwt/user/client/ui/HistoryTest.class" />
36
37 <!--
38 Safari Failures:
39 Testcase: testFunctionCaching took 0.112 sec
40 Caused an ERROR
41 JavaScript RangeError exception: Maximum call stack size exceeded.
42 com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded.
43
44 Linux Web Mode Failures:
45 Testcase: testFunctionCaching took 1.004 sec
46 Caused an ERROR
47 JavaScript InternalError exception: too much recursion
48 com.google.gwt.core.client.JavaScriptException: JavaScript InternalError exception: too much recursion
49 -->
50 <exclude name="com/google/gwt/dev/jjs/test/HostedTest.class" />
51
52 <!--
53 Safari Failures:
54 Testcase: testRecursion took 1.003 sec
55 Caused an ERROR
56 JavaScript RangeError exception: Maximum call stack size exceeded.
57 com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded.
58 -->
59 <exclude name="com/google/gwt/dev/jjs/test/MethodCallTest.class" />
60
61 <!--
62 Safari Failures:
63 Testcase: testJso took 1.005 sec
64 Caused an ERROR
65 JavaScript RangeError exception: Maximum call stack size exceeded.
66 com.google.gwt.core.client.JavaScriptException: JavaScript RangeError exception: Maximum call stack size exceeded.
67 -->
68 <exclude name="com/google/gwt/dev/jjs/test/MiscellaneousTest.class" />
69
70 <include name="**/*Test.class" />
71 </fileset>
72
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000073 <!-- Platform shouldn't matter here, just picking one -->
74 <property.ensure name="gwt.dev.jar" location="${gwt.build.lib}/gwt-dev-linux.jar" />
75
gwt.team.scottbc4700b82006-12-12 11:23:41 +000076 <target name="compile" description="Compile all class files">
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000077 <mkdir dir="${javac.out}" />
78 <gwt.javac>
79 <classpath>
gwt.team.scottbc4700b82006-12-12 11:23:41 +000080 <pathelement location="${gwt.tools.lib}/tomcat/servlet-api-2.4.jar" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000081 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
82 <pathelement location="${gwt.dev.jar}" />
83 </classpath>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000084 </gwt.javac>
85
86 <!-- Build the BrowserManagerServer_Stub to allow remote browser testing -->
87 <rmic base="${javac.out}" classname="com.google.gwt.junit.remote.BrowserManagerServer">
gwt.team.scottb9fba66c2006-12-11 18:50:42 +000088 <compilerarg value="-v1.2" />
89 </rmic>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +000090 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000091
gwt.team.scottb9fba66c2006-12-11 18:50:42 +000092 <target name="compile.tests" description="Compiles the test code for this project">
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000093 <mkdir dir="${javac.junit.out}" />
94 <gwt.javac srcdir="test" destdir="${javac.junit.out}">
95 <classpath>
96 <pathelement location="${javac.out}" />
gwt.team.scottbe18b95c2006-12-21 22:35:49 +000097 <pathelement location="${gwt.tools.lib}/junit/junit-3.8.1.jar" />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +000098 <pathelement location="${gwt.dev.staging.jar}" />
99 </classpath>
100 </gwt.javac>
101 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000102
103 <target name="build" depends="compile" description="Build and package this project">
104 <mkdir dir="${gwt.build.lib}" />
105 <gwt.jar>
gwt.team.scottbb8fc3372006-12-11 19:30:10 +0000106 <fileset dir="src" excludes="**/package.html" />
107 <fileset dir="super" excludes="**/package.html" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000108 <fileset dir="${javac.out}" />
gwt.team.scottbc4700b82006-12-12 11:23:41 +0000109 <zipfileset src="${gwt.tools.lib}/tomcat/servlet-api-2.4.jar" />
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000110 </gwt.jar>
111 </target>
112
113 <target name="checkstyle" description="Static analysis of source">
114 <gwt.checkstyle>
115 <fileset dir="super/com/google/gwt/emul" />
116 <fileset dir="super/com/google/gwt/junit/translatable" />
117 </gwt.checkstyle>
118 </target>
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000119
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000120 <target name="remoteweb-test" description="Run a remoteweb test at the given host and path">
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000121 <echo message="Performing remote browser testing at rmi://${gwt.remote.browser}" />
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000122 <gwt.junit test.args="-port ${gwt.junit.port} -out www -web -remoteweb rmi://${gwt.remote.browser}" test.out="${junit.out}/${gwt.remote.browser}" test.cases="default.web.tests" />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000123 </target>
124
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000125 <target name="test" depends="compile, compile.tests" description="Run hosted-mode, web-mode and remoteweb tests for this project.">
126 <property.ensure name="distro.built" location="${gwt.dev.staging.jar}" message="GWT must be built before performing any tests. This can be fixed by running ant in the ${gwt.root} directory." />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000127
128 <!--
129 Run hosted and web mode tests for the platform on which this build
130 is executing
131 -->
132 <parallel threadcount="1">
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000133 <gwt.junit test.args="-port ${gwt.junit.port}" test.out="${junit.out}/${build.host.platform}-hosted-mode" test.cases="default.hosted.tests" />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000134
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000135 <gwt.junit test.args="-port ${gwt.junit.port} -out www -web" test.out="${junit.out}/${build.host.platform}-web-mode" test.cases="default.web.tests" />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000136
137 <!--
138 Run remote browser testing for the comma delimited list of remote browsers
139 -->
gwt.team.scottb9fba66c2006-12-11 18:50:42 +0000140 <foreach list="${gwt.remote.browsers}" delimiter="," parallel="true" maxThreads="1" target="remoteweb-test" param="gwt.remote.browser" />
gwt.team.mmendez99f280b2006-12-08 23:11:29 +0000141 </parallel>
142 </target>
gwt.team.scottb14c5b9d2006-12-10 06:06:08 +0000143
144 <target name="clean" description="Cleans this project's intermediate and output files">
145 <delete dir="${project.build}" />
146 <delete file="${project.lib}" />
147 </target>
148
149</project>