harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r538066 - in /harmony/enhanced/buildtest/branches/2.0/adaptors/scimark: ./ adaptor.xml parameters.xml
Date Tue, 15 May 2007 06:15:04 GMT
Author: smishura
Date: Mon May 14 23:15:03 2007
New Revision: 538066

URL: http://svn.apache.org/viewvc?view=rev&rev=538066
Log:
Apply patch from HARMONY-3683:
([testing] SciMark to BTI integration)

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

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/adaptor.xml?view=auto&rev=538066
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/adaptor.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/adaptor.xml Mon May 14 23:15:03
2007
@@ -0,0 +1,85 @@
+<?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 SciMark Benchmark
+     ====================================================================== -->
+<project name="scimark" default="run" basedir=".">
+
+    <property name="scimark.results.dir" 
+              location="${results.dir}/${suite.name}"/>
+    <!-- the file containing the summary of test execution -->
+    <property name="scimark.output.file" 
+              location="${scimark.results.dir}/score.txt"/>
+
+    <!-- do setup of SciMark suite -->
+    <target name="setup">
+        <mkdir dir="${scimark.results.dir}"/>
+    </target>
+
+    <!-- do test execution -->
+    <target name="run">
+        <!-- delete old result -->
+        <delete file="${scimark.output.file}" quiet="true" verbose="false"/>
+        <!-- run the test on ${tested.runtime} set up as a required parameter -->
+        <echo message="Tested Runtime: ${tested.runtime} ${scimark.tested.runtime}"/>
+        <java jvm="${tested.runtime}"
+              classpath="${ext.scimark.location}" 
+              classname="jnt.scimark2.commandline"
+              output="${scimark.output.file}"
+              outputproperty="output"
+              failonerror="true"
+              fork="yes">
+            <arg value="-large"/>
+        </java>
+        <echo message="SciMark Execution Results:${line.separator}${output}"/>
+        <!-- save the result -->
+        <tstamp>
+            <format property="test.run.time" pattern="yyyyMMdd_HHmm"/>
+        </tstamp>
+        <copy file="${scimark.output.file}" 
+              tofile="${scimark.output.file}.${test.run.time}"/>
+    </target>
+
+    <!-- nothing to cleanup -->
+    <target name="clean"/>
+
+    <!-- 
+        ==================== Publisher Implementation ======================
+    -->
+
+    <condition property="scimark.status" value="ERROR">
+        <not><available file="${scimark.output.file}"/></not>
+    </condition>
+
+    <condition property="scimark.status" value="OK" else="FAILED">
+        <istrue value="${thisbuildsuccessful}"/>
+    </condition>
+
+    <!-- implement publisher interface -->
+    <target name="publish" if="framework.parameters.usemail">
+        <!-- make empty file in case of error -->
+        <touch file="${scimark.output.file}"/>
+        <mail mailhost="${framework.parameters.usemail}"
+              tolist="${framework.parameters.usemail.to}"
+              from="${framework.parameters.usemail.from}"
+              subject="SciMark ${scimark.status}"
+              messagefile="${scimark.output.file}"/>
+    </target>
+
+</project>
+

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

Added: harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/parameters.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/parameters.xml?view=auto&rev=538066
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/parameters.xml (added)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/scimark/parameters.xml Mon May 14 23:15:03
2007
@@ -0,0 +1,23 @@
+<parameters depends="drlvm">
+    <!-- required parameters -->
+    <required>
+        <!-- path to runtime to be tested, use drlvm jvm by default -->
+        <tested.runtime 
+            description="Path to Tested Runtime" 
+            value="${drlvm.parameters.shared.jvm.location}"/>
+    </required>
+
+    <!-- used external libraries -->
+    <external>
+        <!-- SciMark benchmark -->
+        <scimark
+            url="http://math.nist.gov/scimark2/scimark2lib.jar"
+            md5="e90a3b88b66d8efa9bdc4bff76f370b1"
+        />
+    </external>
+
+    <!-- CC related settings -->
+    <cc
+        publisher="${suite.adaptor.dir}/adaptor.xml"
+    />
+</parameters>

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



Mime
View raw message