[a065d0]: testing / tests / dacapo / build.xml Maximize Restore History

Download this file

build.xml    77 lines (65 with data), 3.2 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
<!--
~ This file is part of the Jikes RVM project (http://jikesrvm.org).
~
~ This file is licensed to You under the Eclipse Public License (EPL);
~ You may not use this file except in compliance with the License. You
~ may obtain a copy of the License at
~
~ http://www.opensource.org/licenses/eclipse-1.0.php
~
~ See the COPYRIGHT.txt file distributed with this work for information
~ regarding copyright ownership.
-->
<project name="dacapo" default="test" basedir=".">
<condition property="test.time.limit" value="1800">
<equals arg1="${test.mode}" arg2="performance"/>
</condition>
<condition property="test.time.limit" value="6000" else="1200">
<equals arg1="${test.mode}" arg2="gcstress"/>
</condition>
<import file="../../../build/tests.xml"/>
<ant antfile="../../../build/components/dacapo.xml" target="ensure" inheritall="false" inheritrefs="false"/>
<property file="${components.file}"/>
<property name="test.class.path" value="${dacapo.jar}"/>
<target name="extract-xalan-jar" depends="init">
<test-file name="dacapo.jar" location="${jikesrvm.dir}/.ant.properties"/>
<unzip src="${dacapo.jar}" dest="${build.tests.dir}">
<patternset>
<include name="xalan.jar"/>
</patternset>
</unzip>
</target>
<macrodef name="dacapo">
<attribute name="name"/>
<attribute name="timeLimit" default=""/>
<attribute name="heapsize" default=""/>
<attribute name="requires-display" default="false"/>
<attribute name="bootclasspath" default=""/>
<sequential>
<rvm tag="@{name}" class="Harness" requires-display="@{requires-display}" args="@{name}" timeLimit="@{timeLimit}" maxHeapSize="@{heapsize}" bootclasspath="@{bootclasspath}"/>
<outputSingleStatisticResults tag="@{name}" key="time" pattern="===== DaCapo @{name} PASSED in (.*) msec ====="/>
</sequential>
</macrodef>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Run the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="test" depends="init,extract-xalan-jar">
<test-file name="dacapo.jar" location="${jikesrvm.dir}/.ant.properties"/>
<startResults/>
<!-- Heapsize set to 6x minimum heap size with MarkCompact -->
<dacapo name="antlr" heapsize="120"/>
<dacapo name="bloat" heapsize="150"/>
<dacapo name="chart" heapsize="240" requires-display="true"/>
<dacapo name="eclipse" heapsize="400"/>
<dacapo name="fop" heapsize="180"/>
<dacapo name="hsqldb" heapsize="500"/>
<dacapo name="jython" heapsize="200"/>
<dacapo name="luindex" heapsize="120"/>
<dacapo name="lusearch" heapsize="300"/>
<dacapo name="pmd" heapsize="200"/>
<dacapo name="xalan" heapsize="150" bootclasspath="-Xbootclasspath/p:xalan.jar" />
<finishResults/>
</target>
</project>