[r12173]: rvmroot / trunk / testing / tests / CaffeineMark / build.xml  Maximize  Restore  History

Download this file

81 lines (60 with data), 3.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<project name="CaffeineMark" default="test" basedir=".">
<condition property="test.time.limit" value="600">
<equals arg1="${test.mode}" arg2="performance"/>
</condition>
<condition property="test.time.limit" value="1500" else="300">
<equals arg1="${test.mode}" arg2="gcstress"/>
</condition>
<property name="test.max.heapsize" value="200"/>
<import file="../../../build/tests.xml"/>
<property name="main.java" location="${basedir}/src"/>
<property name="build.classes" location="${build.tests.dir}/classes"/>
<property name="CaffeineMark.dir" value="${external.lib.dir}/CaffeineMark-3.0"/>
<property name="test.class.path" value="${CaffeineMark.dir}:${build.classes}"/>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Compile the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="compile" depends="init">
<mkdir dir="${build.classes}"/>
<javac srcdir="${main.java}" destdir="${build.classes}" debug="true" classpath="${test.class.path}"/>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Run the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<macrodef name="score">
<attribute name="name"/>
<attribute name="run"/>
<sequential>
<extractStatistic tag="CaffeineMark" key="@{name}.run@{run}" pattern="@{run} @{name} score:\t(.*)"/>
</sequential>
</macrodef>
<target name="test" depends="compile">
<test-property name="external.lib.dir" location="${jikesrvm.dir}/.ant.properties"/>
<test-file name="CaffeineMark.dir" location="${jikesrvm.dir}/.ant.properties"/>
<rvm tag="CaffeineMark" class="RunCaffeine"/>
<startResults/>
<outputTestStart tag="CaffeineMark"/>
<outputStatisticStart/>
<score run="1" name="Sieve"/>
<score run="1" name="Loop"/>
<score run="1" name="Logic"/>
<score run="1" name="String"/>
<score run="1" name="Float"/>
<score run="1" name="Method"/>
<score run="2" name="Sieve"/>
<score run="2" name="Loop"/>
<score run="2" name="Logic"/>
<score run="2" name="String"/>
<score run="2" name="Float"/>
<score run="2" name="Method"/>
<outputStatisticEnd/>
<outputTestResults tag="CaffeineMark"/>
<outputTestEnd/>
<displayTestResults tag="CaffeineMark"/>
<finishResults/>
</target>
</project>

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks