Reviewers: jat,

Description:
Description:
===========
The default ant test target in trunk/user/build.xml runs all test
targets by default.  Since we generally run the test target in
trunk/build.xml, there isn't a good way to selectively run test targets.

Fix:
====
Adding disable options to some targets so we can selectively disable
them. This allows us to spread the targets over multiple systems without
redundancy.

Please review this at http://gwt-code-reviews.appspot.com/80802

Affected files:
   user/build.xml


Index: user/build.xml
===================================================================
--- user/build.xml      (revision 6390)
+++ user/build.xml      (working copy)
@@ -447,7 +447,8 @@

    <target name="test.dev"
        depends="compile, compile.tests"
-      description="Run dev-mode tests for this project.">
+      description="Run dev-mode tests for this project."
+      unless="test.dev.disable">
      <limit failonerror="true" hours="${test.timeout}">
      <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
        <!-- disable HtmlUnit until it is reliable
@@ -463,7 +464,8 @@

    <target name="test.web"
        depends="compile, compile.tests"
-      description="Run web-mode tests for this project.">
+      description="Run web-mode tests for this project."
+      unless="test.web.disable">
      <limit failonerror="true" hours="${test.timeout}">
      <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
        <!-- disable HtmlUnit until it is reliable
@@ -479,7 +481,8 @@

    <target name="test.emma"
        depends="compile, compile.tests"
-      description="Run emma tests for this project.">
+      description="Run emma tests for this project."
+      unless="test.emma.disable">
      <limit failonerror="true" hours="${test.timeout}">
      <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
        <!-- disable HtmlUnit until it is reliable
@@ -495,7 +498,8 @@

    <target name="test.draft"
        depends="compile, compile.tests"
-      description="Run draft compiled tests for this project.">
+      description="Run draft compiled tests for this project."
+      unless="test.draft.disable">
      <limit failonerror="true" hours="${test.timeout}">
      <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
        <!-- disable HtmlUnit until it is reliable
@@ -511,7 +515,8 @@

    <target name="test.nometa"
        depends="compile, compile.tests"
-      description="Run -XdisableClassMetadata tests for this project.">
+      description="Run -XdisableClassMetadata tests for this project."
+      unless="test.nometa.disable">
      <limit failonerror="true" hours="${test.timeout}">
      <parallel threadsPerProcessor="${gwt.threadsPerProcessor}">
        <!-- disable HtmlUnit until it is reliable



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

Reply via email to