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

Download this file

build.xml    81 lines (67 with data), 4.1 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
<!--
~ 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="soot" default="test" basedir=".">
<condition property="test.time.limit" value="1200">
<equals arg1="${test.mode}" arg2="performance"/>
</condition>
<condition property="test.time.limit" value="22000" else="600">
<equals arg1="${test.mode}" arg2="gcstress"/>
</condition>
<property name="test.max.heapsize" value="200"/>
<import file="../../../build/tests.xml"/>
<property name="main.java" location="src"/>
<property name="build.classes" location="${build.tests.dir}/classes"/>
<property name="dacapo.jar" value="${external.lib.dir}/dacapo/dacapo-2006-10.jar"/>
<property name="soot.dir" location="${external.lib.dir}/soot-2.2.3"/>
<property name="test.class.path" value="${soot.dir}/sootclasses-2.2.3.jar:${soot.dir}/jasminclasses-2.2.3.jar"/>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * 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 * -->
<!-- * * -->
<!-- **************************************************************************** -->
<!-- Partially replicated from build.xml. Yuck. -->
<!-- The soot test needs to know which class libraries we are using because it impacts the test command line -->
<property name="classlib.provider" value="GNU Classpath"/>
<condition property="soot.vmlibs" value="${test.rvm.dir}/jksvm.jar:${test.rvm.dir}/rvmrt.jar:${test.rvm.dir}/lib/luni.jar:${test.rvm.dir}/lib/security.jar:${test.rvm.dir}/lib/annotation.jar:${test.rvm.dir}/lib/luni-kernel-stubs.jar:${test.rvm.dir}/lib/nio.jar:${test.rvm.dir}/lib/nio_char.jar">
<equals arg1="${classlib.provider}" arg2="Harmony"/>
</condition>
<condition property="soot.vmlibs" value="${test.rvm.dir}/jksvm.jar:${test.rvm.dir}/rvmrt.jar">
<equals arg1="${classlib.provider}" arg2="GNU Classpath"/>
</condition>
<target name="test" depends="compile">
<test-property name="external.lib.dir" location="${jikesrvm.dir}/.ant.properties"/>
<test-file name="soot.dir" location="${jikesrvm.dir}/.ant.properties"/>
<test-file name="dacapo.jar" location="${jikesrvm.dir}/.ant.properties"/>
<condition property="soot.class" value="Harness" else="Hello">
<equals arg1="${test.mode}" arg2="performance"/>
</condition>
<condition property="soot.class.path" value="${dacapo.jar}" else="${build.classes}">
<equals arg1="${test.mode}" arg2="performance"/>
</condition>
<startResults/>
<rvm tag="soot.Main"
class="soot.Main"
args="-O -time -x org.jikesrvm -x org.mmtk -x org.vmmagic -d ${build.tests.dir} --soot-classpath ${soot.vmlibs}:${soot.class.path} --app ${soot.class} -f J"/>
<outputSingleStatisticResults tag="soot.Main" key="time" pattern="totalTime:(.*)s \(100.0\%\)"/>
<finishResults/>
</target>
</project>