Add GWTTestSuite to bin GWTTestCases to minimize the number of times the test cases must switch between GWT Modules.
Add TestSuites for groups of tests where none previously existed.
Perform an outofdate check on the benchmark viewer app to eliminate unnecessary rebuilds.
Switch the "ant test" build target to run with suite-level granularity.

Patch by: bobv, scott
Review by: scott


git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@1952 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/common.ant.xml b/common.ant.xml
index a37656d..036441e 100755
--- a/common.ant.xml
+++ b/common.ant.xml
@@ -92,7 +92,7 @@
 	<!-- JUnit support -->
 	<property name="gwt.dev.staging.jar" location="${gwt.build.staging}/gwt-${build.host.platform}-${gwt.version}/gwt-dev-${build.host.platform}.jar" />
 	<property name="gwt.junit.port" value="8888" />
-	<property name="gwt.junit.testcase.includes" value="**/*Test.class"/>
+	<property name="gwt.junit.testcase.includes" value="**/*Suite.class"/>
 	
 	<!--
 		Comma delimited list of host and path components on which to run remote browser testing.
@@ -144,9 +144,9 @@
 			<mkdir dir="@{test.reports}" />
 
 			<echo message="${javac.out} ${javac.junit.out}" />
-			<junit dir="@{test.out}" fork="yes" printsummary="yes" haltonfailure="true">
+			<junit dir="@{test.out}" fork="yes" printsummary="yes" failureproperty="junit.failure" >
 				<jvmarg line="${junit.platform.args}" />
-				<jvmarg line="-Xmx256m" />
+				<jvmarg line="-Xmx512m" />
 				<sysproperty key="gwt.args" value="@{test.args}" />
 				<sysproperty key="gwt.devjar" value="${gwt.dev.staging.jar}" />
 				<sysproperty key="java.awt.headless" value="true" />
@@ -168,6 +168,7 @@
 					<fileset refid="@{test.cases}" />
 				</batchtest>
 			</junit>
+			<fail message="One or more junit tests failed" if="junit.failure" />
 		</sequential>
 	</macrodef>