harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r519821 - in /harmony/enhanced/buildtest/trunk: ./ modules/ modules/classlib-drlvm/ modules/classlib/ modules/drlvm-test/ modules/drlvm/
Date Mon, 19 Mar 2007 03:53:11 GMT
Author: smishura
Date: Sun Mar 18 20:53:10 2007
New Revision: 519821

URL: http://svn.apache.org/viewvc?view=rev&rev=519821
Log:
Apply patch for generating config file for cruisecontrol from HARMONY-3115:
([testing][buildtest module] the structure of buildtest module should be changed a little
bit to improve testing capabilities)

Added:
    harmony/enhanced/buildtest/trunk/modules/
    harmony/enhanced/buildtest/trunk/modules/classlib/
    harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/
    harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/build.xml
    harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template   (with props)
    harmony/enhanced/buildtest/trunk/modules/classlib/build.xml
    harmony/enhanced/buildtest/trunk/modules/classlib/project.template   (with props)
    harmony/enhanced/buildtest/trunk/modules/drlvm/
    harmony/enhanced/buildtest/trunk/modules/drlvm-test/
    harmony/enhanced/buildtest/trunk/modules/drlvm-test/build.xml
    harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template   (with props)
    harmony/enhanced/buildtest/trunk/modules/drlvm/build.xml
    harmony/enhanced/buildtest/trunk/modules/drlvm/project.template   (with props)
    harmony/enhanced/buildtest/trunk/properties.xml
Modified:
    harmony/enhanced/buildtest/trunk/build.xml

Modified: harmony/enhanced/buildtest/trunk/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/build.xml?view=diff&rev=519821&r1=519820&r2=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/build.xml (original)
+++ harmony/enhanced/buildtest/trunk/build.xml Sun Mar 18 20:53:10 2007
@@ -39,6 +39,9 @@
     <property name="target.dir" location="cc" />
     <mkdir dir="${target.dir}" />
 
+    <!-- generated configuration file -->
+    <property name="configfile" location="${target.dir}/config.xml" />
+
     <!-- url of the classlib and drlvm in SVN -->
     <property name="svn.classlib.url" value="https://svn.apache.org/repos/asf/harmony/enhanced/classlib/trunk"
/>
     <property name="svn.drlvm.url" value="https://svn.apache.org/repos/asf/harmony/enhanced/drlvm/trunk"
/>
@@ -148,9 +151,7 @@
     <target name="default" description="Start CruiseControl with full test suite" depends="start-win,start-other">
     </target>
 
-    <target name="pre-copy">
-        <echo>Copying full test configuration for CruiseControl from /config/config-full.xml</echo>
-        <copy file="config/config-full.xml" tofile="${target.dir}/config.xml" />
+    <target name="pre-copy" depends="gen-config">
         <copy file="config/copyres.xml" tofile="${target.dir}/copyres.xml" />
     </target>
 
@@ -202,7 +203,7 @@
         <copy file="${target.dir}/apache-ant-1.6.5/lib/ant-launcher.jar" todir="${target.dir}/lib"
overwrite="yes" failonerror="false" />
 
         <!-- copy the config we want to use, and make target dirs for the checkouts -->
-        <copy file="config/config-full.xml" tofile="${target.dir}/config.xml" />
+        <subant target="gen-config" buildpath="." />
         <copy file="config/copyres.xml" tofile="${target.dir}/copyres.xml" />
 
         <mkdir dir="${target.dir}/projects/classlib" />
@@ -329,4 +330,29 @@
     <target name="clean" description="reset to clean state">
         <delete dir="${target.dir}" includeEmptyDirs="true"/>
     </target>
+
+    <property name="modules" value="drlvm-test,classlib-drlvm" />
+
+    <target name="gen-config">
+        
+        <!-- gen cruisecontrol config file -->
+        <echo file="${configfile}">
+&lt;cruisecontrol&gt;
+
+    &lt;property file="cc.properties" /&gt;
+        </echo>
+        <subant target="-gen-config">
+            <dirset dir="modules" includes="${modules}" />
+            <property name="configfile" value="${configfile}" />
+        </subant>
+        <echo file="${configfile}" message="&lt;/cruisecontrol&gt;" append="true"
/>
+
+        <!-- clean up -->
+        <delete>
+            <fileset dir="modules">
+                <include name="**/*.done" />
+            </fileset>
+        </delete>
+    </target>
+
 </project>

