Return-Path: X-Original-To: apmail-ant-dev-archive@www.apache.org Delivered-To: apmail-ant-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0901F100E7 for ; Sun, 23 Mar 2014 16:28:37 +0000 (UTC) Received: (qmail 68067 invoked by uid 500); 23 Mar 2014 16:28:35 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 68027 invoked by uid 500); 23 Mar 2014 16:28:34 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 68019 invoked by uid 99); 23 Mar 2014 16:28:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2014 16:28:33 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FSL_HELO_BARE_IP_2,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of antoine@gmx.de designates 212.227.17.21 as permitted sender) Received: from [212.227.17.21] (HELO mout.gmx.net) (212.227.17.21) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 23 Mar 2014 16:28:28 +0000 Received: from 192.168.1.77 ([72.89.116.143]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0M8leW-1WFgyY2C8S-00CAbq for ; Sun, 23 Mar 2014 17:28:06 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Subject: Re: svn commit: r1580520 - in /ant/core/trunk: ./ manual/Tasks/ src/main/org/apache/tools/ant/taskdefs/optional/junit/ From: Antoine Levy Lambert In-Reply-To: <20140323161830.18BF12388860@eris.apache.org> Date: Sun, 23 Mar 2014 12:28:02 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <99B91C9D-7931-4646-8353-72342BFF45A3@gmx.de> References: <20140323161830.18BF12388860@eris.apache.org> To: Ant Developers List X-Mailer: Apple Mail (2.1874) X-Provags-ID: V03:K0:ElI0t4Q0miBbd71DhSPuCO0frPBouydg2UqO2pV2V0kqnJlHy0H OQjdaGa2Bp+k1Kr8Z5j1zGx3QXzw7649/pyLrC99qjREsz2F1rjXFsFMr12xhnTYYGLIdC1 2GpRl3hc+6+ishyE2mQAAzFnlK2HK6e++mBKeuMx3iR9DXsBWiD1SJ5l7yJG3UcXV0BDPa2 AXY4FsKakL1N2hRPULhCw== X-Virus-Checked: Checked by ClamAV on apache.org Hi, Thanks to John Elion for this contribution. I have tried it on the Ant test cases. This makes the execution of the = test cases shorter by 3 minutes with 2 threads [ not sure what is the = total time because I also run the antunit tests ]. Some of our test cases do not support parallelism because they are = creating and dropping temporary directories and files which have the = same names. this makes errors looking like this one : [junit] Testcase: = testNoAddNewLine(org.apache.tools.ant.filters.NoNewLineTest): Caused = an ERROR [junit] Warning: Could not find file = /Users/antoine/dev/asf/ant-core/src/etc/testcases/filters/result/nonl to = copy. [junit] = /Users/antoine/dev/asf/ant-core/src/etc/testcases/filters/build.xml:111: = Warning: Could not find file = /Users/antoine/dev/asf/ant-core/src/etc/testcases/filters/result/nonl to = copy. [junit] at = org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:639) Does someone have a suggestion about how to adapt the test cases to = support parallelism. I was thinking of adding somewhere in the Ant codebase a utility class = or method to get the PID of the currently running process and add the PID somewhere in the name of temporary folders created for = tests. Any thoughts on that ?=20 see = http://stackoverflow.com/questions/35842/how-can-a-java-program-get-its-ow= n-process-id Regards, Antoine On Mar 23, 2014, at 12:18 PM, antoine@apache.org wrote: > Author: antoine > Date: Sun Mar 23 16:18:29 2014 > New Revision: 1580520 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org