- testing build for the graph package
PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/sandbox/graph/trunk@144585 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
adb5d71087
commit
41f1622c83
1 file changed
+66
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project name="Stratum" default="test" basedir=".">
|
||||
|
||||
<!-- Allow any user specific values to override the defaults -->
|
||||
<property file="${user.home}/build.properties" />
|
||||
<!-- Allow user defaults for this project -->
|
||||
<property file="build.properties" />
|
||||
<!-- Set default values for the build -->
|
||||
<property file="default.properties" />
|
||||
|
||||
<!-- Construct compile classpath -->
|
||||
<path id="classpath">
|
||||
<pathelement location="${junit.jar}"/>
|
||||
<pathelement location="${build.home}/class"/>
|
||||
</path>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- T E S T -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<target
|
||||
name="test"
|
||||
depends="compile-test"
|
||||
description="runs (junit) unit tests">
|
||||
|
||||
<echo>
|
||||
Running all JUnit tests
|
||||
</echo>
|
||||
|
||||
<junit printSummary="yes">
|
||||
<formatter type="plain"/>
|
||||
<classpath refid="classpath"/>
|
||||
<batchtest todir=".">
|
||||
<fileset dir="${build.home}/class">
|
||||
<include name="**/*Test*.class"/>
|
||||
</fileset>
|
||||
</batchtest>
|
||||
</junit>
|
||||
</target>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
<!-- C O M P I L E T E S T S -->
|
||||
<!-- ================================================================== -->
|
||||
|
||||
<target
|
||||
name="compile-test"
|
||||
description="==> compiles the test source code">
|
||||
|
||||
<ant antfile="build.xml" target="clean"/>
|
||||
<ant antfile="build.xml" target="compile"/>
|
||||
|
||||
<javac srcdir="${test.home}"
|
||||
destdir="${build.home}/class"
|
||||
excludes="**/package.html"
|
||||
debug="${debug}"
|
||||
deprecation="${deprecation}"
|
||||
optimize="${optimize}">
|
||||
<classpath refid="classpath"/>
|
||||
<classpath>
|
||||
<pathelement path="${build.home}/class"/>
|
||||
</classpath>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
</project>
|
||||
Reference in new issue
Block a user