harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r537148 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test: ./ adaptor.xml parameters.xml
Date Fri, 11 May 2007 09:45:53 GMT
Author: smishura
Date: Fri May 11 02:45:53 2007
New Revision: 537148

URL: http://svn.apache.org/viewvc?view=rev&rev=537148
Log:
Apply patch from HARMONY-3766:
([buildtest][cc/ci] project to run drlvm reg.tests under CC/CI)

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

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/adaptor.xml?view=auto&rev=537148
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/adaptor.xml Fri May 11
02:45:53 2007
@@ -0,0 +1,76 @@
+<?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 Harmony DRLVM Regression Tests
+     ====================================================================== -->
+<project name="drlvm-reg-test" default="run" basedir=".">
+
+    <property name="drlvm-reg-test.results.dir" value="${results.dir}/${suite.name}"/>
+
+    <target name="setup">
+        <mkdir dir="${results.dir}/${suite.name}"/>
+    </target>
+    
+    <target name="run">
+        <!-- remove old results (they should be archived after the run) -->
+        <delete quiet="true" verbose="false">
+            <fileset dir="${drlvm-reg-test.results.dir}" includes="**/*"/>
+        </delete>
+
+        <!-- time of the current test run -->
+        <tstamp>
+            <format property="drlvm-reg-test.run.time" pattern="yyyyMMdd_HHmm"/>
+        </tstamp>
+
+        <!-- launch the tests kernel.test -->
+        <exec-ant dir="${built.drlvm.trunk}/build"
+                  file="make/build.xml"
+                  targets="reg.test"
+                  lib="${built.drlvm.trunk}/build/make/tmp"
+                  failonerror="false"
+                  failproperty="drlvm-reg-test.run.failed">
+            <sysproperty key="build.cfg" value="${drlvm.config}"/>
+            <sysproperty key="external.dep.CLASSLIB.loc"
+                         value='${built.classlib.trunk}'/>
+            <sysproperty key="machine.arch" value="${os.arch}"/>
+            <sysproperty key="junit.jar" value="${ext.junit.location}"/>
+        </exec-ant>
+
+        <!-- define the resulting files -->
+        <fileset id="drlvm-reg-test.results.set"
+                 dir="${built.drlvm.trunk}/build"
+                 includes="*${drlvm.config}/**/TEST-*.xml">
+            <date datetime="${drlvm-reg-test.run.time}" 
+                  pattern="yyyyMMdd_HHmm"
+                  when="after"/>
+        </fileset>
+
+        <copy todir="${drlvm-reg-test.results.dir}">
+            <fileset refid="drlvm-reg-test.results.set"/>
+            <packagemapper from="*" to="*"/>
+        </copy>
+
+        <!-- store the results in an artchive -->
+        <zip destfile="${results.dir}/${suite.name}_${drlvm-reg-test.run.time}.zip" 
+             basedir="${drlvm-reg-test.results.dir}"/>
+
+        <fail message="There were drlvm-reg-test failures" 
+              if="drlvm-reg-test.run.failed"/>
+    </target>
+</project>
+

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

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/parameters.xml?view=auto&rev=537148
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/drlvm-reg-test/parameters.xml Fri May
11 02:45:53 2007
@@ -0,0 +1,37 @@
+<?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>
+        <built.drlvm.trunk 
+            description="Path to built drlvm trunk"
+            value="${drlvm.parameters.shared.trunk.dir}" />
+        <built.classlib.trunk
+            description="Path to built classlib trunk" 
+            value="${classlib.parameters.shared.trunk.dir}"/>
+        <drlvm.config
+            description="The built drlvm configuration (debug/release)"
+            value="${drlvm.parameters.shared.build.config}"/>
+    </required>
+
+    <cc 
+        results="${drlvm-reg-test.results.dir}"
+    />
+
+</parameters>

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



Mime
View raw message