Added: harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/build.xml?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/build.xml (added)
+++ harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/build.xml Sun Mar 18 20:53:10
2007
@@ -0,0 +1,27 @@
+<?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="classlib-test" default="-gen-config" basedir=".">
+
+    <import file="../../properties.xml" />
+
+    <target name="-gen-config">
+        <subant target="-gen-config" buildpath="../drlvm" />
+        <process-project-template project="classlib-test" />
+    </target>
+
+</project>

Added: harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template (added)
+++ harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template Sun Mar 18 20:53:10
2007
@@ -0,0 +1,78 @@
+# 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. 
+
+<property name="cl.test.prefix" value="[build-test alert] BUILD FAILED ${os} ${cc} ${build_cfg}:
classlib tests"/>
+<property name="cl.test.prefix.ok" value="[build-test alert] BUILD SUCCEEDED ${os} ${cc}
${build_cfg}: classlib tests"/>
+
+<project name="classlib-drlvm">
+
+    <listeners>
+        <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
+    </listeners>
+
+    <modificationset quietperiod="60">
+        <buildstatus logdir="logs/classlib"/>
+        <svn localWorkingCopy="${classlib}"/>
+        <svn localWorkingCopy="${drlvm}"/>
+    </modificationset>
+
+    <schedule interval="${timeout}">
+        <ant target="test" antWorkingDir="${classlib}" timeout="${ttimeout}" usedebug="false">
+            <jvmarg arg="-Dtest.jre.home=${wdir}/projects/drlvm/trunk/build/${os}_${build_arch}_${cc}_${build_cfg}/deploy/jdk/jre"
/>
+            <jvmarg arg="-Dhy.test.vm.name=${tested.vm.name}" />
+            <jvmarg arg="-Xmx700M" />
+        </ant>
+    </schedule>
+
+    <log dir="logs/${project.name}">
+        <merge dir="${classlib}/build/test_report" pattern="TEST-*.xml" />
+    </log>
+
+    <publishers>
+        <onfailure>
+            <xsltlogpublisher directory="."  outfilename="classlibt.txt"  xsltfile="br.xsl"
/>
+            <antpublisher   
+                     antworkingdir="."  
+                     buildfile="copyres.xml"  
+                     uselogger="true"  
+                     usedebug="true"  
+                     target="email.res"> 
+                <property name="file" value="classlibt.txt"/> 
+                <property name="mailhost" value="${server_addr}"/>
+                <property name="fromaddress" value="${report_from}"/>
+                <property name="toaddress" value="${report_to}"/>
+                <property name="subject" value="${cl.test.prefix}"/>
+                <property name="flag" value="${project.name}"/>
+            </antpublisher>
+        </onfailure>
+        <onsuccess>
+            <xsltlogpublisher directory="."  outfilename="classlibt.txt.ok"  xsltfile="br.xsl"
/>
+            <antpublisher   
+                     antworkingdir="."  
+                     buildfile="copyres.xml"  
+                     uselogger="true"  
+                     usedebug="true"  
+                     target="email.res.ok"> 
+                <property name="file" value="classlibt.txt.ok"/> 
+                <property name="mailhost" value="${server_addr}"/>
+                <property name="fromaddress" value="${report_from}"/>
+                <property name="toaddress" value="${report_to}"/>
+                <property name="subject" value="${cl.test.prefix.ok}"/>
+                <property name="flag" value="${project.name}"/>
+            </antpublisher>
+        </onsuccess>
+    </publishers>
+
+</project>

Propchange: harmony/enhanced/buildtest/trunk/modules/classlib-drlvm/project.template
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/trunk/modules/classlib/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/classlib/build.xml?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/classlib/build.xml (added)
+++ harmony/enhanced/buildtest/trunk/modules/classlib/build.xml Sun Mar 18 20:53:10 2007
@@ -0,0 +1,25 @@
+<?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="classlib" default="-gen-config" basedir=".">
+
+    <import file="../../properties.xml" />
+
+    <target name="-gen-config">
+        <process-project-template project="classlib" />
+    </target>
+</project>

