You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/04/11 00:25:18 UTC
cvs commit: xml-batik build.xml
vhardy 01/04/10 15:25:18
Modified: . build.xml
Log:
Added rules for running test suites.
Revision Changes Path
1.49 +50 -1 xml-batik/build.xml
Index: build.xml
===================================================================
RCS file: /home/cvs/xml-batik/build.xml,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -r1.48 -r1.49
--- build.xml 2001/04/01 18:05:09 1.48
+++ build.xml 2001/04/10 22:25:15 1.49
@@ -45,7 +45,7 @@
[win32] .\build.bat help
- $Id: build.xml,v 1.48 2001/04/01 18:05:09 hillion Exp $
+ $Id: build.xml,v 1.49 2001/04/10 22:25:15 vhardy Exp $
-->
@@ -65,6 +65,8 @@
<property name="src" value="sources"/>
<property name="resources" value="resources"/>
+ <property name="testsrc" value="test-sources"/>
+ <property name="testresources" value="test-resources"/>
<property name="dest" value="classes"/>
<property name="build" value="${project}-${version}"/>
<property name="docs" value="${build}/docs"/>
@@ -118,10 +120,12 @@
<echo message=" dist-zip --> build the zip distributions"/>
<echo message=" dist-tgz --> build the tgz distributions"/>
<echo message=" compile --> compiles the source code"/>
+ <echo message=" compiletest --> compiles the tests source code"/>
<echo message=" svgbrowser --> runs the SVG browser"/>
<echo message=" svgrasterizer --> runs the SVG rasterizer"/>
<echo message=" svgpp --> runs the SVG pretty-printer"/>
<echo message=" regard --> runs the regard regression utility"/>
+ <echo message=" runtest --> runs a Test, given a class name as an input" />
<echo message=" javadoc --> generates the API documentation"/>
<echo message=" site --> generates the site documentation"/>
<echo message=" sitedoc --> generates the site documentation without"/>
@@ -196,6 +200,20 @@
<!-- Compilation ........................................................ -->
+ <target name ="compiletest"
+ depends ="compile"
+ description="Compiles the tests infrastructure source files">
+ <mkdir dir="${dest}"/>
+
+ <javac srcdir="${testsrc}" destdir="${dest}" deprecation="on">
+ <classpath>
+ <pathelement location="${dest}" />
+ <path refid="libs-classpath"/>
+ <path refid="libs-build-classpath"/>
+ </classpath>
+ </javac>
+ </target>
+
<target name ="compile"
depends ="init"
description="Compiles the source files">
@@ -564,6 +582,37 @@
<pathelement location="${dest}" />
<path refid="libs-classpath"/>
<pathelement location="resources" />
+ </classpath>
+ <arg value="${args}"/>
+ </java>
+ </target>
+
+ <target name="runtest"
+ depends="compiletest"
+ description="Runs test whose class name is passed as an input">
+ <java fork="yes"
+ classname="${class-prefix}.test.SimpleTestRunner">
+ <classpath>
+ <pathelement location="${dest}" />
+ <path refid="libs-classpath"/>
+ <pathelement location="resources" />
+ <pathelement location="test-resources" />
+ </classpath>
+ <arg line="${args}"/>
+ </java>
+ </target>
+
+ <target name="runtestsuite"
+ depends="compiletest"
+ description="Runs test suite whose file or uri is passed as an input">
+ <java fork="yes"
+ classname="${class-prefix}.test.xml.XMLTestSuiteRunner">
+ <classpath>
+ <pathelement location="${dest}" />
+ <path refid="libs-classpath"/>
+ <path refid="libs-build-classpath"/>
+ <pathelement location="resources" />
+ <pathelement location="test-resources" />
</classpath>
<arg line="${args}"/>
</java>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org