You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by cc...@apache.org on 2009/03/16 16:41:28 UTC
svn commit: r754942 - in
/incubator/kato/trunk/import/org.apache.kato.builder.tck: ./ .settings/
configs/ configs/common/ lib/ machine-configs/
Author: ccristal
Date: Mon Mar 16 16:41:27 2009
New Revision: 754942
URL: http://svn.apache.org/viewvc?rev=754942&view=rev
Log:
Initial code contribution from IBM.
Added:
incubator/kato/trunk/import/org.apache.kato.builder.tck/
incubator/kato/trunk/import/org.apache.kato.builder.tck/.project
incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/
incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/org.eclipse.core.resources.prefs
incubator/kato/trunk/import/org.apache.kato.builder.tck/build.properties
incubator/kato/trunk/import/org.apache.kato.builder.tck/build.xml
incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/
incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/
incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/build.properties
incubator/kato/trunk/import/org.apache.kato.builder.tck/lib/
incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/
incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/build.properties
incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/example-all.properties
incubator/kato/trunk/import/org.apache.kato.builder.tck/master.xml
incubator/kato/trunk/import/org.apache.kato.builder.tck/reporter.xml
incubator/kato/trunk/import/org.apache.kato.builder.tck/slave.xml
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/.project
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/.project?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/.project (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/.project Mon Mar 16 16:41:27 2009
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.kato.builder.tck</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/org.eclipse.core.resources.prefs
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/org.eclipse.core.resources.prefs?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/org.eclipse.core.resources.prefs (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/.settings/org.eclipse.core.resources.prefs Mon Mar 16 16:41:27 2009
@@ -0,0 +1,10 @@
+#Fri Jan 30 14:26:57 GMT 2009
+eclipse.preferences.version=1
+encoding//configs/common/build.properties=ISO-8859-1
+encoding//machine-configs/build.properties=ISO-8859-1
+encoding//machine-configs/example-all.properties=ISO-8859-1
+encoding/build.properties=ISO-8859-1
+encoding/build.xml=UTF-8
+encoding/master.xml=UTF-8
+encoding/reporter.xml=UTF-8
+encoding/slave.xml=UTF-8
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/build.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/build.properties?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/build.properties (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/build.properties Mon Mar 16 16:41:27 2009
@@ -0,0 +1,24 @@
+#-------------------------------------------------------------------------------
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#-------------------------------------------------------------------------------
+workspace=..
+project=builder.tck
+builder=${workspace}/builder.tck
+lib=${builder}/lib
+output=${user.home}/kato.output
+tck.output=${output}/tck.output
+junit.output=${tck.output}/junit
+tck.emma.output=${tck.output}/emma
+tck.files=${output}/latest/dist/dtfj-support
+machine.config=${builder}/machine-configs/${tck.machine.type}/build.properties
+test.url=http://localhost:8080/job/builder.dtfj/lastSuccessfulBuild/artifact/kato.output/latest/dist/dtfj-support/
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/build.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/build.xml?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/build.xml (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/build.xml Mon Mar 16 16:41:27 2009
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- ======================================================================
+ 28 Aug 2008 09:17:51
+
+ Run DTFJ TCK and execute against latest DTFJ
+
+ ====================================================================== -->
+<project name="builder.tck" default="run-tck">
+ <description>
+ Execute DTFJ TCK against latest DTFJ
+ </description>
+
+ <property file="./build.properties" />
+ <property file="${builder}/build.properties" />
+ <property file="${user.home}/tck.properties" />
+
+ <path id="tasks.lib">
+ <pathelement location="${lib}/emma.jar" />
+ <pathelement location="${lib}/ant-contrib-1.0b3.jar" />
+ <pathelement location="${lib}/emma_ant.jar" />
+ </path>
+
+ <taskdef resource="emma_ant.properties" classpathref="tasks.lib" />
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="tasks.lib" />
+
+
+ <!-- Helper target for local work
+ set property "filename" in ant launcher to absolete path of config file
+ -->
+
+ <target name="run-one-pass">
+ <antcall target="tck-pass">
+ <param name="config-file" value="${filename}" />
+ </antcall>
+ <antcall target="consolidate-emma" />
+
+ <antcall target="junit-reports" />
+
+ </target>
+
+ <target name="run-tck">
+
+ <echo>Running TCK Run ${buildname}</echo>
+ <foreach target="tck-pass" param="config-file">
+ <fileset dir="configs" />
+ </foreach>
+
+
+ <antcall target="consolidate-emma" />
+
+ <antcall target="junit-reports" />
+
+ </target>
+
+
+
+ <target name="consolidate-emma">
+
+
+
+
+ <!-- Generate Emma reports. -->
+ <emma>
+ <report sort="+name" metrics="method:70,block:80,line:80,class:100">
+ <fileset dir="${emma.metadata.dir}">
+ <include name="*.emma" />
+ </fileset>
+
+ <xml outfile="${emma.metadata.dir}/coverage.xml" depth="method" />
+ <html outfile="${emma.metadata.dir}/coverage.html" depth="method" />
+ </report>
+ </emma>
+ </target>
+
+ <target name="tck-pass">
+
+ <property file="${config-file}" />
+
+ <antcall target="create-dump">
+ <param name="run-jvm" value="${tck.dumpcreator.launcher}" />
+ <param name="run-vendor" value="${vendor}" />
+ <param name="run-vm" value="${vmtype}" />
+ <param name="run-version" value="${version}" />
+ <param name="run-type" value="${tck.testsuite}" />
+ <param name="run-dump" value="${dumptype}" />
+ <param name="run-config" value="${config-file}" />
+ </antcall>
+
+ <antcall target="run-tests">
+ <param name="run-vendor" value="${vendor}" />
+ <param name="run-vm" value="${vmtype}" />
+ <param name="run-version" value="${version}" />
+ <param name="run-type" value="${tck.testsuite}" />
+ <param name="run-dump" value="${dumptype}" />
+ <param name="run-config" value="${config-file}" />
+ </antcall>
+
+ </target>
+
+ <target name="create-dump">
+
+ <echo>TCK Dump Create: Vendor=${run-vendor} JVM=${run-vm} Version=${run-version} Testarea=${run-type} Config=${run-config}</echo>
+
+ <java fork="true" jvm="${run-jvm}" classname="com.ibm.dtfj.tck.harness.TCKLauncher" failonerror="true">
+
+ <arg value="-testconfig" />
+ <arg value="${run-config}" />
+ <arg value="-dumponly" />
+
+ <classpath>
+ <pathelement location="${major.emma.jarfile}" />
+ <pathelement location="${tck.tests.jarfile}" />
+ <pathelement location="${tck.jarfile}" />
+ <pathelement location="${junit.path}" />
+ </classpath>
+
+
+ </java>
+
+ </target>
+
+ <target name="run-tests">
+
+ <property name="emma.suffix" value="${os.name}___${os.arch}___${os.version}___${run-vendor}___${run-vm}___${run-version}___${run-type}___${run-dump}" />
+ <echo>Emma results to ${emma.suffix}</echo>
+
+ <zipentry zipfile="${user.home}/kato.output/latest/components/com.ibm.dtfj.tck.harness/dist/com.ibm.dtfj.tck.harness.jar" name="testconfigs/${run-type}.properties" />
+
+ <loadresource property="testcases">
+ <filterchain>
+ <tokenfilter>
+ <replacestring from="." to="/" />
+ <replaceregex pattern=".*$" replace="\0.class " />
+ </tokenfilter>
+ <striplinebreaks />
+ </filterchain>
+
+ <zipentry zipfile="${user.home}/kato.output/latest/components/com.ibm.dtfj.tck.harness/dist/com.ibm.dtfj.tck.harness.jar" name="testconfigs/${run-type}.properties" />
+ </loadresource>
+
+ <!-- run the testcases -->
+ <mkdir dir="${junit.output}" />
+
+ <junit>
+ <classpath>
+ <pathelement location="${major.emma.jarfile}" />
+ <pathelement location="${tck.jarfile}" />
+ <pathelement location="${tck.tests.jarfile}" />
+ <pathelement location="${junit.path}" />
+ <pathelement location="${emma.path}" />
+ </classpath>
+
+ <jvmarg value="-Demma.coverage.out.file=${emma.metadata.dir}/coverage.${emma.suffix}.emma" />
+ <jvmarg value="-Demma.coverage.out.merge=true" />
+
+ <formatter type="xml" extension="___${emma.suffix}.xml" />
+
+
+ <batchtest fork="yes" filtertrace="on" todir="${junit.output}">
+ <zipfileset src="${tck.tests.jarfile}" includes="${testcases}" />
+
+ </batchtest>
+
+ </junit>
+
+
+ <replace dir="${junit.output}" token="classname="" value="classname="${run-vendor}.${run-vm}.${run-version}.${run-type}." includes="*.${run-vendor}.${run-vm}.${run-version}.${run-type}.xml" />
+
+
+ </target>
+
+ <target name="junit-reports">
+ <mkdir dir="${junit.output}/html" />
+ <junitreport todir="${junit.output}/html">
+ <fileset dir="${junit.output}">
+ <include name="TEST-*.xml" />
+ </fileset>
+ <report todir="${junit.output}/html" format="frames" styledir="lib">
+ </report>
+
+ </junitreport>
+
+ <echo>Local junit results available at ${junit.output}/html/index.html</echo>
+
+ </target>
+
+
+</project>
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/build.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/build.properties?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/build.properties (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/configs/common/build.properties Mon Mar 16 16:41:27 2009
@@ -0,0 +1,17 @@
+#-------------------------------------------------------------------------------
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#-------------------------------------------------------------------------------
+tck.url=http://localhost:8080/job/builder.dtfj/lastSuccessfulBuild/artifact/kato.output/latest/dist/dtfj-support/tck.zip
+lib=./lib
+tck.zip=${lib}/tck.zip
+slave=local
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/build.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/build.properties?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/build.properties (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/build.properties Mon Mar 16 16:41:27 2009
@@ -0,0 +1,19 @@
+#-------------------------------------------------------------------------------
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#-------------------------------------------------------------------------------
+# Properties file for builds.
+
+test.configs=example-all.properties
+run.dir=../run
+tck.files=../tck-files
+
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/example-all.properties
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/example-all.properties?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/example-all.properties (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/machine-configs/example-all.properties Mon Mar 16 16:41:27 2009
@@ -0,0 +1,87 @@
+#-------------------------------------------------------------------------------
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#-------------------------------------------------------------------------------
+#
+# Copy this file and change as required.
+# use file name as first parameter to TCKLauncher
+# File will be copied into tck working directory
+#
+#
+# type of testcases to run.
+#
+# Valid values are all | process | javaruntime | javaheap
+#
+# setting is case insensitive.
+#
+# all - to run all types
+# process - to run process tests
+# javaruntime - to run only Java Runtime tests
+# javaheap - to run only Java Heap tests
+
+
+
+#
+# test suite to run
+#
+tck.testsuite=all
+#
+# name of class that implements com.ibm.dtfj.tck.apiIDumpCreator
+#
+tck.dumpcreator.class=
+#
+# name of class that implements com.ibm.dtfj.tck.apiIImageCreator
+#
+tck.imagecreator.class=
+
+#
+# Java executable to be used to create the dump
+#
+tck.dumpcreator.launcher=
+#
+# name of the executable to be used to run the tests
+#
+tck.java.test.executeable.path=
+
+#
+# Example setting for prepending to the bootclasspath of the
+# dump creator launcher process
+#
+tck.dumpcreator.bootclasspath=${dtfj.emma.jar},${emma.jar}
+#
+# Example setting for prepending to the bootclasspath of the
+# image creator launcher process
+#
+tck.imagecreator.bootclasspath=${dtfj.emma.jar},${emma.jar}
+#
+# version of jvm to use
+#
+version=
+
+#
+# jvm type
+#
+vmtype=
+
+#
+# jvm vendor
+#
+
+vendor=
+
+dumptype=
+
+#
+# JVM word size
+#
+wordsize=
+
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/master.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/master.xml?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/master.xml (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/master.xml Mon Mar 16 16:41:27 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- ======================================================================
+ 7 Nov 2008 14:12:36
+
+ project
+ description
+
+ ====================================================================== -->
+<project name="TCKMaster" default="run-slaves">
+
+ <property file="./build.properties" />
+ <property file="${builder}/build.properties" />
+ <property file="${user.home}/tck.properties" />
+
+ <path id="tasks.lib">
+ <pathelement location="${lib}/emma.jar" />
+ <pathelement location="${lib}/ant-contrib-1.0b3.jar" />
+ <pathelement location="${lib}/emma_ant.jar" />
+ </path>
+
+ <taskdef resource="emma_ant.properties" classpathref="tasks.lib" />
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="tasks.lib" />
+
+
+ <!--
+ Runs through slave configs and creates corrisponding entries
+ in the results project
+
+ -->
+ <target name="run-slaves" if="buildrun" >
+
+ <echo>Running Slave Setup for build ${buildrun}</echo>
+ <!-- make a build directory -->
+ <mkdir dir="${rundir}"/>
+
+ <!-- copy in slave files.. -->
+ <copy todir="${rundir}">
+ <fileset dir="${slaveconfigs}"/>
+ </copy>
+
+ </target>
+
+ <target name="setup-slave">
+
+ </target>
+
+</project>
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/reporter.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/reporter.xml?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/reporter.xml (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/reporter.xml Mon Mar 16 16:41:27 2009
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project name="tck reporter" default="report">
+ <description>
+ Report on TCK progress across multiple runs.
+ </description>
+
+ <property file="./build.properties" />
+ <property file="${user.home}/tck.properties" />
+
+ <path id="tasks.lib">
+ <pathelement location="${lib}/emma.jar" />
+ <pathelement location="${lib}/ant-contrib-1.0b3.jar" />
+ <pathelement location="${lib}/emma_ant.jar" />
+ </path>
+
+ <taskdef resource="emma_ant.properties" classpathref="tasks.lib" />
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="tasks.lib" />
+
+ <path id="tck.classpath">
+ <fileset dir="${tck.files}/">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="${lib}/emma.jar" />
+ <pathelement location="${lib}/junit.jar" />
+ </path>
+
+ <target name="download-tck" unless="local.mode">
+ <mkdir dir="${tck.files}" />
+ <get src="${test.url}/tck.tar.gz" dest="${tck.files}/tck.tar.gz" />
+ <untar src="${tck.files}/tck.tar.gz" dest="${tck.files}" compression="gzip" />
+ </target>
+
+ <target name="report" depends="download-tck">
+
+ <java classpathref="tck.classpath" classname="com.ibm.dtfj.tck.results.reporter.TCKConsoleReportsAggregator">
+ <arg file="results" />
+ <arg value="http://localhost:8080/job/Linux%20TCK/lastBuild/consoleText" />
+ <arg value="http://localhost:8080/job/Windows%20TCK/lastBuild/consoleText" />
+ <arg value="http://localhost:8080/job/zOS%20TCK/lastBuild/consoleText" />
+ <arg value="http://localhost:8080/job/AIX%20TCK/lastBuild/consoleText" />
+ <arg value="http://localhost:8080/job/LinuxPPC%20TCK/lastBuild/consoleText" />
+ <arg value="http://localhost:8080/job/Linux64%20TCK/lastBuild/consoleText"/>
+ </java>
+
+
+ <!-- get emma artefacts -->
+ <antcall target="get-emma-data" />
+ <antcall target="consolidate-emma" />
+
+ </target>
+
+ <target name="get-emma-data">
+
+ <get src="http://localhost:8080/job/builder.dtfj/lastSuccessfulBuild/artifact/kato.output/latest/components/dtfj/emma/metadata.emma" dest="metadata.emma" />
+
+ <trycatch>
+ <try>
+ <get src="http://localhost:8080/job/Linux%20TCK/lastBuild/artifact/builder.tck//*zip*/builder.tck.zip" dest="${tck.files}/emma-linux.zip" />
+ <unzip dest=".." overwrite="true" src="${tck.files}/emma-linux.zip" />
+ </try>
+ <catch>
+
+ </catch>
+ </trycatch>
+
+ <trycatch>
+ <try>
+ <get src="http://localhost:8080/job/Windows%20TCK/lastBuild/artifact/builder.tck//*zip*/builder.tck.zip" dest="${tck.files}/emma-windows.zip" />
+ <unzip dest=".." overwrite="true" src="${tck.files}/emma-windows.zip" />
+ </try>
+ <catch>
+ </catch>
+ </trycatch>
+ </target>
+ <target name="consolidate-emma">
+
+
+
+
+ <!-- Generate Emma reports. -->
+ <emma>
+ <report sort="+name" metrics="method:70,block:80,line:80,class:100">
+ <fileset dir=".">
+ <include name="*.emma" />
+ </fileset>
+
+ <xml outfile="coverage.xml" depth="method" />
+ <html outfile="coverage.html" depth="method" />
+ </report>
+ </emma>
+ </target>
+
+</project>
Added: incubator/kato/trunk/import/org.apache.kato.builder.tck/slave.xml
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/import/org.apache.kato.builder.tck/slave.xml?rev=754942&view=auto
==============================================================================
--- incubator/kato/trunk/import/org.apache.kato.builder.tck/slave.xml (added)
+++ incubator/kato/trunk/import/org.apache.kato.builder.tck/slave.xml Mon Mar 16 16:41:27 2009
@@ -0,0 +1,169 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!-- ======================================================================
+ 28 Aug 2008 09:17:51
+
+ Run DTFJ TCK and execute against latest DTFJ
+
+ ====================================================================== -->
+
+<project name="builder.tck" default="run-tck">
+ <description>
+ Execute DTFJ TCK against latest DTFJ
+ </description>
+
+ <property file="./build.properties" />
+ <property file="${user.home}/tck.properties" />
+ <property file="./machine-configs/${tck.machine.type}/build.properties" />
+
+ <path id="tasks.lib">
+ <pathelement location="${lib}/ant-contrib-1.0b3.jar" />
+ </path>
+
+ <taskdef resource="net/sf/antcontrib/antcontrib.properties" classpathref="tasks.lib" />
+
+ <path id="tck.classpath">
+ <fileset dir="${tck.files}/">
+ <include name="*.jar" />
+ </fileset>
+ <pathelement location="${lib}/emma.jar" />
+ <pathelement location="${lib}/junit.jar" />
+ <pathelement location="${lib}/dtfjant.jar" />
+ </path>
+
+
+ <target name="clean-dumps">
+ <delete verbose="true" failonerror="false">
+ <fileset dir=".">
+ <include name="*.zip"/>
+ <include name="*.sdff"/>
+ <include name="*.dmp"/>
+ </fileset>
+ </delete>
+
+ <!-- Deletes JVM dump datasets if running on zOS.
+ A mix of shell scripting and tso commands.
+ -->
+ <exec executable="sh" os="z/OS">
+ <arg value="-c"/>
+ <arg value="tso listcat 2>/dev/null | grep JVM.TDUMP | xargs -I '{}' tso delete "'{}'""/>
+ </exec>
+ </target>
+
+ <!-- Helper target for local work
+ set property "filename" in ant launcher to absolete path of config file
+ -->
+
+ <target name="run-one-pass">
+ <antcall target="tck-pass">
+ <param name="config-file" value="${filename}" />
+ </antcall>
+ <antcall target="consolidate-emma" />
+
+ <antcall target="junit-reports" />
+
+ </target>
+
+ <target name="run-tck" depends="clean-dumps">
+
+ <mkdir dir="${output}"/>
+
+
+ <echo>Running TCK Run ${buildname} on ${tck.machine.type} for ${test.configs}</echo>
+
+ <!-- get tck from build server and place into dtfj dist support dir
+ (only runs if tck.slavemode exists )
+ -->
+
+ <antcall target="download-tck" />
+
+ <!-- get machine specific configs (provides test.configs list )-->
+ <property file="${machine.config}" />
+
+ <!-- for each configuration file mentioned check it exists -->
+
+ <foreach target="check-config-exists" list="${test.configs}" delimiter="," param="config.file"/>
+
+ <!-- for each configuration file mentioned run a tck pass -->
+
+ <foreach target="tck-pass" list="${test.configs}" delimiter="," param="config.file"/>
+
+
+ </target>
+
+ <target name="tck-pass">
+
+ <property name="config.path" value="./machine-configs/${tck.machine.type}/${config.file}" />
+ <echo>TCK Pass using ${config.path}</echo>
+
+ <available file="${config.path}" property="config.exists"/>
+ <fail unless="config.exists" message="Cannot find config file ${config.path}"/>
+
+ <property file="${config.path}" />
+
+ <echo>TCK Dump Create: Vendor=${vendor} JVM=${vmtype} Version=${version} Testarea=${tck.testsuite} Config=${run-config}</echo>
+
+ <property name="emma.suffix" value="${tck.machine.type}___${os.arch}__${wordsize}___${os.version}___${vendor}___${vmtype}___${version}___${tck.testsuite}___${dumptype}" />
+
+ <echo>Emma results to ${emma.suffix}</echo>
+
+ <mkdir dir="${output}"/>
+ <mkdir dir="${junit.output}"/>
+ <mkdir dir="${tck.emma.output}"/>
+
+ <java fork="true" jvm="${tck.dumpcreator.launcher}" classname="com.ibm.dtfj.tck.harness.TCKLauncher" failonerror="true">
+ <jvmarg value="-Ddtfj.emma.jar=${tck.files}/dtfj-emma.jar"/>
+ <jvmarg value="-Demma.jar=${tck.files}/emma.jar"/>
+ <jvmarg value="-Dtck.emma.coverage=true"/>
+ <jvmarg value="-Dtck.emma.output=${tck.emma.output}/coverage.${emma.suffix}.emma"/>
+ <jvmarg value="-Djunit.output=${junit.output}"/>
+ <arg value="-testconfig" />
+ <arg value="${config.path}" />
+
+ <classpath refid="tck.classpath" />
+
+ </java>
+ <copy todir="." verbose="true">
+ <fileset dir="${tck.emma.output}">
+ <include name="*.emma"/>
+ </fileset>
+ </copy>
+
+ <!-- Copy dumps to place visible on workspace Use standard names.
+
+ <property name="tck.dumpfilename" value="${tck.machine.type}.${os.arch}.${vendor}.${vmtype}.${version}.${tck.testsuite}"/>
+ <copy todir="." verbose="true">
+ <fileset dir="${tck.output}"/>
+ <globmapper from="*.<dump file extension>" to="*.${tck.dumpfilename}.<dump file extension>"/>
+ </copy>
+
+ -->
+
+ </target>
+
+ <target name="download-tck" if="tck.slavemode">
+ <mkdir dir="${tck.files}" />
+ <get src="${test.url}/tck.tar.gz" dest="${tck.files}/tck.tar.gz" />
+ <untar src="${tck.files}/tck.tar.gz" dest="${tck.files}" compression="gzip" />
+
+
+ </target>
+
+ <target name="check-config-exists">
+ <property name="config.path" value="./machine-configs/${tck.machine.type}/${config.file}" />
+ <available file="${config.path}" property="config.exists"/>
+ <fail unless="config.exists" message="Cannot find config file [${config.path}]"/>
+ </target>
+</project>