You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ha...@apache.org on 2006/05/26 10:42:09 UTC

svn commit: r409589 - /webservices/axis/trunk/c/test.xml

Author: hawkeye
Date: Fri May 26 01:42:08 2006
New Revision: 409589

URL: http://svn.apache.org/viewvc?rev=409589&view=rev
Log:
Changed Monitor and MockServer to be ANT tasks. Because.. On win XP (sp2 only) the system was running out of sockets. The best way around this was for the MockServer and Monitor to limit the number of times they created server sockets per test run. So, now the MockServer and Monitor are only created once per test-run. On a per-test basis they are flushed and re-freshed. At the end of the test-run they are terminated.

Modified:
    webservices/axis/trunk/c/test.xml

Modified: webservices/axis/trunk/c/test.xml
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/test.xml?rev=409589&r1=409588&r2=409589&view=diff
==============================================================================
--- webservices/axis/trunk/c/test.xml (original)
+++ webservices/axis/trunk/c/test.xml Fri May 26 01:42:08 2006
@@ -18,8 +18,10 @@
 	 description="Build and Run all tests"/>
 
 	<target name="preInitializeTest" depends="pre-init">
+		<echo message="dir.properties = ${dir.properties} - ${platform}"/>
 		<property file="${dir.properties}/test.${platform}.properties" />
 		<property file="${dir.properties}/test.common.properties" />
+		<property name="dir.xmlParser" value="${env.XERCES_HOME}/bin${path.separator}${env.XERCES_HOME}/lib"/>
 	</target>
 	
 	
@@ -44,10 +46,21 @@
 	  Loop through all the test xml properties files in the tests
 	  list and call runTest target
 	  -->
-	<target name="runTests" depends="setTestList">
+	<target name="runTests" depends="setTestList, defineMonitor, defineMockServer">
 		<foreach target="runTest" param="test_property" inheritall="true">
 			<path refid="test_properties"/>
 		</foreach>
+		<!-- we need to stop the monitor (if there is any) -->
+		<antcall target="stopMonitor" inheritall="true" />
+		
+		<!-- if we are running in mockserver mode then we need to stop the MockServer -->
+				<if>
+			<equals arg1="${mockServer}" arg2="true" />
+			<then>
+				<antcall target="stopMockServer"
+					inheritall="true" />
+			</then>
+		</if>
 	</target>
 
 	<!--



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org