8029090: Developers should be able to pass nashorn properties and enable/disable JFR from command line
Reviewed-by: jlaskey, lagergren
This commit is contained in:
parent
ea4af3f2f1
commit
0b0eece256
@ -330,6 +330,9 @@
|
||||
dir=".">
|
||||
<jvmarg line="${ext.class.path}"/>
|
||||
<jvmarg line="${run.test.jvmargs.octane} -Xms${run.test.xms} -Xmx${run.test.xmx}"/>
|
||||
<syspropertyset>
|
||||
<propertyref prefix="nashorn."/>
|
||||
</syspropertyset>
|
||||
<arg value="${octane-test-sys-prop.test.js.framework}"/>
|
||||
<arg value="--"/>
|
||||
<arg value="${octane-tests}"/>
|
||||
|
@ -56,13 +56,16 @@
|
||||
<condition property="exclude.list" value="./exclude/exclude_list_cc.txt" else="./exclude/exclude_list.txt">
|
||||
<istrue value="${make.code.coverage}" />
|
||||
</condition>
|
||||
|
||||
<condition property="jfr.options" value="${run.test.jvmargs.jfr}" else="">
|
||||
<istrue value="${jfr}"/>
|
||||
</condition>
|
||||
</target>
|
||||
|
||||
<target name="init" depends="init-conditions, init-cc">
|
||||
|
||||
<!-- extends jvm args -->
|
||||
<property name="run.test.jvmargs" value="${run.test.jvmargs.main} ${run.test.cc.jvmargs}"/>
|
||||
<property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main} ${run.test.cc.jvmargs}" />
|
||||
<property name="run.test.jvmargs" value="${run.test.jvmargs.main} ${run.test.cc.jvmargs} ${jfr.options}"/>
|
||||
<property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main} ${run.test.cc.jvmargs} ${jfr.options}"/>
|
||||
|
||||
<echo message="run.test.jvmargs=${run.test.jvmargs}"/>
|
||||
<echo message="run.test.jvmargs.octane=${run.test.jvmargs.octane}"/>
|
||||
@ -328,6 +331,9 @@ grant codeBase "file:/${basedir}/test/script/basic/classloader.js" {
|
||||
verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
|
||||
<jvmarg line="${ext.class.path}"/>
|
||||
<jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
|
||||
<propertyset>
|
||||
<propertyref prefix="nashorn."/>
|
||||
</propertyset>
|
||||
<propertyset>
|
||||
<propertyref prefix="test-sys-prop."/>
|
||||
<mapper from="test-sys-prop.*" to="*" type="glob"/>
|
||||
@ -360,6 +366,9 @@ grant codeBase "file:/${basedir}/test/script/basic/classloader.js" {
|
||||
verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
|
||||
<jvmarg line="${ext.class.path}"/>
|
||||
<jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
|
||||
<propertyset>
|
||||
<propertyref prefix="nashorn."/>
|
||||
</propertyset>
|
||||
<propertyset>
|
||||
<propertyref prefix="test262-test-sys-prop."/>
|
||||
<mapper from="test262-test-sys-prop.*" to="*" type="glob"/>
|
||||
|
@ -71,6 +71,9 @@ fxshell.classes.dir = ${build.dir}/fxshell/classes
|
||||
fxshell.dir = tools/fxshell
|
||||
fxshell.jar = ${dist.dir}/nashornfx.jar
|
||||
|
||||
# configuration for java flight recorder
|
||||
run.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128
|
||||
|
||||
# jars refererred
|
||||
file.reference.testng.jar=test/lib/testng.jar
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user