Skip to content

Commit

Permalink
Implement ant "test" target.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@33 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
jsichi committed Sep 27, 2007
1 parent c1f9f16 commit 10d9791
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<property name="classes.dir" value="classes"/>
<property name="testsrc.dir" value="testsrc"/>
<property name="testlib.dir" value="testlib"/>
<property name="testlog.dir" value="testlog"/>
<property name="testclasses.dir" value="testclasses"/>
<property name="build.dir" value="build"/>
<property name="doc.dir" value="doc"/>
Expand Down Expand Up @@ -53,13 +54,23 @@
<pathelement location="${mondrian.dir}/classes"/>
<pathelement location="${mondrian.dir}/testclasses"/>
<pathelement location="${mondrian.dir}/lib/eigenbase-xom.jar"/>
<pathelement location="${mondrian.dir}/lib/eigenbase-properties.jar"/>
<pathelement location="${mondrian.dir}/lib/eigenbase-resgen.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-dbcp.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-pool.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-collections.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-vfs.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-logging.jar"/>
<pathelement location="${mondrian.dir}/lib/commons-math-1.0.jar"/>
<pathelement location="${mondrian.dir}/testlib/derby.jar"/>
<!-- We depend on spring, but only for examples. -->
<pathelement location="${lib.dir}/spring.jar"/>

</path>

<path id="project.test.classpath">
<path refid="project.classpath"/>
<pathelement location="${testclasses.dir}"/>
</path>

<!-- verify that required dependencies are defined -->
Expand Down Expand Up @@ -95,6 +106,7 @@
<mkdir dir="${build.dir}"/>
<mkdir dir="${testlib.dir}"/>
<mkdir dir="${testsrc.dir}"/>
<mkdir dir="${testlog.dir}"/>
</target>

<target name="compile" depends="prepare,parser,compile.java"/>
Expand Down Expand Up @@ -410,7 +422,19 @@ META-INF/**"/>
</javadoc>
</target>

<target name="test" />
<target name="test" depends="prepare, compile.tests">
<junit printsummary="yes" fork="no" failureproperty="junit.failure"
tempdir="${testlog.dir}">
<formatter type="plain"/>
<formatter type="xml"/>
<batchtest todir="${testlog.dir}">
<fileset dir="${testclasses.dir}">
<include name="**/*Test.class"/>
</fileset>
</batchtest>
<classpath refid="project.test.classpath"/>
</junit>
</target>

<taskdef name="retroweaver"
classname="com.rc.retroweaver.ant.RetroWeaverTask">
Expand Down

0 comments on commit 10d9791

Please sign in to comment.