ICU-6091 Allow the user to set the heap size when running the ICU4J test suite by setting the environment variable JVM_OPTIONS.
X-SVN-Rev: 26217
This commit is contained in:
parent
ad76fc1b2e
commit
150ef590bc
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -57,6 +57,8 @@ icu4c/source/test/testdata/icu26e_testtypes.res -text
|
||||
icu4c/source/test/testdata/importtest.bin -text
|
||||
icu4c/source/test/testdata/iscii.bin -text
|
||||
icu4c/source/test/testdata/uni-text.bin -text
|
||||
icu4j/.classpath -text
|
||||
icu4j/.project -text
|
||||
icu4j/build.properties -text
|
||||
icu4j/demos/manifest.stub -text
|
||||
icu4j/icu-eclipse/misc/ICUConfig.properties -text
|
||||
|
34
icu4j/.classpath
Normal file
34
icu4j/.classpath
Normal file
@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="demos/src"/>
|
||||
<classpathentry kind="src" path="icu-eclipse/plugins/com.ibm.icu.base.tests/src"/>
|
||||
<classpathentry kind="src" path="icu-eclipse/plugins/com.ibm.icu.base/src"/>
|
||||
<classpathentry kind="src" path="icu-eclipse/plugins/com.ibm.icu.tests/src"/>
|
||||
<classpathentry kind="src" path="main/classes/charset/src"/>
|
||||
<classpathentry kind="src" path="main/classes/core/src"/>
|
||||
<classpathentry kind="src" path="main/classes/localespi/src"/>
|
||||
<classpathentry kind="src" path="main/tests/charset/src"/>
|
||||
<classpathentry kind="src" path="main/tests/core/src"/>
|
||||
<classpathentry kind="src" path="main/tests/framework/src"/>
|
||||
<classpathentry kind="src" path="main/tests/localespi/src"/>
|
||||
<classpathentry kind="src" path="perf-tests/src"/>
|
||||
<classpathentry kind="src" path="tools/build/src"/>
|
||||
<classpathentry kind="src" path="tools/misc/src"/>
|
||||
<classpathentry exported="true" kind="lib" path="demos/out/lib/icu4jdemos.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="icu4j-charsets.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="icu4j-localespi.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="icu4j.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/classes/charset/out/lib/icu4j-charsets.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/classes/core/out/lib/icu4j.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/classes/localespi/out/lib/icu4j-localespi.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/shared/data/icudata.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/shared/data/testdata.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/tests/charset/out/lib/icu4j-charset-tests.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/tests/core/out/lib/icu4j-core-tests.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/tests/framework/out/lib/icu4j-test-framework.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="main/tests/localespi/out/lib/icu4j-localespi-tests.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="tools/build/out/lib/icu4j-build-tools.jar"/>
|
||||
<classpathentry exported="true" kind="lib" path="tools/misc/out/lib/icu4j-tools.jar"/>
|
||||
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="output" path="tools/misc/out/bin"/>
|
||||
</classpath>
|
17
icu4j/.project
Normal file
17
icu4j/.project
Normal file
@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>ICU4J</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
@ -88,39 +88,42 @@
|
||||
<target name="releaseJar" depends="info, jar, jarDocs, jarSrc" description="Build all jar files for distribution"/>
|
||||
|
||||
<target name="secure" depends="main, jar, tests" description="(Deprecated)Build ICU4J API and test classes for running the ICU4J test suite with Java security manager enabled"/>
|
||||
|
||||
|
||||
<!-- Check to see if JVM_OPTIONS enviroment variable is set. This can be use to set the heap size. -->
|
||||
<property name="env.JVM_OPTIONS" value=""/>
|
||||
<property name="jvm_options" value="${env.JVM_OPTIONS}"/>
|
||||
<target name="check" description="Run the standard ICU4J test suite">
|
||||
<antcall target="_runCheck">
|
||||
<param name="runcheck.arg" value="-n"/>
|
||||
<param name="runcheck.jvmarg" value=""/>
|
||||
<param name="runcheck.jvmarg" value="${jvm_options}"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="exhaustiveCheck" description="Run the standard ICU4J test suite in exhaustive mode">
|
||||
<antcall target="_runCheck">
|
||||
<param name="runcheck.arg" value="-n -e10"/>
|
||||
<param name="runcheck.jvmarg" value=""/>
|
||||
<param name="runcheck.jvmarg" value="${jvm_options}"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="timeZoneCheck" description="Run the complete test for TimeZoneRoundTripAll">
|
||||
<antcall target="_runCheck">
|
||||
<param name="runcheck.arg" value="-n -e10 Core/Format/DateFormat/TimeZoneFormatTest"/>
|
||||
<param name="runcheck.jvmarg" value="-DTimeZoneRoundTripAll=true"/>
|
||||
<param name="runcheck.jvmarg" value="${jvm_options} -DTimeZoneRoundTripAll=true"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="secureCheck" description="Run the secure (applet-like) ICU4J test suite">
|
||||
<antcall target="_runCheck">
|
||||
<param name="runcheck.arg" value="-n -w"/>
|
||||
<param name="runcheck.jvmarg" value="-Djava.security.manager -Djava.security.policy=${shared.dir}/data/security.policy"/>
|
||||
<param name="runcheck.jvmarg" value="${jvm_options} -Djava.security.manager -Djava.security.policy=${shared.dir}/data/security.policy"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
<target name="jdktzCheck" description="Run the standard ICU4J test suite with JDK TimeZone">
|
||||
<antcall target="_runCheck">
|
||||
<param name="runcheck.arg" value="-n"/>
|
||||
<param name="runcheck.jvmarg" value="-Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=JDK"/>
|
||||
<param name="runcheck.jvmarg" value="${jvm_options} -Dcom.ibm.icu.util.TimeZone.DefaultTimeZoneType=JDK"/>
|
||||
</antcall>
|
||||
</target>
|
||||
|
||||
|
@ -735,7 +735,10 @@ file.</p>
|
||||
<p>After doing a build it is a good idea to run all the icu4j tests by
|
||||
typing<br>
|
||||
<tt>"ant check"</tt> or
|
||||
"java -classpath classes com.ibm.icu.dev.test.TestAll -nothrow".</p>
|
||||
"java -classpath classes com.ibm.icu.dev.test.TestAll -nothrow".<br>
|
||||
<b>Note:</b> If you get a OutOfMemoryError when you are running <tt>"ant check"</tt>, you can <br>
|
||||
set the heap size of the jvm by setting the environment variable JVM_OPTIONS<br>
|
||||
to the appropriate java options.</p>
|
||||
|
||||
<p><b>Eclipse users:</b> See the ICU4J site for information on<a
|
||||
href="http://www.icu-project.org/docs/eclipse_howto/eclipse_howto.html">
|
||||
|
Loading…
Reference in New Issue
Block a user