incubator-depot-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject svn commit: rev 6810 - incubator/depot/trunk/version
Date Sat, 21 Feb 2004 17:01:06 GMT
Author: mmay
Date: Sat Feb 21 09:01:06 2004
New Revision: 6810

Modified:
   incubator/depot/trunk/version/build.xml
Log:
Changed testing, so that gump should be able to run without failure

Modified: incubator/depot/trunk/version/build.xml
==============================================================================
--- incubator/depot/trunk/version/build.xml	(original)
+++ incubator/depot/trunk/version/build.xml	Sat Feb 21 09:01:06 2004
@@ -91,6 +91,7 @@
     <pathelement location="${commons-logging.jar}"/>
     <pathelement location="${conf.home}"/>
     <pathelement location="${servlet.jar}"/>
+    <pathelement location="${ant.testutil.jar}"/>
   </path>
 
   <!-- Should all tests fail if one does? -->
@@ -98,11 +99,12 @@
 
   <!-- The root test to execute -->
   <property name="test.runner"         value="junit.textui.TestRunner"/>
+<!--  
   <property name="test.entry"          value="org.apache.commons.httpclient.TestAll"/>
   <property name="test-local.entry"    value="org.apache.commons.httpclient.TestAllLocal"/>
   <property name="test-external.entry" value="org.apache.commons.httpclient.TestAllExternal"/>
   <property name="test-nohost.entry"   value="org.apache.commons.httpclient.TestNoHost"/>
-
+-->
 <!-- ========== Targets =================================================== -->
 
 <!-- ========== Targets: "Internal" Targets =============================== -->
@@ -134,6 +136,24 @@
 
 <!-- ========== Targets: "External" Targets =============================== -->
 
+	<target name="init_repository" depends="" 
+		description="fetches core dependencies out of the ibiblio-repository and put them in the
local lib dir">
+<!-- should use a local repository here (perhaps even create it?? -->
+		<mkdir dir="${local.lib.dir}"/>
+
+		<get src="http://www.ibiblio.org/maven/junit/jars/junit-3.8.jar" 
+			dest="${junit.jar}" usetimestamp="true" 
+			verbose="true"/>
+		<get 
+			src="http://www.ibiblio.org/maven/commons-logging/jars/commons-logging-1.0.3.jar" 
+			dest="${commons-logging.jar}" usetimestamp="true" 
+			verbose="true"/>
+		<get 
+			src="http://www.ibiblio.org/maven/ant/jars/ant-1.6.jar" 
+			dest="${ant.jar}" usetimestamp="true" 
+			verbose="true"/>			
+	</target>
+
   <target name="dist" depends="compile,doc"
           description="Create binary distribution">
     <mkdir dir="${dist.home}"/>
@@ -236,10 +256,19 @@
 
   <target name="test" depends="compile.tests" if="test.entry"
           description="Run all unit test cases">
-      <java classname="${test.runner}" fork="yes" failonerror="${test.failonerror}">
-        <arg value="${test.entry}"/>
-        <classpath refid="test.classpath"/>
-      </java>
+		<junit printsummary="on" fork="true" dir="." showoutput="false" 
+			haltonfailure="${test.failonerror}">
+			<classpath>
+				<path refid="test.classpath"/>
+			</classpath>
+			<formatter type="xml"/>
+			<batchtest fork="yes" todir="${test.output.dir}">
+				<fileset dir="${core.test.src.dir}">
+					<include name="**/*Test*.java"/>
+					<exclude name="**/sandbox/**"/>
+				</fileset>
+			</batchtest>
+		</junit>      
   </target>
 
   <target name="test-nohost" depends="compile.tests" if="test-nohost.entry"

Mime
View raw message