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

Download this file

build.xml    113 lines (96 with data), 4.5 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
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!--
~ 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="jni" default="test" basedir=".">
<property name="test.max.heapsize" value="64"/>
<condition property="test.time.limit" value="1000" else="180">
<equals arg1="${test.mode}" arg2="gcstress"/>
</condition>
<import file="../../../build/tests.xml"/>
<property name="main.java" location="${basedir}/src"/>
<property name="build.classes" location="${build.tests.dir}/classes"/>
<property name="build.native" location="${build.tests.dir}/native"/>
<property name="test.class.path" value="${build.classes}"/>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Macro to run the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<macrodef name="jniTest">
<attribute name="class"/>
<sequential>
<javah classpath="${build.classes}" outputFile="${build.native}/@{class}.h">
<class name="@{class}"/>
</javah>
<exec executable="${c.exe}" failonerror="true">
<arg line="${shld.args}"/>
<arg value="-I${build.native}"/>
<arg value="-I${jikesrvm.dir}/include"/>
<arg value="-o"/>
<arg value="${build.tests.dir}/${target.dll-prefix}@{class}${target.jni-suffix}"/>
<arg value="${main.java}/@{class}.c"/>
</exec>
<rvm tag="@{class}" class="@{class}" args="-quiet" rvmArgs="-Djava.library.path=${build.tests.dir}"/>
<findStatistic tag="@{class}" pattern="PASS:" key="pass"/>
<outputResults tag="@{class}"/>
</sequential>
</macrodef>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Compile the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="compile" depends="init">
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.native}"/>
<javac srcdir="${main.java}" destdir="${build.classes}" debug="true">
<exclude name="StackResize.java"/>
<exclude name="NativeThreadsWorker.java"/>
<exclude name="tNativeThreads.java"/>
<classpath>
<pathelement path="${test.rvm.dir}/jksvm.jar"/>
<pathelement path="${test.rvm.dir}/rvmrt.jar"/>
</classpath>
</javac>
</target>
<!-- **************************************************************************** -->
<!-- * * -->
<!-- * Run the tests * -->
<!-- * * -->
<!-- **************************************************************************** -->
<target name="test" depends="compile">
<startResults/>
<!-- JNI 1.1 -->
<jniTest class="Allocation"/>
<jniTest class="ArgumentPassing"/>
<jniTest class="ArrayFunctions"/>
<jniTest class="ClassQuery"/>
<jniTest class="CriticalCopy"/>
<jniTest class="FieldAccess"/>
<jniTest class="MethodInvocation"/>
<jniTest class="MonitorTest"/>
<jniTest class="NativeException"/>
<jniTest class="NullIdentity"/>
<jniTest class="StringFunctions"/>
<jniTest class="TestGC"/>
<jniTest class="TestNestedGC"/>
<jniTest class="t3GT3"/>
<!-- JNI 1.2 -->
<jniTest class="JNI12"/>
<jniTest class="StringRegion"/>
<jniTest class="JNI_OnLoad"/>
<!-- JNI 1.4 -->
<jniTest class="TestJNIDirectBuffers"/>
<jniTest class="TestJNIGetFieldID"/>
<finishResults/>
</target>
</project>