harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r583764 - /harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
Date Thu, 11 Oct 2007 10:06:38 GMT
Author: smishura
Date: Thu Oct 11 03:06:33 2007
New Revision: 583764

URL: http://svn.apache.org/viewvc?rev=583764&view=rev
Log:
Change publisher for VTSVM suite:

Junit report for the suite contains too many files (~20k).
This causes a problem for publishing/keeping results
for several snapshots on 4 platforms.

Now the suite report consists on execution log and junit report for failed tests (no full
junit report is provided)
There is one drawback of such approach - pass rate for the suite in summary report will be
missed.
The summary report will only contain suite status i.e. PASSED/FAILED

Modified:
    harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.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=583764&r1=583763&r2=583764&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Thu Oct 11 03:06:33
2007
@@ -367,12 +367,27 @@
     </target>
 
     <target name="publish-vtsvm">
-        <mkdir dir="${snapshot.results.dir}/vtsvm" />
+
+        <copy-execution-log />
+        <touch-status-file />
+
+        <!-- generate junit report only for failed tests -->
+        <mkdir dir="${snapshot.results.dir}/vtsvm/junit" />
         <junitreport todir="${snapshot.results.dir}/vtsvm">
-            <fileset dir="${results.dir}/vtsvm" includes="TEST*-*.xml" />
-            <report format="frames" todir="${snapshot.results.dir}/vtsvm" />
+            <fileset dir="${results.dir}/vtsvm" includes="TEST*-*.xml">
+                <containsregexp expression='(errors|failures)=.[1-9]' />
+                <exclude name="TESTS-TestSuites.xml" />
+            </fileset>
+            <report format="frames"
+                    todir="${snapshot.results.dir}/vtsvm/junit" />
         </junitreport>
-        <archive-result/>
+
+        <!-- insert link to junit report -->
+        <replaceregexp file="${snapshot.results.dir}/vtsvm/index.html"
+                       match="run:"
+                       replace="&lt;a href=&quot;junit/index.html&quot;&gt;JUnit
report for failures&lt;a&gt;&#xA;&#xA;run:" />
+
+        <archive-result />
     </target>
 
 



Mime
View raw message