Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/debugtools/DDR_VM/test.xml
5986 views
1
<?xml version="1.0" encoding="UTF-8"?>
2
3
<!--
4
Copyright (c) 2010, 2017 IBM Corp. and others
5
6
This program and the accompanying materials are made available under
7
the terms of the Eclipse Public License 2.0 which accompanies this
8
distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
or the Apache License, Version 2.0 which accompanies this distribution and
10
is available at https://www.apache.org/licenses/LICENSE-2.0.
11
12
This Source Code may also be made available under the following
13
Secondary Licenses when the conditions for such availability set
14
forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
General Public License, version 2 with the GNU Classpath
16
Exception [1] and GNU General Public License, version 2 with the
17
OpenJDK Assembly Exception [2].
18
19
[1] https://www.gnu.org/software/classpath/license.html
20
[2] http://openjdk.java.net/legal/assembly-exception.html
21
22
SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
23
-->
24
25
<project name="J9DDR Tests" default="help">
26
27
<!-- This Ant build exists to run tests against DDR. It is run separately
28
from the build (and doesn't expect the source to be checked out, for example)
29
so is separate from the build.xml -->
30
31
<property name="output.dir" value="${user.dir}/output/"/>
32
<property name="sdk.dir" value="./sdk"/>
33
<property name="sdk.executable" value="${sdk.dir}/jre/bin/java.exe"/>
34
<property name="tck.dir" value="${output.dir}/tck"/>
35
<property name="tck.core.dir" value="${tck.dir}/cores"/>
36
<property name="tck.core.file" value="${tck.core.dir}/tck.core.dmp"/>
37
<property name="tck.config.file" value="tck.properties"/>
38
<property name="tck.output.dir" value="${tck.dir}/output"/>
39
<property name="tck.junit.output.dir" value="${tck.dir}/junit"/>
40
<property name="tck.testlist.file" value="testlist.txt"/>
41
<property name="tck.testlist" value="${tck.junit.output.dir}/${tck.testlist.file}"/>
42
43
<property name="j9_core_jar" value="j9ddr-core.jar"/>
44
<property name="j9_core_tests_jar" value="j9ddr-core-tests.jar"/>
45
<property name="ddr_dtfj_jar" value="j9ddr-dtfj.jar"/>
46
<property name="ddr_dtfj_tests_jar" value="j9ddr-dtfj-tests.jar"/>
47
<property name="dtfj-interface.jar" value="dtfj-interface.jar"/>
48
<property name="tck-pkg.jar" value="dtfj.pkg.tck-head.jar"/>
49
<property name="junit.jar" value="junit.jar"/>
50
51
<path id="tck.class.path">
52
<pathelement location="${j9_core_jar}"/>
53
<pathelement location="${ddr_dtfj_jar}"/>
54
<pathelement location="${ddr_dtfj_tests_jar}"/>
55
<pathelement location="${dtfj-interface.jar}"/>
56
<pathelement location="${tck-pkg.jar}"/>
57
<pathelement location="${junit.jar}"/>
58
</path>
59
60
<target name="help">
61
<echo>DDR Test Script
62
63
Expects to have the DDR build artifacts in the current directory.
64
65
Targets:
66
TCK - runs the DTFJ TCK
67
</echo>
68
</target>
69
70
<target name="TCK" depends="clean,TCK.setup">
71
<taskdef resource="com/ibm/dtfj/anttasks/antlib.xml">
72
<classpath refid="tck.class.path"/>
73
</taskdef>
74
75
<echo>Writing config file</echo>
76
77
<propertyfile
78
file="${tck.config.file}"
79
comment="TCK configuration">
80
<entry key="tck.testsuite" value="all"/>
81
<entry key="tck.dumpcreator.class" value="ibm.j9.dumpcreators.SystemDumpCreator"/>
82
<entry key="tck.imagecreator.class" value="com.ibm.j9ddr.dtfj.tck.ImageCreator"/>
83
<entry key="tck.dumpcreator.launcher" value="${sdk.executable}"/>
84
<entry key="env.IBM_JAVA_OPTIONS" value="-Xdump:system:defaults:file=&quot;${tck.core.file}&quot;"/>
85
<!--TODO: Make this support 64 bit-->
86
<entry key="wordsize" value="${wordsize}"/>
87
</propertyfile>
88
89
<!-- Create the dump -->
90
91
<echo>Generating TCK dump</echo>
92
93
<java fork="true" jvm="${sdk.executable}" classname="com.ibm.dtfj.tck.harness.TCKLauncher" failonerror="true">
94
<jvmarg value="-Dtck.output=${tck.output.dir}"/>
95
<jvmarg value="-Djunit.output=${tck.junit.output.dir}" />
96
97
<arg value="-testconfig" />
98
<arg value="${tck.config.file}" />
99
<arg value="-dumponly" />
100
101
<classpath refid="tck.class.path"/>
102
103
</java>
104
105
<!--Create a test list-->
106
<java fork="true" jvm="${sdk.executable}" classname="com.ibm.dtfj.tck.harness.TCKFilter" failonerror="true">
107
<arg value="${tck.testlist}" />
108
<classpath refid="tck.class.path"/>
109
</java>
110
111
<!-- Run some tests -->
112
<junit fork="true" showoutput="true" haltonfailure="false" jvm="${sdk.executable}" forkmode="once" dir="${tck.output.dir}">
113
<classpath refid="tck.class.path"/>
114
115
<jvmarg value="-Dsystem.dump=${tck.core.file}"/>
116
<jvmarg value="-Dtck.config.file=${tck.config.file}"/>
117
118
<formatter type="plain" />
119
<formatter type="xml" />
120
121
<batchtest todir="${tck.junit.output.dir}">
122
<tckdef verbose="true" usefirstfile="true" testlist="${tck.testlist}">
123
<property name="tck.standalone" value="false" />
124
<property name="vendor" value="ibm" />
125
<property name="vmtype" value="j9" />
126
<property name="version" value="1.5.0" />
127
<property name="wordsize" value="${wordsize}" />
128
<property name="dumptype" value="ddr" />
129
<property name="tck.testsuite" value="all" />
130
<property name="tck.imagecreator.class" value="com.ibm.j9ddr.dtfj.tck.ImageCreator"/>
131
</tckdef>
132
</batchtest>
133
</junit>
134
</target>
135
136
<target name="clean">
137
<delete dir="${output.dir}" includeemptydirs="true" />
138
</target>
139
140
<target name="TCK.setup">
141
<mkdir dir="${output.dir}"/>
142
<mkdir dir="${tck.core.dir}"/>
143
<mkdir dir="${tck.output.dir}"/>
144
<mkdir dir="${tck.junit.output.dir}"/>
145
</target>
146
147
<target name="download">
148
<description>Downloads the latest DDR packages</description>
149
150
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20Tools/build_tools/assemble_ddr_build/assemble_ddr_vm.pl" dest="assemble_ddr_vm.pl"/>
151
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-core.jar" dest="j9ddr-core.jar"/>
152
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-corereaders.jar" dest="j9ddr-corereaders.jar"/>
153
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-dtfj.jar" dest="j9ddr-dtfj.jar"/>
154
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/TCK/job/dtfj.pkg.tck-head/lastSuccessfulBuild/artifact/DTFJ%20TCK%20Package/output/dist/dtfj.pkg.tck-head.jar" dest="dtfj.pkg.tck-head.jar"/>
155
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-dtfj-tests.jar" dest="j9ddr-dtfj-tests.jar"/>
156
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-core-tests.jar" dest="j9ddr-core-tests.jar"/>
157
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/output/libs/j9ddr-corereaders-tests.jar" dest="j9ddr-corereaders-tests.jar"/>
158
<get src="http://chevalier.hursley.ibm.com:8180/hudson/view/J9DDR/job/j9ddr.build/lastSuccessfulBuild/artifact/J9DDR%20J9%20Core/lib/junit.jar" dest="junit.jar"/>
159
</target>
160
161
</project>
162
163