changeset 50:d4b7dcc8d66e

add ability to debug mercurial tests
author Pavel.Sher
date Thu, 09 Oct 2008 13:12:32 +0400
parents ef24dd7c740e
children d8661b24ed37
files build.xml
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/build.xml	Thu Oct 09 12:18:57 2008 +0400
+++ b/build.xml	Thu Oct 09 13:12:32 2008 +0400
@@ -32,11 +32,13 @@
   <taskdef name="testng" classname="org.testng.TestNGAntTask" classpath="${basedir}/mercurial-tests/lib/testng-5.7-jdk15.jar"/>
 
   <target name="run-tests" depends="clean, init, compile.module.mercurial-tests.production">
+    <property name="suspend" value="n"/>
 
     <testng haltonfailure="no" failureProperty="failure_found" listener="org.testng.reporters.TestHTMLReporter"
             outputdir="${basedir}/test-output" classpathref="mercurial-tests.runtime.module.classpath" dumpcommand="true">
 
       <jvmarg value="-ea"/>
+      <jvmarg value="-Xrunjdwp:transport=dt_socket,server=y,suspend=${suspend},address=5555"/>
 
       <sysproperty key="java.awt.headless" value="true"/>