Adding option to set a specific threadCount for ant test targets.
Patch by: jlabanca
Review by: jat
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@6418 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/user/build.xml b/user/build.xml
index 2ada647..4dfe7e5 100755
--- a/user/build.xml
+++ b/user/build.xml
@@ -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"/>
-->