[eclipse] Generate tests summary after running tests.

Krzysztof Daniel kdaniel at fedoraproject.org
Fri Apr 12 12:22:10 UTC 2013


commit 49967ccf00305ebcad668b941afea9ad93e6866f
Author: Krzysztof Daniel <kdaniel at redhat.com>
Date:   Fri Apr 12 14:22:02 2013 +0200

    Generate tests summary after running tests.

 eclipse-test-support.patch |   32 ++++++++++++++++++++++++++++++++
 eclipse.spec               |    6 +++++-
 2 files changed, 37 insertions(+), 1 deletions(-)
---
diff --git a/eclipse-test-support.patch b/eclipse-test-support.patch
index 6ef59cd..910e5fe 100644
--- a/eclipse-test-support.patch
+++ b/eclipse-test-support.patch
@@ -311,6 +311,38 @@
  
          <antcall target="markCurrentTime">
              <param
+@@ -1363,6 +1293,31 @@
+                 value="end longrunning" />
+         </antcall>
+ 
++    	<!-- Copy over the XML to generate a top-level report for all of the tests -->
++    	<mkdir dir="${results}/origXml" />
++    	<copy failonerror="false" todir="${results}/origXml">
++    			<fileset dir="${results}/xml">
++    				<include name="**/*" />
++    			</fileset>
++    	</copy>
++    				
++    	<!-- Un-"collect" the results -->
++    	<replace dir="${results}/origXml" value="">
++    			<include name="**/*.xml" />
++    			<replacetoken>&lt;testsuites&gt;</replacetoken>
++    	</replace>
++    	<replace dir="${results}/origXml" value="">
++    			<include name="**/*.xml" />
++    			<replacetoken>&lt;/testsuites&gt;</replacetoken>
++    	</replace>
++    	
++    	<!-- Aggregate XML report files -->
++    	<junitreport todir="${results}/xml" tofile="org.eclipse.sdk.tests.xml">
++    		<fileset dir="${results}/origXml" includes="*.xml" />
++    	</junitreport>
++    	
++    	<!-- Generate top-level HTML report -->
++    	<xslt style="${repoLocation}/JUNIT.XSL" basedir="${results}/xml" includes="org.eclipse.sdk.tests.xml" destdir="${results}/html" />
+     </target>
+ 
+     <!-- 
 @@ -1409,7 +1339,7 @@
          <antcall target="e4CssSwt" />
          <antcall target="e4UI" />
diff --git a/eclipse.spec b/eclipse.spec
index f298248..783b899 100644
--- a/eclipse.spec
+++ b/eclipse.spec
@@ -51,7 +51,7 @@ fi;
 Summary:        An open, extensible IDE
 Name:           %{?scl_prefix}eclipse
 Version:        %{eclipse_version}
-Release:        0.37%{?dist}
+Release:        0.38%{?dist}
 License:        EPL
 Group:          Development/Tools
 URL:            http://www.eclipse.org/
@@ -740,6 +740,7 @@ sed -i "s@/usr/share/eclipse@%{libdir}/%{pkg_name}@" $RPM_BUILD_ROOT%{_libdir}/%
 
 unzip eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/target/eclipse-junit-tests-bundle.zip -d $RPM_BUILD_ROOT/%{_javadir}/
 unzip $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/eclipse-junit-tests-*.zip -d $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing
+cp eclipse.platform.releng/bundles/org.eclipse.test/JUNIT.XSL $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing
 rm $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/eclipse-junit-tests-*.zip
 rm $RPM_BUILD_ROOT/%{_javadir}/eclipse-testing/runtests.bat
 
@@ -1027,6 +1028,9 @@ fi
 %{_libdir}/%{pkg_name}/plugins/org.eclipse.osgi.util_*
 
 %changelog
+* Fri Apr 12 2013 Krzysztof Daniel <kdaniel at redhat.com> 1:4.3.0-0.38
+- Generate tests summary after running tests.
+
 * Thu Apr 11 2013 Krzysztof Daniel <kdaniel at redhat.com> 1:4.3.0-0.37
 - Rebuild to include latest deps.
 


More information about the scm-commits mailing list