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/07/05 11:31:32 UTC

svn commit: r553434 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/reliability: ./ README.txt adaptor.xml parameters.xml

Author: smishura
Date: Thu Jul  5 02:31:31 2007
New Revision: 553434

URL: http://svn.apache.org/viewvc?view=rev&rev=553434
Log:
Apply patch from HARMONY-3539:
([testing] Reliability test suite connection to Build Test infrstructure)

Added:
    harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/
    harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/adaptor.xml   (with props)
    harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/parameters.xml   (with props)

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt?view=auto&rev=553434
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt Thu Jul  5 02:31:31 2007
@@ -0,0 +1,58 @@
+                 ============================================
+                 Reliability test suite automation for BT 2.0
+                 ============================================
+
+---------------
+Archive Content
+---------------
+
+This archive contains adaptor and custom configuration for running Reliability
+test suite under BT 2.0
+
+ +/
+  |-+adaptors/                  - Adaptors connecting test suites to Build Test
+     |
+     |-+reliability/            - Reliability test suite adaptor directory
+        |
+        |--adaptor.xml          - The adaptor
+        |
+        |--parameters.xml       - Parameters file
+        |
+        |--README.txt           - This readme File
+
+
+
+---------------------------------------
+Reliability test suite run under BT 2.0
+---------------------------------------
+
+1. Check out Build Test from SVN:
+
+     svn co -r HEAD -N http://svn.apache.org/repos/asf/harmony/enhanced/buildtest/branches/2.0
+
+2. Install Build Test:
+
+     ant install
+
+3. Perform setup:
+
+     ant -Dtest.suites="classlib,drlvm,reliability" setup
+
+4. Set values of framework properties in generated file:
+
+     framework.local.properties
+
+5. Run the suite on previously built JRE:
+
+     ant -Dtest.suites="classlib,drlvm,reliability" run
+
+6. Run the suite under Cruise Control: 
+
+     ant -Dtest.suites="classlib,drlvm,reliability" run-cc    
+
+
+----------
+Disclaimer
+----------
+
+*) Other brands and names are the property of their respective owners.

Propchange: harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/README.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/adaptor.xml?view=auto&rev=553434
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/adaptor.xml Thu Jul  5 02:31:31 2007
@@ -0,0 +1,106 @@
+<?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 for Reliability Test Suite
+     ====================================================================== -->
+<project name="reliability" default="run" basedir=".">
+
+    <property name="tests.dir"  location="${test.sources.dir}/${suite.name}"/>
+    <property name="work.dir"   location="${checkouts.dir}/${suite.name}"/>
+    <property name="report.dir" location="${results.dir}/${suite.name}"/>
+
+    <!-- Set up the test suite:
+         - updates source code,
+         - sets up required parameters,
+         - does everything needed to start the suite.
+    -->
+    <target name="setup">
+        <log message="============= Adaptor for ${suite.name}: Set Up .."/>
+
+        <!-- update suite sources -->
+        <svn-update-bt path="${tests.dir}"/>
+
+        <condition property="serialize.jar.not.exist">
+            <not>
+                <available file="${ext.cc.location}/lib/serializer-2.7.0.jar"/>
+            </not>
+        </condition>
+
+        <fail message="Required serialize.jar does not exists in ${ext.cc.location}/lib"
+              if="serialize.jar.not.exist"/>
+
+        <exec-ant dir="${tests.dir}"
+                  targets="build">
+            <sysproperty key="target.dir" value="${work.dir}"/>
+        </exec-ant>
+    </target>
+
+    <!-- Run test suite -->
+    <target name="run">
+        <log message="============= Adaptor for ${suite.name}: Run .."/>
+
+        <!-- remember start time -->
+        <tstamp>
+            <format property="time.stamp" pattern="yyyy-MM-dd_hhmm" />
+        </tstamp>
+
+        <!-- running tests -->
+        <exec-ant dir="${tests.dir}/run"
+                  file="run.xml"
+                  lib="${ext.ant-contrib.location}"
+                  targets="run">
+            <sysproperty key="jvm.under.test"   value="${jvm.under.test}"/>
+            <sysproperty key="jvm.args"         value="${reliability.parameters.optional.tested.vm.options}"/>
+            <sysproperty key="work.dir"         value="${work.dir}/temp"/>
+            <sysproperty key="report.dir"       value="${report.dir}/${time.stamp}"/>
+            <sysproperty key="test.classes.dir" value="${work.dir}/classes"/>
+        </exec-ant>
+
+        <!-- copy results to results/reliability/last directory -->
+        <mkdir dir="${report.dir}/last"/>
+        <delete>
+            <fileset dir="${report.dir}/last" includes="*.*"/>
+        </delete>
+        <copy todir="${report.dir}/last">
+            <fileset dir="${report.dir}/${time.stamp}" includes="*.*"/>
+        </copy>
+
+        <!-- checking and reporting about failed tests -->
+        <fileset id="failed.tests.reports"
+                 dir="${report.dir}/${time.stamp}"
+                 includes="*.txt">
+            <not>
+                <contains text="Test PASSED"/>
+            </not>
+        </fileset>
+
+        <pathconvert refid="failed.tests.reports"
+                     property="tests.failed"
+                     setonempty="false">
+        </pathconvert>
+
+        <fail message="Some reliability tests failed on ${jvm.under.test}" if="tests.failed"/>
+    </target>
+
+    <!-- Clean test suite -->
+    <target name="clean">
+        <delete dir="${work.dir}" />
+        <delete dir="${report.dir}" />
+    </target>
+
+</project>

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

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/parameters.xml?view=auto&rev=553434
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/reliability/parameters.xml Thu Jul  5 02:31:31 2007
@@ -0,0 +1,42 @@
+<?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="drlvm">
+
+    <required>
+        <jvm.under.test
+            description="JVM under Test"
+            value="${drlvm.parameters.shared.jvm.location}"/>
+    </required>
+
+    <optional>
+        <tested.vm.options
+            description="JVM options for tested runtime"
+            value=""/>
+    </optional>
+
+    <external/>
+
+    <shared/>
+
+    <cc>
+        <results
+            description="Merge test results into CC log"
+            value="${report.dir}/last' pattern='TEST-*.xml"/>
+    </cc>
+
+</parameters>

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