Commit dee031fa authored by Fabien Triolet's avatar Fabien Triolet
Browse files

this script use the new version of tests.

parent 1602f215
<!-- $Id: build.xml,v 1.43 2002-11-07 08:21:46 triolet Exp $ --> <!-- $Id: build.xml,v 1.44 2003-01-22 09:57:16 triolet Exp $ -->
<project name="transmo" default="compile" basedir=".."> <project name="transmo" default="compile" basedir="..">
...@@ -181,12 +181,12 @@ ...@@ -181,12 +181,12 @@
<target name="updatetests" depends="init"> <target name="updatetests" depends="init">
<echo message="Building test directory..."/> <echo message="Building test directory..."/>
<javadoc <javadoc
sourcepath="src" destdir="tests" sourcepath="src" destdir="test"
packagenames="fr.fluxmedia.*" packagenames="fr.fluxmedia.*"
defaultexcludes="yes" defaultexcludes="yes"
doclet="com.objectfab.tools.junitdoclet.JUnitDoclet" doclet="com.objectfab.tools.junitdoclet.JUnitDoclet"
docletpathref="classpath" docletpathref="classpath"
additionalparam="-d ../tests -buildall" additionalparam="-d ../test -buildall"
> >
<classpath refid="classpath"/> <classpath refid="classpath"/>
</javadoc> </javadoc>
...@@ -200,42 +200,70 @@ ...@@ -200,42 +200,70 @@
<target name="test" depends="init"> <target name="test" depends="init">
<echo message="Testing..."/> <echo message="Testing..."/>
<javac srcdir="tests/fr/fluxmedia/transmorpher/Graph/Rules" <!-- <javac srcdir="test/fr/fluxmedia/transmorpher/graph/rules"
debug="on" destdir="classes"> debug="on" destdir="classes">
<classpath refid="classpath"/> <classpath refid="classpath"/>
</javac> </javac> -->
<javac srcdir="tests/fr/fluxmedia/" debug="on" destdir="classes"> <javac srcdir="test/fr/fluxmedia/" debug="on" destdir="classes">
<classpath refid="classpath"/> <classpath refid="classpath"/>
<include name="AllTests.*"/> <!-- <include name="AllTests.*"/> -->
<include name="transmorpher/Graph/TransmorpherTest.*"/>
<include name="transmorpher/Graph/GraphSuite.*"/> <include name="transmorpher/utils/ParametersTest.*"/>
<include name="transmorpher/Utils/mVersionTest.*"/> <include name="transmorpher/utils/FifoTest.*"/>
<include name="transmorpher/Utils/ParametersTest.*"/>
<include name="transmorpher/Utils/FifoTest.*"/> <include name="transmorpher/graph/TransmorpherTest.*"/>
<include name="transmorpher/Utils/UtilsSuite.*"/> <include name="transmorpher/graph/PortTest.*"/>
<include name="transmorpher/stdlib/ReadfileTest.*"/> <include name="transmorpher/graph/PortListTest.*"/>
<include name="transmorpher/graph/ChannelTest.*"/>
<include name="transmorpher/graph/GenerateTest.*"/>
<include name="transmorpher/graph/SerializeTest.*"/>
<include name="transmorpher/graph/MergeTest.*"/>
<include name="transmorpher/graph/DispatchTest.*"/>
<include name="transmorpher/graph/ApplyExternalTest.*"/>
<include name="transmorpher/graph/ApplyProcessTest.*"/>
<include name="transmorpher/graph/ApplyQueryTest.*"/>
<include name="transmorpher/graph/ApplyRulesetTest.*"/>
<include name="transmorpher/graph/QueryTest.*"/>
<include name="transmorpher/graph/rules/*.*"/>
<!-- <include name="transmorpher/Graph/GraphSuite.*"/>-->
<!-- <include name="transmorpher/Utils/mVersionTest.*"/> -->
<!-- <include name="transmorpher/Utils/UtilsSuite.*"/> -->
<include name="transmorpher/stdlib/ReadFileTest.*"/>
<include name="transmorpher/stdlib/BroadcastTest.*"/> <include name="transmorpher/stdlib/BroadcastTest.*"/>
<include name="transmorpher/stdlib/ConcatTest.*"/> <include name="transmorpher/stdlib/ConcatTest.*"/>
<include name="transmorpher/stdlib/IntegerIteratorTest.*"/> <include name="transmorpher/stdlib/IntegerIteratorTest.*"/>
<include name="transmorpher/stdlib/FileIteratorTest.*"/> <include name="transmorpher/stdlib/FileIteratorTest.*"/>
<include name="transmorpher/stdlib/FixpointIteratorTest.*"/> <include name="transmorpher/stdlib/FixpointIteratorTest.*"/>
<include name="transmorpher/stdlib/TestingDispatcherTest.*"/> <include name="transmorpher/stdlib/TestingDispatcherTest.*"/>
<include name="transmorpher/stdlib/XsltTest.*"/> <include name="transmorpher/stdlib/XSLTTest.*"/>
<include name="transmorpher/stdlib/WritefileTest.*"/> <!-- <include name="transmorpher/stdlib/WritefileTest.*"/> -->
<include name="transmorpher/stdlib/StdoutTest.*"/> <!-- <include name="transmorpher/stdlib/StdoutTest.*"/> -->
<include name="transmorpher/stdlib/StdlibSuite.*"/> <!-- <include name="transmorpher/stdlib/StdlibSuite.*"/> -->
<include name="transmorpher/TProcessFactory/ContentHandlerInfoTest.*"/> <include name="transmorpher/engine/ContentHandlerInfoTest.*"/>
<include name="transmorpher/TProcessFactory/XML_PortTest.*"/> <include name="transmorpher/engine/XML_PortTest.*"/>
<include name="transmorpher/TProcessFactory/TProcessFactorySuite.*"/> <!-- <include name="transmorpher/TProcessFactory/TProcessFactorySuite.*"/> -->
</javac> </javac>
<antcall target="jar"/> <antcall target="jar"/>
<junit printsummary="no" fork="yes" haltonfailure="no"> <junit printsummary="yes" fork="yes" haltonfailure="no">
<test name="fr.fluxmedia.AllTests"> <batchtest todir="test/reports/xml/">
<formatter type="brief" usefile="false"/> <fileset dir="classes/">
</test> <include name="**/*Test.class"/>
<exclude name="**/Test.class"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath refid="classpath"/> <classpath refid="classpath"/>
</junit> </junit>
<junitreport todir="test/reports">
<fileset dir="test/reports/xml/">
<include name="TEST-*.xml"/>
</fileset>
<report todir="test/reports/html/"/>
</junitreport>
</target> </target>
<target name="ttask" depends="init"> <target name="ttask" depends="init">
...@@ -243,7 +271,7 @@ ...@@ -243,7 +271,7 @@
classpath="./lib/transmo.jar"/> classpath="./lib/transmo.jar"/>
<echo message="Transmorphing..."/> <echo message="Transmorphing..."/>
<transmorph debug="2" mode="run" srcfile="../JAVA/transmorpher/samples//biblio/process.xml" message="Yurk"> <transmorph debug="1" reloc="test-csv/result" mode="run" srcfile="cvslog/process.xml" message="Yurk">
<param name="myParam" select="value"/> <param name="myParam" select="value"/>
<param name="myParam">value</param> <param name="myParam">value</param>
</transmorph> </transmorph>
...@@ -320,8 +348,8 @@ ...@@ -320,8 +348,8 @@
<copy todir="transmo-${version}/classes"> <copy todir="transmo-${version}/classes">
<fileset dir="classes" includes="**/*.class"/> <fileset dir="classes" includes="**/*.class"/>
</copy> </copy>
<copy todir="transmo-${version}/tests"> <copy todir="transmo-${version}/test">
<fileset dir="tests" includes="**/*.java,**/*.xml"/> <fileset dir="test" includes="**/*.java,**/reports,**/html,**/xml"/>
</copy> </copy>
<copy todir="transmo-${version}/api"> <copy todir="transmo-${version}/api">
<fileset dir="api" includes="**/*.html"/> <fileset dir="api" includes="**/*.html"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment