Mercurial > hg > blitz_condensed
comparison build.xml @ 2:47767be3a265
Add a little bit of prep for some automated unit testing.
author | Dan Creswell <dan.creswell@gmail.com> |
---|---|
date | Thu, 26 Mar 2009 18:01:14 +0000 |
parents | 3dc0c5604566 |
children | 7b6200980805 |
comparison
equal
deleted
inserted
replaced
1:8914f447c864 | 2:47767be3a265 |
---|---|
21 <property name="lib" location="lib"/> | 21 <property name="lib" location="lib"/> |
22 <property name="otherlib" location="thirdpartylib"/> | 22 <property name="otherlib" location="thirdpartylib"/> |
23 <property name="release" location="release"/> | 23 <property name="release" location="release"/> |
24 <property name="config" location="config"/> | 24 <property name="config" location="config"/> |
25 <property name="examples" location="examples"/> | 25 <property name="examples" location="examples"/> |
26 <property name="reports.tests" location="reports/tests"/> | |
26 | 27 |
27 <taskdef name="classdepandjar" | 28 <taskdef name="classdepandjar" |
28 classname="org.jini.project.example.jade.tools.ClassDepAndJarTask" | 29 classname="org.jini.project.example.jade.tools.ClassDepAndJarTask" |
29 classpath="${basedir}/ant_addon/classdepandjar.jar:${jini_root}/lib/tools.jar"/> | 30 classpath="${basedir}/ant_addon/classdepandjar.jar:${jini_root}/lib/tools.jar"/> |
30 | 31 |
70 <pathelement location="${otherlib}/backport-util-concurrent.jar"/> | 71 <pathelement location="${otherlib}/backport-util-concurrent.jar"/> |
71 <pathelement location="${otherlib}/mina-core-1.0.1.jar"/> | 72 <pathelement location="${otherlib}/mina-core-1.0.1.jar"/> |
72 <pathelement location="${otherlib}/slf4j-api-1.2.jar"/> | 73 <pathelement location="${otherlib}/slf4j-api-1.2.jar"/> |
73 <pathelement location="${otherlib}/slf4j-jdk14-1.2.jar"/> | 74 <pathelement location="${otherlib}/slf4j-jdk14-1.2.jar"/> |
74 <pathelement location="${otherlib}/serviceui-1.1.jar"/> | 75 <pathelement location="${otherlib}/serviceui-1.1.jar"/> |
76 <pathelement location="${otherlib}/junit-4.5.jar"/> | |
75 <pathelement location="${bdb}"/> | 77 <pathelement location="${bdb}"/> |
76 </path> | 78 </path> |
77 | 79 |
78 <target name="compile" depends="init" | 80 <target name="compile" depends="init" |
79 description="compile the source " > | 81 description="compile the source " > |
100 file="${src}/org/dancres/blitz/serviceui/blitz.htm"/> | 102 file="${src}/org/dancres/blitz/serviceui/blitz.htm"/> |
101 <copy todir="${build}/org/dancres/blitz/tools/dash/images"> | 103 <copy todir="${build}/org/dancres/blitz/tools/dash/images"> |
102 <fileset dir="${src}/org/dancres/blitz/tools/dash/images"> | 104 <fileset dir="${src}/org/dancres/blitz/tools/dash/images"> |
103 </fileset> | 105 </fileset> |
104 </copy> | 106 </copy> |
107 </target> | |
108 | |
109 <target name="test" depends="compile"> | |
110 <junit printsummary="on" haltonfailure="off" showoutput="true" filtertrace="off"> | |
111 <classpath refid="allclasses"/> | |
112 <batchtest fork="yes" todir="${reports.tests}"> | |
113 <formatter type="plain" usefile="true"> | |
114 </formatter> | |
115 <fileset dir="${testsrc}"> | |
116 <include name="**/junit/**/*Test*.java"/> | |
117 </fileset> | |
118 </batchtest> | |
119 </junit> | |
105 </target> | 120 </target> |
106 | 121 |
107 <target name="installer" depends="jars"> | 122 <target name="installer" depends="jars"> |
108 <!-- Installer rule, not ready yet - sorting out source code | 123 <!-- Installer rule, not ready yet - sorting out source code |
109 | 124 |
722 <arg value="200"/> | 737 <arg value="200"/> |
723 <arg value="400"/> | 738 <arg value="400"/> |
724 </java> | 739 </java> |
725 </target> | 740 </target> |
726 | 741 |
727 <target name="thrash" depends="compile" | |
728 description="Thrash the space some and see if it breaks"> | |
729 <java classname="org.dancres.blitz.test.ThrashTest" | |
730 classpathref="allclasses"> | |
731 <arg value="5"/> | |
732 <arg value="4000"/> | |
733 <arg value="100"/> | |
734 </java> | |
735 </target> | |
736 | |
737 <target name="load" depends="compile" | 742 <target name="load" depends="compile" |
738 description="test basic recovery behaviour - step I"> | 743 description="test basic recovery behaviour - step I"> |
739 <java classname="org.dancres.blitz.test.Load" | 744 <java classname="org.dancres.blitz.test.Load" |
740 classpathref="allclasses"> | 745 classpathref="allclasses"> |
741 <arg value="150"/> | 746 <arg value="150"/> |