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 2005/12/16 12:54:08 UTC

svn commit: r357154 - /webservices/axis/trunk/c/unitTest.xml

Author: hawkeye
Date: Fri Dec 16 03:54:02 2005
New Revision: 357154

URL: http://svn.apache.org/viewcvs?rev=357154&view=rev
Log:
Added the calculator sample to the unit tests.

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

Modified: webservices/axis/trunk/c/unitTest.xml
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/c/unitTest.xml?rev=357154&r1=357153&r2=357154&view=diff
==============================================================================
--- webservices/axis/trunk/c/unitTest.xml (original)
+++ webservices/axis/trunk/c/unitTest.xml Fri Dec 16 03:54:02 2005
@@ -14,13 +14,13 @@
 	</description>
 	<import file="./test.xml"/>
 	
-	<target name="runUnitTests">
+	<target name="runUnitTests" depends="checkEnvironment">
 		<antcall target="unitTestClient">
 			<param name="unit.test.list" value="${basedir}/tests/auto_build/testcases/unitTest.list"/>
 		</antcall>
 	</target>
 	
-	<target name="unitTestClient">
+	<target name="unitTestClient" depends="addSamplesToUnitTests">
 		<description>
 			This target calls the fv suite as usual except for the fact that unit test flags
 				and properties are switched on.
@@ -36,11 +36,35 @@
 		<!-- have to replace all the single backslashes in unit.test.list so that the replace works OK -->
 		<propertyregex property="unit.test.list" override="true" input="${unit.test.list}" regexp="\\" replace="/"/>
 		<propertyregex property="test.list" override="true" input="${test.list}" regexp=".*" replace="${unit.test.list}" defaultValue="${unit.test.list}"/>
+		
+		<!--  dir.testproperties must be set to the correct tree -->
+		<!-- replace all of dir.testproperties backslashes slashes as this ruins the proper regex -->
+		<propertyregex property="dir.testproperties" override="true" input="${dir.testproperties}" regexp="\\" replace="/"/>
+		<propertyregex property="dir.testproperties" override="true" input="${dir.testproperties}" regexp=".*" replace=""/>
+		<!-- have to replace all the single backslashes in unit.test.list so that the replace works OK -->
+<!-- 	<propertyregex property="unit.test.list" override="true" input="${unit.test.list}" regexp="\\" replace="/"/> -->
+		<propertyregex property="dir.testproperties" override="true" input="never find this" regexp="a" replace="${basedir}/tests/auto_build/testcases/tests" defaultValue="${basedir}/tests/auto_build/testcases/tests"/>
+		<echo message="${dir.testproperties} DIRTESTPROPS"/>
+
+
 		<!-- ******************************************************************************************** -->
 		<!-- replace any previously set up mockserver with value true -->
 		<propertyregex property="mockServer" override="true" input="${mockServer}" regexp="false" replace="true" defaultValue="true"/>
 		<!-- now call the fv suite as usual -->
 		<antcall target="testSuite" inheritall="true"/>
+	</target>
+	
+	<target name="addSamplesToUnitTests">
+		<description>
+			We expose several samples but three in particular. Calculator, testHandler and echoStringHeaderHandler. However, we should make sure that these are
+			tested on a daily basis. This target copies those tests from the source tree into the samples tree ready for unit test to run. I have added these to the unit tests here but they should also be run as services too.
+		</description>
+		<!-- copy over the calculator sample client to the clients test directory -->
+		<copy file="${basedir}/samples/client/calculator/Client.cpp" tofile="${dir.autotests}/client/cpp/CalculatorClient.cpp"/>
+	</target>
+	
+	<target name="checkEnvironment" depends="initialize">
+		<echo message="Please ensure that you have set xmlParserLibraryName = ${xerces.xmlParserLibraryName} an XMLParser home depending on what your parser is"/>
 	</target>