- Increase MaxPermSize when running tests.
This commit is contained in:
parent
65a486a0be
commit
d28f580d2c
@ -1,7 +1,46 @@
|
|||||||
diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
### Eclipse Workspace Patch 1.0
|
||||||
--- ./org.eclipse.test/library.xml.orig 2008-08-27 15:10:17.000000000 -0400
|
#P org.eclipse.test
|
||||||
+++ ./org.eclipse.test/library.xml 2008-08-27 15:11:16.000000000 -0400
|
Index: library.xml
|
||||||
@@ -40,8 +40,10 @@
|
===================================================================
|
||||||
|
RCS file: /cvsroot/eclipse/org.eclipse.test/library.xml,v
|
||||||
|
retrieving revision 1.33
|
||||||
|
diff -u -r1.33 library.xml
|
||||||
|
--- library.xml 13 Mar 2008 14:00:36 -0000 1.33
|
||||||
|
+++ library.xml 5 Dec 2008 01:39:01 -0000
|
||||||
|
@@ -6,13 +6,13 @@
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="init">
|
||||||
|
- <!--
|
||||||
|
+ <!--
|
||||||
|
Parameters:
|
||||||
|
(Mandatory)
|
||||||
|
data-dir - the directory for Eclipse to write its data
|
||||||
|
plugin-name - the name of the plugin to test
|
||||||
|
classname - the name of the test class
|
||||||
|
-
|
||||||
|
+
|
||||||
|
(Optional - overrides defaults set in script)
|
||||||
|
vmargs - a string containing arguments to pass to the VM.
|
||||||
|
extraVMargs - allows separate setting of VM args from separate caller.
|
||||||
|
@@ -22,7 +22,7 @@
|
||||||
|
useEclipseExe - property setting forces test to launch via eclipse executable.
|
||||||
|
junit-report-output - output directory for junit reports produced for specified classname.
|
||||||
|
-->
|
||||||
|
-
|
||||||
|
+
|
||||||
|
<tstamp>
|
||||||
|
<format property="TIMENOW" pattern="HHmmssSSSS"/>
|
||||||
|
</tstamp>
|
||||||
|
@@ -33,25 +33,27 @@
|
||||||
|
<!--default launch target for launching tests-->
|
||||||
|
<property name="launchTarget" value="java-test" />
|
||||||
|
<property name="formatter" value="org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter"/>
|
||||||
|
-
|
||||||
|
+
|
||||||
|
<!--default heap sizes when running performance tests-->
|
||||||
|
<condition property="vmargs" value=" -Xms256M -Xmx256M">
|
||||||
|
<equals arg1="${test.target}" arg2="performance" />
|
||||||
</condition>
|
</condition>
|
||||||
<property name="extraVMargs" value=""/>
|
<property name="extraVMargs" value=""/>
|
||||||
<property name="plugin-path" value="" />
|
<property name="plugin-path" value="" />
|
||||||
@ -13,19 +52,41 @@ diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
|||||||
<property name="junit-report-output" value="${eclipse-home}/results" />
|
<property name="junit-report-output" value="${eclipse-home}/results" />
|
||||||
<mkdir dir="${junit-report-output}"/>
|
<mkdir dir="${junit-report-output}"/>
|
||||||
</target>
|
</target>
|
||||||
@@ -60,7 +62,11 @@
|
-
|
||||||
|
+
|
||||||
|
<target name="core-test" description="Eclipse application used to launch HEADLESS plugin tests." depends="init">
|
||||||
|
<antcall target="${launchTarget}">
|
||||||
|
<param name="application" value="org.eclipse.test.coretestapplication"/>
|
||||||
|
</antcall>
|
||||||
|
</target>
|
||||||
|
-
|
||||||
|
+
|
||||||
|
<target name="ui-test" description="Eclipse application used to launch UI plugin tests." depends="init">
|
||||||
|
<antcall target="${launchTarget}">
|
||||||
|
<param name="application" value="org.eclipse.test.uitestapplication"/>
|
||||||
|
@@ -60,13 +62,17 @@
|
||||||
|
|
||||||
<target name="java-test">
|
<target name="java-test">
|
||||||
<!--default vm args-->
|
<!--default vm args-->
|
||||||
- <property name="vmargs" value=" -Xms40m -Xmx256m"/>
|
- <property name="vmargs" value=" -Xms40m -Xmx256m"/>
|
||||||
+ <property name="vmargs" value=" -Xms40m -Xmx512m"/>
|
-
|
||||||
|
+ <property name="vmargs" value=" -Xms256m -Xmx1024m -XX:MaxPermSize=512m"/>
|
||||||
+ <delete failonerror="false" includeEmptyDirs="true">
|
+ <delete failonerror="false" includeEmptyDirs="true">
|
||||||
+ <fileset dir="${testhome}" includes="**/*"/>
|
+ <fileset dir="${testhome}" includes="**/*"/>
|
||||||
+ </delete>
|
+ </delete>
|
||||||
+ <mkdir dir="${testhome}"/>
|
+ <mkdir dir="${testhome}"/>
|
||||||
|
+
|
||||||
<!--set default jvm to use for testing-->
|
<!--set default jvm to use for testing-->
|
||||||
<property name="jvm" value="${java.home}/bin/java" />
|
- <property name="jvm" value="${java.home}/bin/java" />
|
||||||
|
-
|
||||||
|
+ <property name="jvm" value="${java.home}/bin/java" />
|
||||||
|
+
|
||||||
|
<echo message="Running ${classname}. Result file: ${junit-report-output}/${classname}.xml."/>
|
||||||
|
-
|
||||||
|
+
|
||||||
|
<java fork="true" dir="." timeout="${timeout}" jvm="${jvm}" logError="true"
|
||||||
|
classname="org.eclipse.core.launcher.Main" output="${junit-report-output}/${classname}.txt">
|
||||||
|
<classpath>
|
||||||
@@ -75,7 +81,7 @@
|
@@ -75,7 +81,7 @@
|
||||||
</fileset>
|
</fileset>
|
||||||
</classpath>
|
</classpath>
|
||||||
@ -35,29 +96,33 @@ diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
|||||||
<arg line="formatter=${formatter},${test-output}"/>
|
<arg line="formatter=${formatter},${test-output}"/>
|
||||||
<arg line="-testPluginName ${plugin-name}"/>
|
<arg line="-testPluginName ${plugin-name}"/>
|
||||||
<arg line="-className ${classname}"/>
|
<arg line="-className ${classname}"/>
|
||||||
@@ -83,15 +89,29 @@
|
@@ -83,15 +89,30 @@
|
||||||
<arg line="-ws ${ws}"/>
|
<arg line="-ws ${ws}"/>
|
||||||
<arg line="-arch ${arch}"/>
|
<arg line="-arch ${arch}"/>
|
||||||
<arg line="-consolelog"/>
|
<arg line="-consolelog"/>
|
||||||
+ <arg line="-clean"/>
|
+ <arg line="-clean"/>
|
||||||
+ <arg line="-Dswt.library.path=/usr/lib/eclipse"/>
|
+ <arg line="-Dswt.library.path=/usr/lib/eclipse"/>
|
||||||
+ <arg line="-Dsetup.override.vmArgs=Xms40m;Xmx512m"/>
|
+ <arg line="-Dsetup.override.vmArgs=Xms256m;Xmx1024m;XX:MaxPermSize=512m"/>
|
||||||
+ <arg line="-Dsetup.override.systemProperties=PLUGIN_PATH=${plugin-path};user.home=${testhome}"/>
|
+ <arg line="-Dsetup.override.systemProperties=PLUGIN_PATH=${plugin-path};user.home=${testhome}"/>
|
||||||
<jvmarg line="${vmargs} ${extraVMargs}"/>
|
<jvmarg line="${vmargs} ${extraVMargs}"/>
|
||||||
<sysproperty key="PLUGIN_PATH" value="${plugin-path}"/>
|
- <sysproperty key="PLUGIN_PATH" value="${plugin-path}"/>
|
||||||
|
+ <sysproperty key="PLUGIN_PATH" value="${plugin-path}"/>
|
||||||
+ <sysproperty key="user.home" value="${testhome}"/>
|
+ <sysproperty key="user.home" value="${testhome}"/>
|
||||||
+ <sysproperty key="swt.library.path" value="/usr/lib/eclipse"/>
|
+ <sysproperty key="swt.library.path" value="/usr/lib/eclipse"/>
|
||||||
+ <sysproperty key="setup.override.vmArgs" value="Xms40m;Xmx512m"/>
|
+ <sysproperty key="setup.override.vmArgs" value="Xms256m;Xmx1024m;XX:MaxPermSize=512m"/>
|
||||||
+ <sysproperty key="setup.override.systemProperties" value="PLUGIN_PATH=${plugin-path};user.home=${testhome}"/>
|
+ <sysproperty key="setup.override.systemProperties" value="PLUGIN_PATH=${plugin-path};user.home=${testhome}"/>
|
||||||
+ <sysproperty key="sdk.tests.data.dir" value="${data-dir}"/>
|
+ <sysproperty key="sdk.tests.data.dir" value="${data-dir}"/>
|
||||||
+ <sysproperty key="osgi.configuration.area" value="${data-dir}"/>
|
+ <sysproperty key="osgi.configuration.area" value="${data-dir}"/>
|
||||||
</java>
|
</java>
|
||||||
<antcall target="collect-results" />
|
<antcall target="collect-results" />
|
||||||
</target>
|
</target>
|
||||||
|
-
|
||||||
<target name="eclipse-test" description="Runs the specified classname as a plug-in test.">
|
- <target name="eclipse-test" description="Runs the specified classname as a plug-in test.">
|
||||||
|
+
|
||||||
|
+ <target name="eclipse-test" description="Runs the specified classname as a plug-in test.">
|
||||||
<property name="vmargs" value="-Xms256m -Xmx512m"/>
|
<property name="vmargs" value="-Xms256m -Xmx512m"/>
|
||||||
-
|
-
|
||||||
|
+
|
||||||
+ <delete failonerror="false" includeEmptyDirs="true">
|
+ <delete failonerror="false" includeEmptyDirs="true">
|
||||||
+ <fileset dir="${testhome}" includes="**/*"/>
|
+ <fileset dir="${testhome}" includes="**/*"/>
|
||||||
+ </delete>
|
+ </delete>
|
||||||
@ -66,7 +131,22 @@ diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
|||||||
<!--use -consolelog if launching a headless test-->
|
<!--use -consolelog if launching a headless test-->
|
||||||
<condition property="consolelog" value="-consolelog">
|
<condition property="consolelog" value="-consolelog">
|
||||||
<equals arg1="${application}" arg2="org.eclipse.test.coretestapplication"/>
|
<equals arg1="${application}" arg2="org.eclipse.test.coretestapplication"/>
|
||||||
@@ -125,6 +145,8 @@
|
@@ -107,11 +128,11 @@
|
||||||
|
<isset property="jvm" />
|
||||||
|
</condition>
|
||||||
|
<property name="test-vm" value="" />
|
||||||
|
-
|
||||||
|
+
|
||||||
|
<!--ensure executable has execute permission-->
|
||||||
|
<chmod file="${eclipse-home}/eclipse" perm="ugo+rx"/>
|
||||||
|
-
|
||||||
|
-
|
||||||
|
+
|
||||||
|
+
|
||||||
|
<echo message="Running ${classname}. Result file: ${junit-report-output}/${classname}.xml."/>
|
||||||
|
|
||||||
|
<exec executable="${eclipse-home}/eclipse" dir="${eclipse-home}" timeout="${timeout}" logError="true" failonerror="false" output="${junit-report-output}/${classname}.txt">
|
||||||
|
@@ -125,10 +146,12 @@
|
||||||
<arg line="--launcher.suppressErrors"/>
|
<arg line="--launcher.suppressErrors"/>
|
||||||
<arg line="${consolelog}"/>
|
<arg line="${consolelog}"/>
|
||||||
<arg line="-vmargs ${vmargs} ${extraVMargs} -DPLUGIN_PATH=${plugin-path}"/>
|
<arg line="-vmargs ${vmargs} ${extraVMargs} -DPLUGIN_PATH=${plugin-path}"/>
|
||||||
@ -75,7 +155,12 @@ diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
|||||||
</exec>
|
</exec>
|
||||||
<antcall target="collect-results" />
|
<antcall target="collect-results" />
|
||||||
</target>
|
</target>
|
||||||
@@ -138,7 +160,7 @@
|
-
|
||||||
|
+
|
||||||
|
<target name="collect-results">
|
||||||
|
<dirname property="output-dir" file="${test-output}"/>
|
||||||
|
<basename property="output-file-name" file="${test-output}"/>
|
||||||
|
@@ -138,7 +161,7 @@
|
||||||
</fileset>
|
</fileset>
|
||||||
</junitreport>
|
</junitreport>
|
||||||
|
|
||||||
@ -84,7 +169,13 @@ diff -up ./org.eclipse.test/library.xml.orig ./org.eclipse.test/library.xml
|
|||||||
basedir="${junit-report-output}"
|
basedir="${junit-report-output}"
|
||||||
includes="${classname}.result.xml"
|
includes="${classname}.result.xml"
|
||||||
destdir="${junit-report-output}" />
|
destdir="${junit-report-output}" />
|
||||||
@@ -158,8 +180,8 @@
|
@@ -153,13 +176,13 @@
|
||||||
|
<target name="collect">
|
||||||
|
<!--
|
||||||
|
This target can be used to aggragate test runs from multiple test suites into a single report.
|
||||||
|
-
|
||||||
|
+
|
||||||
|
Parameters to this target:
|
||||||
includes - the names of the files to include
|
includes - the names of the files to include
|
||||||
output-file - the name of the output file to produce
|
output-file - the name of the output file to produce
|
||||||
-->
|
-->
|
||||||
|
@ -30,7 +30,7 @@ Epoch: 1
|
|||||||
Summary: An open, extensible IDE
|
Summary: An open, extensible IDE
|
||||||
Name: eclipse
|
Name: eclipse
|
||||||
Version: %{eclipse_majmin}.%{eclipse_micro}
|
Version: %{eclipse_majmin}.%{eclipse_micro}
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
License: EPL
|
License: EPL
|
||||||
Group: Text Editors/Integrated Development Environments (IDE)
|
Group: Text Editors/Integrated Development Environments (IDE)
|
||||||
URL: http://www.eclipse.org/
|
URL: http://www.eclipse.org/
|
||||||
@ -647,7 +647,9 @@ popd
|
|||||||
tar jxf %{SOURCE30}
|
tar jxf %{SOURCE30}
|
||||||
pushd %{name}-%{version}-testframework
|
pushd %{name}-%{version}-testframework
|
||||||
%patch41
|
%patch41
|
||||||
|
pushd org.eclipse.test
|
||||||
%patch42
|
%patch42
|
||||||
|
popd
|
||||||
sed -i "s:/usr/lib/eclipse:%{_libdir}/%{name}:" org.eclipse.test/library.xml
|
sed -i "s:/usr/lib/eclipse:%{_libdir}/%{name}:" org.eclipse.test/library.xml
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -1535,6 +1537,9 @@ fi
|
|||||||
#%{_libdir}/%{name}/configuration/org.eclipse.equinox.source
|
#%{_libdir}/%{name}/configuration/org.eclipse.equinox.source
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Dec 4 2008 Andrew Overholt <overholt@redhat.com> 1:3.4.1-8
|
||||||
|
- Increase MaxPermSize when running tests.
|
||||||
|
|
||||||
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:3.4.1-8
|
* Mon Dec 01 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1:3.4.1-8
|
||||||
- Rebuild for Python 2.6
|
- Rebuild for Python 2.6
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user