Added: harmony/enhanced/buildtest/trunk/modules/classlib/project.template
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/classlib/project.template?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/classlib/project.template (added)
+++ harmony/enhanced/buildtest/trunk/modules/classlib/project.template Sun Mar 18 20:53:10
2007
@@ -0,0 +1,68 @@
+# 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. 
+
+<property name="cl.prefix" value="[build-test alert] BUILD FAILED ${os} ${cc} ${build_cfg}:
classlib " />
+<property name="cl.prefix.ok" value="[build-test alert] BUILD SUCCEEDED ${os} ${cc} ${build_cfg}:
classlib " />
+
+<property name="classlib" value="projects/classlib/trunk" />
+
+<project name="classlib">
+
+    <listeners>
+        <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
+    </listeners>
+
+    <bootstrappers>
+        <svnbootstrapper localWorkingCopy="${classlib}" />
+    </bootstrappers>
+
+    <modificationset quietperiod="60">
+        <svn localWorkingCopy="${classlib}" />
+    </modificationset>
+
+    <schedule interval="${timeout}">
+        <ant target="fetch-depends rebuild" antWorkingDir="${classlib}" timeout="${ttimeout}"
usedebug="false">
+            <jvmarg arg="-D${proxy.host.property}=${proxy.value}" />
+            <jvmarg arg="-D${proxy.port.property}=${port.value}" />
+            <jvmarg arg="-Xmx700M" />
+        </ant>
+    </schedule>
+
+    <publishers>
+        <onfailure>
+            <xsltlogpublisher directory="." outfilename="classlib.txt" xsltfile="br.xsl"
/>
+            <antpublisher antworkingdir="." buildfile="copyres.xml" uselogger="true" usedebug="true"
target="email.res">
+                <property name="file" value="classlib.txt" />
+                <property name="mailhost" value="${server_addr}" />
+                <property name="fromaddress" value="${report_from}" />
+                <property name="toaddress" value="${report_to}" />
+                <property name="subject" value="${cl.prefix}" />
+                <property name="flag" value="${project.name}" />
+            </antpublisher>
+        </onfailure>
+        <onsuccess>
+            <xsltlogpublisher directory="." outfilename="classlib.txt.ok" xsltfile="br.xsl"
/>
+            <antpublisher antworkingdir="." buildfile="copyres.xml" uselogger="true" usedebug="true"
target="email.res.ok">
+                <property name="file" value="classlib.txt.ok" />
+                <property name="mailhost" value="${server_addr}" />
+                <property name="fromaddress" value="${report_from}" />
+                <property name="toaddress" value="${report_to}" />
+                <property name="subject" value="${cl.prefix.ok}" />
+                <property name="flag" value="${project.name}" />
+            </antpublisher>
+        </onsuccess>
+    </publishers>
+
+</project>

Propchange: harmony/enhanced/buildtest/trunk/modules/classlib/project.template
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/trunk/modules/drlvm-test/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/drlvm-test/build.xml?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/drlvm-test/build.xml (added)
+++ harmony/enhanced/buildtest/trunk/modules/drlvm-test/build.xml Sun Mar 18 20:53:10 2007
@@ -0,0 +1,26 @@
+<?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="drlvm-test" default="-gen-config" basedir=".">
+
+    <import file="../../properties.xml" />
+
+    <target name="-gen-config">
+        <subant target="-gen-config" buildpath="../drlvm" />
+        <process-project-template project="drlvm-test" />
+    </target>
+</project>

