harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hinde...@apache.org
Subject svn commit: r793831 - in /harmony/enhanced/classlib/trunk/modules/accessibility: build.xml make/run-test.xml
Date Tue, 14 Jul 2009 09:56:41 GMT
Author: hindessm
Date: Tue Jul 14 09:56:41 2009
New Revision: 793831

URL: http://svn.apache.org/viewvc?rev=793831&view=rev
Log:
Allow accessibility tests to run from the hdk.

Added:
    harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml   (with props)
Modified:
    harmony/enhanced/classlib/trunk/modules/accessibility/build.xml

Modified: harmony/enhanced/classlib/trunk/modules/accessibility/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/accessibility/build.xml?rev=793831&r1=793830&r2=793831&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/accessibility/build.xml (original)
+++ harmony/enhanced/classlib/trunk/modules/accessibility/build.xml Tue Jul 14 09:56:41 2009
@@ -45,6 +45,7 @@
     <property file="../../make/depends.properties" />
 
     <property name="tests.hdk.dir" value="${hy.hdk}/build/test/accessibility" />
+    <property name="tests.excludes.hdk.dir" value="${tests.hdk.dir}/excludes" />
     <property name="accessibility.exclude.file"
               location="${tests.hdk.dir}/test.exclude" />
 
@@ -133,12 +134,26 @@
 
     <target name="test-jar" depends="svn-info,compile-tests">
 	<mkdir dir="${tests.hdk.dir}" />
+
+        <copy file="make/run-test.xml" tofile="${tests.hdk.dir}/build.xml" />
+
         <jar destfile="${tests.hdk.dir}/accessibility_tests.jar">
             <fileset refid="tests" />
             <manifest>
                 <attribute name="Implementation-Version" value="${svn.info}"/> 
             </manifest>
         </jar>
+
+        <mkdir dir="${tests.excludes.hdk.dir}"/>
+        <copy todir="${tests.excludes.hdk.dir}">
+            <fileset dir="./make" includes="exclude*"/>
+            <filterchain>
+                <tokenfilter>
+                    <replaceregex pattern="\.java" replace="\.class" flags="g"/>
+                </tokenfilter>
+            </filterchain>
+        </copy>
+
         <copy file="../../${junit.jar}" todir="${hy.hdk}/build/test" />
     </target>
 

Added: harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml?rev=793831&view=auto
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml (added)
+++ harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml Tue Jul 14 09:56:41
2009
@@ -0,0 +1,43 @@
+<?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.
+-->
+
+<project name="Harmony Accessibility Test" default="test" basedir=".">
+
+    <property name="test.jre.home" location="../../../jdk/jre" />
+    <property file="../test.properties" />
+    <import file="../properties.xml" />
+
+    <property name="work.dir" value=".." />
+    <property name="target.dir" value=".." />
+    <property name="test.report.dir" location="../report" />
+    <property name="junit.jar" location="../junit.jar" />
+
+    <target name="test" depends="test-module" />
+
+    <target name="test-module" depends="test-jre-vm-info">
+        <convert-test-as-class from="test.case" to="converted.tc.class" />
+        <run-hdk-tests module="accessibility" jar="accessibility_tests.jar">
+            <junit-elements>
+
+                <jvmarg value="-Xbootclasspath/a:accessibility_tests.jar${path.separator}../junit.jar${path.separator}../support.jar"/>
+
+            </junit-elements>
+        </run-hdk-tests>    
+    </target>
+    
+</project>

Propchange: harmony/enhanced/classlib/trunk/modules/accessibility/make/run-test.xml
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message