Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
leo
committed
May 3, 2006
1 parent
eb48fb5
commit 2933c2b
Showing
2 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- | ||
** @author Matthias L. Jugel | ||
** @version $Id$ | ||
--> | ||
<project basedir="." default="test" name="SnipSnap.test"> | ||
<description> | ||
Execute Tests for SnipSnap. | ||
</description> | ||
|
||
<property file="conf/build.properties"/> | ||
|
||
<target name="prepare-tests" depends="snipsnap-war, jar-server, compile-test"> | ||
<mkdir dir="${dir.out}/test/org/snipsnap/config"/> | ||
<copy file="conf/snipsnap.conf" tofile="./cls/test/conf/snipsnap.conf"/> | ||
<copy file="src/org/snipsnap/config/defaults.conf" tofile="${dir.out}/test/org/snipsnap/config/defaults.conf"/> | ||
<copy file="src/org/snipsnap/config/globals.conf" tofile="${dir.out}/test/org/snipsnap/config/globals.conf"/> | ||
<copy file="src/org/snipsnap/config/transpose.map" tofile="${dir.out}/test/org/snipsnap/config/transpose.map"/> | ||
<copy todir="${dir.out}/test"> | ||
<fileset dir="${dir.src}/apps/default" includes="**.properties"/> | ||
</copy> | ||
|
||
</target> | ||
|
||
<target name="test" depends="prepare-tests"> | ||
<junit printsummary="true"> | ||
<formatter usefile="false" type="plain"/> | ||
<test name="org.snipsnap.test.AllTests"/> | ||
<classpath> | ||
<pathelement location="${dir.out}/test"/> | ||
<pathelement location="${dir.out}/webapp/WEB-INF/classes"/> | ||
<path refid="all.classpath"/> | ||
<path refid="snipsnap.test"/> | ||
</classpath> | ||
</junit> | ||
</target> | ||
|
||
<target name="test-complex" depends="snipsnap-war, jar-server, prepare-tests, compile-test"> | ||
<junit printsummary="true"> | ||
<formatter usefile="false" type="plain"/> | ||
<test name="org.snipsnap.test.AllComplexTests"/> | ||
<classpath> | ||
<pathelement location="${dir.out}/test"/> | ||
<pathelement location="${dir.out}"/> | ||
<path refid="all.classpath"/> | ||
</classpath> | ||
</junit> | ||
</target> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters