blob: e7081ab09690be7bf570ed86bcc9b318646e6a5a [file] [log] [blame]
<project name="PerfTests" default="run" basedir=".">
<description>
JBRE Performance tests
</description>
<property name="src" location="src"/>
<property name="lib" location="lib"/>
<property name="build" location="build"/>
<property name="test_jvm" location="../../../jbsdk/jdk/Contents/Home/bin/java"/>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init"
description="compile the source">
<javac srcdir="${src}" destdir="${build}">
<classpath>
<pathelement location="${lib}/junit-4.12.jar" />
</classpath>
</javac>
</target>
<target name="run" depends="compile">
<junit printsummary="on" haltonfailure="no" showoutput="on" fork="yes" jvm="${test_jvm}">
<classpath>
<pathelement location="${lib}/junit-4.12.jar" />
<pathelement location="${lib}/hamcrest-core-1.3.jar" />
<pathelement location="${build}"/>
</classpath>
<formatter type="plain" />
<test name="performance.text.LCDTextAreaScrollingTest"/>
<test name="performance.text.GreyscaleTextAreaScrollingTest"/>
</junit>
</target>
<target name="clean"
description="clean up">
<delete dir="${build}"/>
</target>
</project>