blob: 74a713834f80aa72ec5844d3117030977a152a67 [file] [log] [blame]
<project name="QualityTests" default="run" basedir=".">
<description>
JBRE Quality tests
</description>
<condition property="isWindows">
<os family="windows" />
</condition>
<condition property="isLinux">
<os family="unix" />
</condition>
<condition property="isMac">
<os family="mac" />
</condition>
<property name="src" location="../../../test/jbu"/>
<property name="lib" location="lib"/>
<property name="testdata" location="../../../test/jbu/testdata"/>
<property name="build" location="build"/>
<target name="set_test_jvm_mac" if="isMac">
<property name="test_jvm" location="../../../jbsdk/jdk/Contents/Home/bin/java"/>
<property name="test_javac" location="../../../jbsdk/jdk/Contents/Home/bin/javac"/>
</target>
<target name="set_test_jvm_linux" if="isLinux">
<property name="test_jvm" location="../../../jbsdk/bin/java"/>
<property name="test_javac" location="../../../jbsdk/bin/javac"/>
</target>
<target name="set_test_jvm_windows" if="isWindows">
<property name="test_jvm" location="../../../jbsdk/bin/java.exe"/>
<property name="test_javac" location="../../../jbsdk/bin/javac.exe"/>
</target>
<target name="init">
<tstamp/>
<mkdir dir="${build}"/>
</target>
<target name="compile" depends="init,set_test_jvm_mac, set_test_jvm_windows, set_test_jvm_linux"
description="compile the source">
<javac srcdir="${src}" destdir="${build}" executable="${test_javac}" fork="yes" includeantruntime="false">
<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>
<jvmarg value="-Dtestdata=${testdata}" />
<formatter type="plain" />
<test name="quality.text.DroidFontTest"/>
</junit>
</target>
<target name="clean"
description="clean up">
<delete dir="${build}"/>
</target>
</project>