You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by pe...@apache.org on 2005/01/06 11:01:54 UTC
cvs commit: ws-axis/c/build executeTest.xml
perryan 2005/01/06 02:01:54
Modified: c/build executeTest.xml
Log:
Added a stopwatch around the exec task and output the execution time to the test log
Revision Changes Path
1.3 +6 -0 ws-axis/c/build/executeTest.xml
Index: executeTest.xml
===================================================================
RCS file: /home/cvs/ws-axis/c/build/executeTest.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- executeTest.xml 20 Dec 2004 16:02:54 -0000 1.2
+++ executeTest.xml 6 Jan 2005 10:01:54 -0000 1.3
@@ -76,6 +76,7 @@
<sleep seconds="3"/>
<echo message="Running Test ${testName} ${clientArgs}"/>
<!-- Run the client test -->
+ <stopwatch name="${testName}.timer" action="start"/>
<exec dir="${test.directory}"
executable="${test.directory}/${testName}"
output="${results.stdout}" error="${results.stderr}"
@@ -86,6 +87,11 @@
<env key="LIBPATH" path="${dir.libraries}${path.separator}${dir.xmlParser}${path.separator}${dir.gskit}/lib"/>
<env key="AXISCPP_DEPLOY" value="${axiscpp_deploy}"/>
</exec>
+ <stopwatch name="${testName}.timer" action="total"/>
+ <propertycopy property="timer1" from="${testName}.timer"/>
+ <echo file="${results.log}" append="true"
+ message="${testName} - Execution Time - ${timer1}${line.separator}"/>
+ <echo message="${testName} - Execution Time - ${timer1}"/>
<java classname="org.apache.test.StopTCPMonitor">
<arg line="-p ${monitorPort}"/>
<arg line="-h localhost"/>