Revision: 6418
Author: jlaba...@google.com
Date: Mon Oct 19 10:28:15 2009
Log: Adding option to set a specific threadCount for ant test targets.

Patch by: jlabanca
Review by: jat


http://code.google.com/p/google-web-toolkit/source/detail?r=6418

Modified:
  /trunk/common.ant.xml
  /trunk/user/build.xml

=======================================
--- /trunk/common.ant.xml       Wed Oct 14 11:08:29 2009
+++ /trunk/common.ant.xml       Mon Oct 19 10:28:15 2009
@@ -43,7 +43,9 @@
    <property name="gwt.build.jni" location="${gwt.build}/jni" />
    <property name="gwt.build.staging" location="${gwt.build}/staging" />
    <property name="gwt.build.dist" location="${gwt.build}/dist" />
+  <!-- gwt.threadsPerProcessor supercedes gwt.threadCount unless set to 0  
-->
    <property name="gwt.threadsPerProcessor" value="1" />
+  <property name="gwt.threadCount" value="1" />
    <property name="project.build"  
location="${gwt.build.out}/${project.tail}" />
    <property name="project.lib"  
location="${gwt.build.lib}/gwt-${ant.project.name}.jar" />
    <property name="project.jni" location="${gwt.build}/${project.tail}" />
=======================================
--- /trunk/user/build.xml       Fri Oct 16 20:20:33 2009
+++ /trunk/user/build.xml       Mon Oct 19 10:28:15 2009
@@ -439,7 +439,8 @@
      <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." />
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!--
          The remote targets must be run sequentially or BrowserManager will  
queue
          requests, which will cause some tests to timeout while waiting.
@@ -473,7 +474,8 @@
      <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." />
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <antcall target="test.dev.htmlunit"/>
        <antcall target="test.emma.htmlunit"/>
        <antcall target="test.web.htmlunit"/>
@@ -488,7 +490,8 @@
        depends="compile, compile.tests"
        description="Run dev-mode tests for this project.">
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!-- disable HtmlUnit until it is reliable
        <antcall target="test.dev.htmlunit"/>
        -->
@@ -504,7 +507,8 @@
        depends="compile, compile.tests"
        description="Run web-mode tests for this project.">
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!-- disable HtmlUnit until it is reliable
        <antcall target="test.web.htmlunit"/>
        -->
@@ -520,7 +524,8 @@
        depends="compile, compile.tests"
        description="Run emma tests for this project.">
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!-- disable HtmlUnit until it is reliable
        <antcall target="test.emma.htmlunit"/>
        -->
@@ -536,7 +541,8 @@
        depends="compile, compile.tests"
        description="Run draft compiled tests for this project.">
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!-- disable HtmlUnit until it is reliable
        <antcall target="test.draft.htmlunit"/>
        -->
@@ -552,7 +558,8 @@
        depends="compile, compile.tests"
        description="Run -XdisableClassMetadata tests for this project.">
      <limit failonerror="true" hours="${test.timeout}">
-    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
+    <parallel threadsPerProcessor="${gwt.threadsPerProcessor}"
+        threadCount="${gwt.threadCount}">
        <!-- disable HtmlUnit until it is reliable
        <antcall target="test.web.htmlunit"/>
        -->

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to