2012-12-21 20:36:24 +00:00
|
|
|
#
|
2013-01-04 13:58:33 +00:00
|
|
|
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
|
2012-12-21 20:36:24 +00:00
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
|
|
#
|
|
|
|
# This code is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License version 2 only, as
|
|
|
|
# published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# This code is distributed in the hope that it will be useful, but WITHOUT
|
|
|
|
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
|
|
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
# version 2 for more details (a copy is included in the LICENSE file that
|
|
|
|
# accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License version
|
|
|
|
# 2 along with this work; if not, write to the Free Software Foundation,
|
|
|
|
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
#
|
|
|
|
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
|
|
|
|
# or visit www.oracle.com if you need additional information or have any
|
|
|
|
# questions.
|
|
|
|
#
|
|
|
|
|
|
|
|
application.title=nashorn
|
|
|
|
|
2013-01-08 03:21:00 +00:00
|
|
|
# location of JDK embedded ASM sources
|
2013-03-01 10:28:29 +00:00
|
|
|
jdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
|
2013-01-08 03:21:00 +00:00
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# source and target levels
|
|
|
|
build.compiler=modern
|
|
|
|
javac.source=1.7
|
|
|
|
javac.target=1.7
|
|
|
|
|
|
|
|
# nashorn version information
|
|
|
|
nashorn.version=0.1
|
|
|
|
nashorn.fullversion=0.1
|
|
|
|
nashorn.product.name=Oracle Nashorn
|
|
|
|
|
|
|
|
# This directory is removed when the project is cleaned:
|
|
|
|
build.dir=build
|
|
|
|
build.classes.dir=${build.dir}/classes
|
|
|
|
build.zip=${build.dir}/nashorn.zip
|
|
|
|
build.gzip=${build.dir}/nashorn.tar.gz
|
|
|
|
|
|
|
|
# nashorn Shell tool
|
|
|
|
nashorn.shell.tool=jdk.nashorn.tools.Shell
|
|
|
|
|
|
|
|
# nasgen tool
|
|
|
|
nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
|
|
|
|
|
|
|
|
# parallel test runner tool
|
|
|
|
parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
|
|
|
|
|
|
|
|
# test classes directory
|
|
|
|
build.test.classes.dir=${build.dir}/test/classes
|
2013-02-07 11:47:29 +00:00
|
|
|
# nashorn test jar - internal tests jar and api tests jar
|
|
|
|
nashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
|
|
|
|
nashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# test results directory
|
|
|
|
build.test.results.dir=${build.dir}/test/reports
|
|
|
|
|
|
|
|
# This directory is removed when the project is cleaned:
|
|
|
|
dist.dir=dist
|
|
|
|
dist.jar=${dist.dir}/nashorn.jar
|
|
|
|
dist.javadoc.dir=${dist.dir}/javadoc
|
|
|
|
|
2013-04-02 14:37:22 +00:00
|
|
|
# nashorn javafx shell
|
|
|
|
fxshell.tool = jdk.nashorn.tools.FXShell
|
|
|
|
fxshell.classes.dir = ${build.dir}/fxshell/classes
|
|
|
|
fxshell.dir = tools/fxshell
|
|
|
|
fxshell.jar = ${dist.dir}/nashornfx.jar
|
|
|
|
|
2013-11-25 13:10:02 +00:00
|
|
|
# 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
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# jars refererred
|
|
|
|
file.reference.testng.jar=test/lib/testng.jar
|
|
|
|
|
|
|
|
# Set testng verbose level
|
|
|
|
# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed)
|
|
|
|
# Actually, this is a lie: you can specify -1 and this will put TestNG in
|
|
|
|
# debug mode (no longer slicing off stack traces and all)."
|
|
|
|
|
|
|
|
testng.verbose=2
|
|
|
|
|
|
|
|
# TestNG listeners - we want to replace TestNG's own JUnit
|
|
|
|
# reporter, but want everything else provided by default
|
|
|
|
# Unfortunately, we've to clone the other default reporters here.
|
|
|
|
|
|
|
|
testng.listeners=\
|
|
|
|
org.testng.reporters.SuiteHTMLReporter, \
|
2013-05-29 10:11:07 +00:00
|
|
|
org.testng.reporters.TestHTMLReporter, \
|
2012-12-21 20:36:24 +00:00
|
|
|
org.testng.reporters.jq.Main, \
|
|
|
|
org.testng.reporters.FailedReporter, \
|
|
|
|
org.testng.reporters.XMLReporter \
|
|
|
|
org.testng.reporters.EmailableReporter, \
|
|
|
|
jdk.nashorn.internal.test.framework.JSJUnitReportReporter
|
|
|
|
|
|
|
|
javac.debug=true
|
|
|
|
javac.encoding=ascii
|
|
|
|
javac.classpath=\
|
2013-02-14 12:22:26 +00:00
|
|
|
${build.classes.dir}
|
2012-12-21 20:36:24 +00:00
|
|
|
javac.test.classpath=\
|
|
|
|
${build.classes.dir}:\
|
|
|
|
${build.test.classes.dir}:\
|
|
|
|
${file.reference.testng.jar}
|
|
|
|
|
|
|
|
meta.inf.dir=${src.dir}/META-INF
|
|
|
|
|
|
|
|
run.classpath=\
|
|
|
|
${build.classes.dir}
|
|
|
|
|
|
|
|
# test scripts to run
|
|
|
|
test.dir=test
|
|
|
|
test.script.dir=test/script
|
|
|
|
test.basic.dir=test/script/basic
|
|
|
|
test.error.dir=test/script/error
|
|
|
|
test.sandbox.dir=test/script/sandbox
|
2013-02-07 11:47:29 +00:00
|
|
|
test.trusted.dir=test/script/trusted
|
2012-12-21 20:36:24 +00:00
|
|
|
test.external.dir=test/script/external
|
|
|
|
test262.dir=${test.external.dir}/test262
|
|
|
|
test262.suite.dir=${test262.dir}/test/suite
|
2013-10-21 09:31:03 +00:00
|
|
|
testjfx.dir=${test.script.dir}/jfx
|
2013-12-12 13:32:43 +00:00
|
|
|
testmarkdown.dir=${test.script.dir}/markdown
|
2012-12-21 20:36:24 +00:00
|
|
|
|
|
|
|
test-sys-prop.test.dir=${test.dir}
|
2013-02-07 11:47:29 +00:00
|
|
|
test-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
|
2012-12-21 20:36:24 +00:00
|
|
|
test-sys-prop.test262.suite.dir=${test262.suite.dir}
|
|
|
|
test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
|
|
|
|
test-sys-prop.test.basic.dir=${test.basic.dir}
|
|
|
|
|
|
|
|
# framework root for our script tests
|
|
|
|
test-sys-prop.test.js.framework=${test.script.dir}/assert.js
|
|
|
|
|
|
|
|
# Control the verbosity of ParserTest
|
|
|
|
test-sys-prop.parsertest.verbose=false
|
|
|
|
|
|
|
|
# turn on/off scripting mode for parser tests
|
|
|
|
test-sys-prop.parsertest.scripting=true
|
|
|
|
|
|
|
|
# turn on/off test262 scripts for parser tests
|
|
|
|
test-sys-prop.parsertest.test262=false
|
|
|
|
|
|
|
|
# Control the verbosity of the CompilerTest
|
|
|
|
test-sys-prop.compilertest.verbose=false
|
|
|
|
|
|
|
|
# turn on/off scripting mode for compiler tests
|
|
|
|
test-sys-prop.compilertest.scripting=true
|
|
|
|
|
|
|
|
# turn on/off test262 scripts for compiler tests
|
|
|
|
test-sys-prop.compilertest.test262=false
|
|
|
|
|
|
|
|
# test directory to be excluded.
|
|
|
|
test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
|
|
|
|
|
|
|
|
# run everything that's js in here, without checking file headers for test annotations
|
|
|
|
test-sys-prop.test.js.unchecked.dir=${test262.dir}
|
|
|
|
|
|
|
|
# test root for octane
|
2013-01-09 17:02:40 +00:00
|
|
|
octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
|
2012-12-21 20:36:24 +00:00
|
|
|
|
2013-01-11 12:56:18 +00:00
|
|
|
# run octane benchmars in separate processes?
|
|
|
|
octane-test-sys-prop.separate.process=true
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# framework root for octane
|
|
|
|
octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
|
|
|
|
|
|
|
|
# list of tests to be excluded
|
2013-01-11 12:56:18 +00:00
|
|
|
# mandreel excluded due to OOM
|
2013-01-10 13:33:25 +00:00
|
|
|
octane-test-sys-prop.test.js.exclude.list=\
|
|
|
|
base.js \
|
2013-01-11 12:56:18 +00:00
|
|
|
run.js \
|
|
|
|
mandreel.js
|
2012-12-21 20:36:24 +00:00
|
|
|
|
|
|
|
# test root for sunspider
|
2013-01-09 17:02:40 +00:00
|
|
|
sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/
|
2012-12-21 20:36:24 +00:00
|
|
|
|
|
|
|
# framework root for sunspider
|
|
|
|
sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
|
|
|
|
|
|
|
|
# list of tests to be excluded
|
|
|
|
sunspider-test-sys-prop.test.js.exclude.list=
|
|
|
|
|
|
|
|
# execute our script tests in shared nashorn context or not?
|
|
|
|
test-sys-prop.test.js.shared.context=false
|
|
|
|
|
|
|
|
# execute test262 tests in shared nashorn context or not?
|
|
|
|
test262-test-sys-prop.test.js.shared.context=true
|
|
|
|
|
|
|
|
# test262 test root
|
|
|
|
test262-test-sys-prop.test.js.roots=${test262.suite.dir}
|
|
|
|
# test262 enable/disable strict mode tests
|
|
|
|
test262-test-sys-prop.test.js.enable.strict.mode=true
|
|
|
|
|
|
|
|
# file containing test262 tests to be excluded
|
|
|
|
# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
|
|
|
|
|
|
|
|
# list of test262 test dirs to be excluded
|
|
|
|
test262-test-sys-prop.test.js.exclude.dir=\
|
2013-06-17 08:26:05 +00:00
|
|
|
${test262.suite.dir}/intl402/ \
|
|
|
|
${test262.suite.dir}/bestPractice/
|
2012-12-21 20:36:24 +00:00
|
|
|
|
2013-05-08 14:48:33 +00:00
|
|
|
test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# test262 test frameworks
|
|
|
|
test262-test-sys-prop.test.js.framework=\
|
2013-07-08 11:03:50 +00:00
|
|
|
--class-cache-size=0 \
|
|
|
|
--no-java \
|
|
|
|
--no-typed-arrays \
|
2012-12-21 20:36:24 +00:00
|
|
|
-timezone=PST \
|
|
|
|
${test.script.dir}/test262.js \
|
|
|
|
${test262.dir}/test/harness/framework.js \
|
|
|
|
${test262.dir}/test/harness/sta.js
|
|
|
|
|
2013-12-12 13:32:43 +00:00
|
|
|
# testmarkdown test root
|
|
|
|
testmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}
|
|
|
|
|
|
|
|
# execute testmarkdown tests in shared nashorn context or not?
|
|
|
|
testmarkdown-test-sys-prop.test.js.shared.context=false
|
|
|
|
|
|
|
|
# framework root for markdown script tests
|
|
|
|
testmarkdown-test-sys-prop.test.js.framework=\
|
|
|
|
${test.script.dir}${file.separator}markdown.js
|
|
|
|
|
2013-10-21 09:31:03 +00:00
|
|
|
# testjfx test root
|
|
|
|
testjfx-test-sys-prop.test.js.roots=${testjfx.dir}
|
|
|
|
|
|
|
|
# execute testjfx tests in shared nashorn context or not?
|
|
|
|
testjfx-test-sys-prop.test.js.shared.context=false
|
|
|
|
|
|
|
|
# framework root for our script tests
|
|
|
|
testjfx-test-sys-prop.test.js.framework=\
|
|
|
|
-fx \
|
|
|
|
${test.script.dir}${file.separator}jfx.js
|
|
|
|
|
|
|
|
file.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar
|
|
|
|
file.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar
|
|
|
|
file.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar
|
|
|
|
file.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar
|
|
|
|
testjfx.run.test.classpath=\
|
|
|
|
${file.reference.jemmyfx.jar}${path.separator}\
|
|
|
|
${file.reference.jemmycore.jar}${path.separator}\
|
|
|
|
${file.reference.jemmyawtinput.jar}${path.separator}\
|
|
|
|
${file.reference.testng.jar}${path.separator}\
|
|
|
|
${nashorn.internal.tests.jar}${path.separator}\
|
2013-11-05 09:09:40 +00:00
|
|
|
${nashorn.api.tests.jar}
|
2013-10-21 09:31:03 +00:00
|
|
|
|
|
|
|
# testjfx VM options for script tests with @fork option
|
|
|
|
testjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
run.test.classpath=\
|
|
|
|
${file.reference.testng.jar}:\
|
2013-02-07 11:47:29 +00:00
|
|
|
${nashorn.internal.tests.jar}:\
|
|
|
|
${nashorn.api.tests.jar}
|
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
src.dir=src
|
|
|
|
test.src.dir=test/src
|
|
|
|
|
2013-09-19 13:39:01 +00:00
|
|
|
# -Xmx is used for all tests, -Xms only for octane benchmark
|
2013-01-18 12:25:04 +00:00
|
|
|
run.test.xmx=3G
|
|
|
|
run.test.xms=2G
|
|
|
|
|
2013-05-24 17:57:52 +00:00
|
|
|
run.test.user.language=tr
|
|
|
|
run.test.user.country=TR
|
|
|
|
|
2013-09-19 13:39:01 +00:00
|
|
|
run.test.jvmargs.common=-server -XX:+TieredCompilation -Dfile.encoding=UTF-8 -Duser.language=${run.test.user.language} -Duser.country=${run.test.user.country} -XX:+HeapDumpOnOutOfMemoryError
|
2013-08-09 15:18:44 +00:00
|
|
|
|
|
|
|
#-XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
|
|
|
|
# -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
|
|
|
|
|
|
|
|
# turn on assertions for tests
|
|
|
|
run.test.jvmargs.main=${run.test.jvmargs.common} -ea
|
2013-05-24 17:57:52 +00:00
|
|
|
|
2013-08-08 11:08:32 +00:00
|
|
|
#-XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
|
2013-09-19 13:39:01 +00:00
|
|
|
run.test.jvmargs.octane.main=${run.test.jvmargs.common}
|
2012-12-21 20:36:24 +00:00
|
|
|
|
2013-10-04 10:51:29 +00:00
|
|
|
run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
|
2012-12-21 20:36:24 +00:00
|
|
|
|
2013-07-26 14:40:47 +00:00
|
|
|
# VM options for script tests with @fork option
|
2013-09-19 13:39:01 +00:00
|
|
|
test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}
|
2013-07-26 14:40:47 +00:00
|
|
|
|
2012-12-21 20:36:24 +00:00
|
|
|
# path of rhino.jar for benchmarks
|
|
|
|
rhino.jar=
|
|
|
|
|
|
|
|
v8.shell=d8
|
|
|
|
|
|
|
|
#path to rhino jar file
|
|
|
|
octaneperf-sys-prop.rhino.jar=${rhino.jar}
|
|
|
|
|
|
|
|
#timeout for performance tests in minutes
|
|
|
|
octaneperf-sys-prop.timeout.value=10
|
2013-02-22 10:27:40 +00:00
|
|
|
|
|
|
|
################
|
|
|
|
# codecoverage #
|
|
|
|
################
|
|
|
|
#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
|
|
|
|
make.code.coverage=false
|
|
|
|
#type of codecoverage; one of static or dynamic. Now only dynamic is supported
|
|
|
|
jcov=dynamic
|
|
|
|
#naming of CC results
|
|
|
|
#NB directory specified in the cc.dir will be cleaned up!!!
|
|
|
|
cc.dir=${basedir}/../Codecoverage_Nashorn
|
2013-03-19 14:03:24 +00:00
|
|
|
cc.result.file.name=CC_${jcov}_nashorn.xml
|
2013-02-22 10:27:40 +00:00
|
|
|
#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
|
|
|
|
jcov2.lib.dir=${basedir}/../jcov2/lib
|
|
|
|
jcov.jar=${jcov2.lib.dir}/jcov.jar
|
|
|
|
cc.include=jdk\.nashorn\.*
|
|
|
|
cc.exclude=jdk\.nashorn\.internal\.scripts\.*
|
2013-03-19 14:03:24 +00:00
|
|
|
cc.dynamic.genereate.template=true
|
|
|
|
cc.template=${cc.dir}/CC_template.xml
|
2013-02-22 10:27:40 +00:00
|
|
|
cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
|