Added: harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template (added)
+++ harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template Sun Mar 18 20:53:10
2007
@@ -0,0 +1,90 @@
+# 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. 
+
+<property name="vm.test.prefix" value="[build-test alert] BUILD FAILED ${os} ${cc} ${build_cfg}:
drlvm tests"/>
+<property name="vm.test.prefix.ok" value="[build-test alert] BUILD SUCCEEDED ${os} ${cc}
${build_cfg}: drlvm tests"/>
+
+<project name="drlvm-test">
+
+    <listeners>
+        <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
+    </listeners>
+
+    <modificationset quietperiod="60">
+        <buildstatus logdir="logs/drlvm"/>
+        <svn localWorkingCopy="${drlvm}"/>
+    </modificationset>
+
+    <schedule interval="${timeout}">
+        <ant target="test" antWorkingDir="${drlvm}/build/make" timeout="${ttimeout}" usedebug="false">
+            <jvmarg arg="-D${proxy.host.vm}=${proxy.value}"/>
+            <jvmarg arg="-D${proxy.port.vm}=${port.value}"/>
+            <jvmarg arg="-Dexternal.dep.CLASSLIB.loc=${wdir}/${classlib}" />
+            <jvmarg arg="-Dbuild.arch=${build_arch}" />
+            <jvmarg arg="-DBUILD_CFG=${build_cfg}" />
+            <jvmarg arg="-DCXX=${cc}" />
+            <jvmarg arg="-Drun.all.tests=true" />
+        </ant>
+    </schedule>
+
+    <log dir="logs/${project.name}">
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/jvmti.tests/reports/int"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/jvmti.tests/reports/jet"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/jvmti.tests/reports/opt"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/vm/_cunit.tests/report"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/vm/_smoke.tests/reports"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/kernel.tests/reports/jet.mode"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/kernel.tests/reports/opt.mode"
pattern="TEST-*.xml" />
+        <merge dir="${drlvm}/build/${os}_${build_arch}_${cc}_${build_cfg}/semis/kernel.tests/reports/int.mode"
pattern="TEST-*.xml" />
+    </log>
+
+    <publishers>
+        <onfailure>
+            <xsltlogpublisher directory="." outfilename="drlvmt.txt" xsltfile="br.xsl"
/>
+
+            <antpublisher   
+                     antworkingdir="."  
+                     buildfile="copyres.xml"  
+                     uselogger="true"  
+                     usedebug="false"  
+                     target="email.res"> 
+                <property name="file" value="drlvmt.txt"/> 
+                <property name="mailhost" value="${server_addr}"/>
+                <property name="fromaddress" value="${report_from}"/>
+                <property name="toaddress" value="${report_to}"/>
+                <property name="subject" value="${vm.prefix}"/>
+                <property name="flag" value="${project.name}"/>
+            </antpublisher> 
+        </onfailure>
+        <onsuccess>
+            <xsltlogpublisher directory="." outfilename="drlvmt.txt.ok" xsltfile="br.xsl"
/>
+
+            <antpublisher   
+                     antworkingdir="."  
+                     buildfile="copyres.xml"  
+                     uselogger="true"  
+                     usedebug="false"  
+                     target="email.res.ok"> 
+                <property name="file" value="drlvmt.txt.ok"/> 
+                <property name="mailhost" value="${server_addr}"/>
+                <property name="fromaddress" value="${report_from}"/>
+                <property name="toaddress" value="${report_to}"/>
+                <property name="subject" value="${vm.prefix.ok}"/>
+                <property name="flag" value="${project.name}"/>
+            </antpublisher> 
+        </onsuccess>
+    </publishers>
+
+</project>

Propchange: harmony/enhanced/buildtest/trunk/modules/drlvm-test/project.template
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/trunk/modules/drlvm/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/drlvm/build.xml?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/drlvm/build.xml (added)
+++ harmony/enhanced/buildtest/trunk/modules/drlvm/build.xml Sun Mar 18 20:53:10 2007
@@ -0,0 +1,26 @@
+<?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="drlvm" default="-gen-config" basedir=".">
+
+    <import file="../../properties.xml" />
+
+    <target name="-gen-config">
+        <subant target="-gen-config" buildpath="../classlib"/>
+        <process-project-template project="drlvm" />
+    </target>
+</project>

