Alexey Ushakov | 37ef97c | 2016-09-09 13:07:47 +0300 | [diff] [blame] | 1 | <project name="PerfTests" default="run" basedir="."> |
| 2 | <description> |
| 3 | JBRE Performance tests |
| 4 | </description> |
| 5 | <property name="src" location="src"/> |
| 6 | <property name="lib" location="lib"/> |
| 7 | <property name="build" location="build"/> |
Alexey Ushakov | a55eae2 | 2016-09-09 15:11:59 +0300 | [diff] [blame^] | 8 | <property name="test_jvm" location="../../../jbsdk/jdk/Contents/Home/bin/java"/> |
Alexey Ushakov | 37ef97c | 2016-09-09 13:07:47 +0300 | [diff] [blame] | 9 | |
| 10 | <target name="init"> |
| 11 | <tstamp/> |
| 12 | <mkdir dir="${build}"/> |
| 13 | </target> |
| 14 | |
| 15 | <target name="compile" depends="init" |
| 16 | description="compile the source"> |
| 17 | <javac srcdir="${src}" destdir="${build}"> |
| 18 | <classpath> |
| 19 | <pathelement location="${lib}/junit-4.12.jar" /> |
| 20 | </classpath> |
| 21 | </javac> |
| 22 | </target> |
| 23 | |
| 24 | <target name="run" depends="compile"> |
Alexey Ushakov | a55eae2 | 2016-09-09 15:11:59 +0300 | [diff] [blame^] | 25 | <junit printsummary="on" haltonfailure="no" showoutput="on" fork="yes" jvm="${test_jvm}"> |
Alexey Ushakov | 37ef97c | 2016-09-09 13:07:47 +0300 | [diff] [blame] | 26 | <classpath> |
| 27 | <pathelement location="${lib}/junit-4.12.jar" /> |
| 28 | <pathelement location="${lib}/hamcrest-core-1.3.jar" /> |
| 29 | <pathelement location="${build}"/> |
| 30 | </classpath> |
Alexey Ushakov | a55eae2 | 2016-09-09 15:11:59 +0300 | [diff] [blame^] | 31 | <formatter type="plain" /> |
Alexey Ushakov | 37ef97c | 2016-09-09 13:07:47 +0300 | [diff] [blame] | 32 | |
| 33 | <test name="performance.text.LCDTextAreaScrollingTest"/> |
| 34 | <test name="performance.text.GreyscaleTextAreaScrollingTest"/> |
| 35 | </junit> |
| 36 | </target> |
| 37 | |
| 38 | <target name="clean" |
| 39 | description="clean up"> |
| 40 | <delete dir="${build}"/> |
| 41 | </target> |
| 42 | </project> |