harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r605908 - /harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml
Date Thu, 20 Dec 2007 12:11:51 GMT
Author: smishura
Date: Thu Dec 20 04:11:50 2007
New Revision: 605908

URL: http://svn.apache.org/viewvc?rev=605908&view=rev
Log:
Change publisher for stress suite:
Instead of full JUnit report execution log is provided (+ JUnit report for failed tests)

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=605908&r1=605907&r2=605908&view=diff
==============================================================================
--- harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml (original)
+++ harmony/enhanced/buildtest/branches/2.0/adaptors/snapshot/adaptor.xml Thu Dec 20 04:11:50
2007
@@ -407,13 +407,28 @@
     </target>
 
     <target name="publish-stress">
-        <delete dir="${snapshot.results.dir}/stress" />
-        <mkdir dir="${snapshot.results.dir}/stress" />
+
+        <mkdir dir="${snapshot.results.dir}/stress/junit" />
+
+        <copy-execution-log />
+        <touch-status-file />
+
+        <!-- generate junit report only for failed tests -->
         <junitreport todir="${snapshot.results.dir}/stress">
-            <fileset dir="${results.dir}/stress" includes="TEST*-*.xml" />
-            <report format="frames" todir="${snapshot.results.dir}/stress" />
+            <fileset dir="${results.dir}/stress" includes="TEST*-*.xml">
+                <containsregexp expression='(errors|failures)=.[1-9]' />
+                <exclude name="TESTS-TestSuites.xml" />
+            </fileset>
+            <report format="frames"
+                    todir="${snapshot.results.dir}/stress/junit" />
         </junitreport>
-        <archive-result/>
+
+        <!-- insert link to junit report -->
+        <replaceregexp file="${snapshot.results.dir}/stress/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>
 
     <!-- Struts testing scenario -->
@@ -450,11 +465,12 @@
 
     <target name="publish-vtsvm">
 
+        <mkdir dir="${snapshot.results.dir}/vtsvm/junit" />
+
         <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">
                 <containsregexp expression='(errors|failures)=.[1-9]' />



Mime
View raw message