Added: harmony/enhanced/buildtest/trunk/modules/drlvm/project.template
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/modules/drlvm/project.template?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/modules/drlvm/project.template (added)
+++ harmony/enhanced/buildtest/trunk/modules/drlvm/project.template Sun Mar 18 20:53:10 2007
@@ -0,0 +1,77 @@
+# 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. 
+
+<property name="vm.prefix" value="[build-test alert] BUILD FAILED ${os} ${cc} ${build_cfg}:
drlvm"/>
+<property name="vm.prefix.ok" value="[build-test alert] BUILD SUCCEEDED ${os} ${cc} ${build_cfg}:
drlvm"/>
+
+<property name="drlvm" value="projects/drlvm/trunk" />
+
+<project name="drlvm">
+
+    <listeners>
+        <currentbuildstatuslistener file="logs/${project.name}/status.txt" />
+    </listeners>
+
+    <modificationset quietperiod="60">
+        <buildstatus logdir="logs/classlib"/>
+        <svn localWorkingCopy="projects/drlvm/trunk"/>
+        <svn localWorkingCopy="projects/classlib/trunk"/>
+    </modificationset>
+
+    <schedule interval="${timeout}">
+        <ant target="update clean build" antWorkingDir="projects/${project.name}/trunk/build/make"
timeout="${ttimeout}" usedebug="false">
+            <jvmarg arg="-D${proxy.host.vm}=${proxy.value}"/>
+            <jvmarg arg="-D${proxy.port.vm}=${port.value}"/>
+            <jvmarg arg="-Dexternal.dep.CLASSLIB.loc=${wdir}/projects/classlib/trunk"
/>
+            <jvmarg arg="-Dbuild.arch=${build_arch}" />
+        </ant>
+    </schedule>
+
+    <publishers>
+        <onfailure>
+            <xsltlogpublisher directory="." outfilename="drlvm.txt" xsltfile="br.xsl"
/>
+            <antpublisher   
+                    antworkingdir="."  
+                    buildfile="copyres.xml"  
+                    uselogger="true"  
+                    usedebug="false"  
+                    target="email.res"> 
+               <property name="file" value="drlvm.txt"/> 
+               <property name="mailhost" value="${server_addr}"/>
+               <property name="fromaddress" value="${report_from}"/>
+               <property name="toaddress" value="${report_to}"/>
+               <property name="subject" value="${vm.prefix}"/>
+               <property name="flag" value="${project.name}"/>
+            </antpublisher> 
+        </onfailure>
+        <onsuccess>
+            <xsltlogpublisher directory="." outfilename="drlvm.txt.ok" xsltfile="br.xsl"
/>
+            <antpublisher   
+                    antworkingdir="."  
+                    buildfile="copyres.xml"  
+                    uselogger="true"  
+                    usedebug="false"  
+                    target="email.res.ok"> 
+               <property name="file" value="drlvm.txt.ok"/> 
+               <property name="mailhost" value="${server_addr}"/>
+               <property name="fromaddress" value="${report_from}"/>
+               <property name="toaddress" value="${report_to}"/>
+               <property name="subject" value="${vm.prefix.ok}"/>
+               <property name="flag" value="${project.name}"/>
+            </antpublisher> 
+        </onsuccess>
+    </publishers>
+
+</project>

Propchange: harmony/enhanced/buildtest/trunk/modules/drlvm/project.template
------------------------------------------------------------------------------
    svn:eol-style = native

Added: harmony/enhanced/buildtest/trunk/properties.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/trunk/properties.xml?view=auto&rev=519821
==============================================================================
--- harmony/enhanced/buildtest/trunk/properties.xml (added)
+++ harmony/enhanced/buildtest/trunk/properties.xml Sun Mar 18 20:53:10 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. 
+-->
+<project>
+
+    <macrodef name="process-project-template">
+        <attribute name="project" />
+        <sequential>
+            <available property="@{project}.genconfig.done" file="@{project}.genconfig.done"
/>
+
+            <concat destfile="${configfile}" append="true">
+                <fileset dir=".">
+                    <include name="project.template" unless="@{project}.genconfig.done"
/>
+                </fileset>
+                <filterchain>
+                    <striplinecomments>
+                        <comment value="#" />
+                    </striplinecomments>
+                    <prefixlines prefix="    "/>
+                </filterchain>
+            </concat>
+            <touch file="@{project}.genconfig.done" />
+        </sequential>
+    </macrodef>
+
+</project>



Mime
View raw message