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/08/29 07:26:12 UTC

svn commit: r570640 - in /harmony/enhanced/buildtest/branches/2.0: adaptors/snapshot/adaptor.xml adaptors/snapshot/framework.local.properties tests/eut/build.xml

Author: smishura
Date: Tue Aug 28 22:26:11 2007
New Revision: 570640

URL: http://svn.apache.org/viewvc?rev=570640&view=rev
Log:
Add Eclipse unit tests to snapshot testing

Modified:
    harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
    harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/framework.local.properties
    harmony/enhanced/buildtest/branches/2.0/tests/eut/build.xml

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml?rev=570640&r1=570639&r2=570640&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Tue Aug 28 22:26:11 2007
@@ -277,6 +277,30 @@
         <archive-result/>
     </target>
 
+    <target name="publish-eut">
+        <mkdir dir="${snapshot.results.dir}/eut" />
+
+        <!-- get all EUT html report files into index.html -->
+        <copy todir="${snapshot.results.dir}/eut">
+            <fileset dir="${results.dir}/eut/latest"/>
+        </copy>
+
+        <dirset id="eut.dir.id" dir="${snapshot.results.dir}/eut" includes="*" />
+        <property name="eut.html.files" refid="eut.dir.id" />
+        <echo file="${snapshot.results.dir}/eut/index.html">
+&lt;html&gt;
+${eut.html.files};
+&lt;/html&gt;
+        </echo>
+        <replaceregexp file="${snapshot.results.dir}/eut/index.html"
+                       flags="g"
+                       match="([^;]*);"
+                       replace="&lt;a href=\1&gt;\1&lt;/a&gt;&lt;br/&gt;" />
+
+        <touch-status-file suite-dir="${snapshot.results.dir}/eut" />
+        <archive-result />
+    </target>
+
     <target name="publish-gut">
         <mkdir dir="${snapshot.results.dir}/gut" />
         <junitreport todir="${checkouts.dir}/gut/logs">

Modified: harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/framework.local.properties
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/framework.local.properties?rev=570640&r1=570639&r2=570640&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/framework.local.properties (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/framework.local.properties Tue Aug 28 22:26:11 2007
@@ -23,6 +23,11 @@
 dacapo.parameters.cc.config=${adaptors.dir}/snapshot/suite-cc-custom-config.xml
 
 #
+eut.parameters.depends=snapshot
+eut.parameters.required.tested.runtime=${snapshot.parameters.shared.jre}
+eut.parameters.cc.config=${adaptors.dir}/snapshot/suite-cc-custom-config.xml
+
+#
 ehwa.parameters.depends=snapshot
 ehwa.parameters.required.tested.runtime=${snapshot.parameters.shared.jre}
 ehwa.parameters.cc.config=${adaptors.dir}/snapshot/suite-cc-custom-config.xml

Modified: harmony/enhanced/buildtest/branches/2.0/tests/eut/build.xml
URL: http://svn.apache.org/viewvc/harmony/enhanced/buildtest/branches/2.0/tests/eut/build.xml?rev=570640&r1=570639&r2=570640&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/tests/eut/build.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/tests/eut/build.xml Tue Aug 28 22:26:11 2007
@@ -478,6 +478,11 @@
             <fileset dir="${eut.work.dir}/results"/>
         </copy>
 
+        <delete dir="${result.dir}/latest"/>
+        <mkdir dir="${result.dir}/latest"/>
+        <copy todir="${result.dir}/latest">
+            <fileset dir="${res.dir}/results/html"/>
+        </copy>
     </target>
 
     <!-- Check whether there are fatal failure messages in report file or