You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2007/05/11 05:30:05 UTC

svn commit: r537075 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test: ./ adaptor.xml parameters.xml

Author: smishura
Date: Thu May 10 20:30:04 2007
New Revision: 537075

URL: http://svn.apache.org/viewvc?view=rev&rev=537075
Log:
Apply patch from HARMONY-3759:
([buildtest][cc/ci] project to run classlib tests on DRLVM under CC/CI)

Added:
    harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/
    harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml   (with props)

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml?view=auto&rev=537075
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml Thu May 10 20:30:04 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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. -->
+
+<!-- ====================================================================== 
+                    BT Adaptor Executing CLASSLIB Unit Tests
+     ====================================================================== -->
+<project name="classlib-test" default="run" basedir=".">
+
+    <property name="classlib-test.results.dir"
+              value="${results.dir}/${suite.name}"/>
+
+    <!-- the default value for JRE options -->
+    <property name="jre.options" value="-showversion"/>
+
+    <!-- do setup -->
+    <target name="setup">
+        <mkdir dir="${classlib-test.results.dir}"/>
+    </target>
+
+    <!-- do run -->
+    <target name="run">
+        <!-- remove old results (they have been archived after the run) -->
+        <delete quiet="true" verbose="false">
+            <fileset dir="${classlib-test.results.dir}" includes="**/*"/>
+        </delete>
+
+        <!-- time of the current test run -->
+        <tstamp>
+            <format property="classlib-test.run.time" pattern="yyyyMMdd_HHmm"/>
+        </tstamp>
+
+        <exec-ant dir="${classlib-test.trunk.dir}"
+                  targets="test"
+                  failonerror="false"
+                  failproperty="classlib-test.run.failed">
+            <jvmarg line="-Xmx800M"/>
+            <sysproperty key="test.jre.home"
+                            value="${classlib-test.tested.jre}"/>
+            <sysproperty key="tested.jre.options"
+                            value="${jre.options}"/>
+        </exec-ant>
+
+        <!-- define the resulting files -->
+        <fileset id="classlib-test.results.set"
+                 dir="${classlib-test.trunk.dir}/build/test_report"
+                 includes="TEST-*.xml">
+            <date datetime="${classlib-test.run.time}"
+                  pattern="yyyyMMdd_HHmm"
+                  when="after"/>
+        </fileset>
+
+        <copy todir="${classlib-test.results.dir}">
+            <fileset refid="classlib-test.results.set"/>
+            <packagemapper from="*" to="*"/>
+        </copy>
+
+        <!-- store the results in an archive -->
+        <zip destfile="${results.dir}/${suite.name}_${classlib-test.run.time}.zip"
+             basedir="${classlib-test.results.dir}"/>
+
+        <fail message="There were CLASSLIB Unit Test failures."
+              if="classlib-test.run.failed"/>
+    </target>
+
+</project>
+

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/adaptor.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml?view=auto&rev=537075
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml Thu May 10 20:30:04 2007
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- 
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You 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. 
+-->
+
+<parameters depends="classlib,drlvm">
+
+    <required>
+        <tested.jre
+            description="Path to JRE under test"
+            value="${drlvm.parameters.shared.jre.dir}"/>
+        <trunk.dir
+            description="Path to CLASSLIB trunk directory"
+            value="${classlib.parameters.shared.trunk.dir}"/>
+    </required>
+
+    <optional>
+        <tested.jre.options
+            description="Options for tested JRE"
+            value="${jre.options}"/>
+    </optional>
+
+    <cc
+        results="${classlib-test.results.dir}"
+    />
+
+</parameters>

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/classlib-test/parameters.xml
------------------------------------------------------------------------------
    svn:eol-style = native