project.properties revision 961:5bf075eb3c23
11541Srgrimes#
211150Swollman# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
31541Srgrimes# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
41541Srgrimes# 
51541Srgrimes# This code is free software; you can redistribute it and/or modify it
61541Srgrimes# under the terms of the GNU General Public License version 2 only, as
71541Srgrimes# published by the Free Software Foundation.
81541Srgrimes# 
91541Srgrimes# This code is distributed in the hope that it will be useful, but WITHOUT
101541Srgrimes# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
111541Srgrimes# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
121541Srgrimes# version 2 for more details (a copy is included in the LICENSE file that
131541Srgrimes# accompanied this code).
141541Srgrimes# 
151541Srgrimes# You should have received a copy of the GNU General Public License version
161541Srgrimes# 2 along with this work; if not, write to the Free Software Foundation,
171541Srgrimes# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
181541Srgrimes# 
191541Srgrimes# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
201541Srgrimes# or visit www.oracle.com if you need additional information or have any
211541Srgrimes# questions.
221541Srgrimes#
231541Srgrimes
241541Srgrimesapplication.title=nashorn
251541Srgrimes
261541Srgrimes# location of JDK embedded ASM sources
271541Srgrimesjdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
281541Srgrimes
291541Srgrimes# source and target levels
301541Srgrimesbuild.compiler=modern
311541Srgrimesjavac.source=1.7
321541Srgrimesjavac.target=1.7
3311150Swollman
3418431Spst# nashorn version information
351541Srgrimesnashorn.version=0.1
361541Srgrimesnashorn.fullversion=0.1
371541Srgrimesnashorn.product.name=Oracle Nashorn
381541Srgrimes
3914546Sdg# This directory is removed when the project is cleaned:
401541Srgrimesbuild.dir=build
4112172Sphkbuild.classes.dir=${build.dir}/classes
4212172Sphkbuild.zip=${build.dir}/nashorn.zip
431541Srgrimesbuild.gzip=${build.dir}/nashorn.tar.gz
441541Srgrimes
451541Srgrimes# nashorn Shell tool
461541Srgrimesnashorn.shell.tool=jdk.nashorn.tools.Shell
471541Srgrimes
481541Srgrimes# nasgen tool
4915038Sphknasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
501541Srgrimes
5111150Swollman# parallel test runner tool
5211150Swollmanparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
531541Srgrimes
541541Srgrimes# test classes directory
551541Srgrimesbuild.test.classes.dir=${build.dir}/test/classes
561541Srgrimes
571541Srgrimes# nashorn test jar - internal tests jar and api tests jar
581541Srgrimesnashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
591541Srgrimesnashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
601541Srgrimes
611541Srgrimes# test results directory
621541Srgrimesbuild.test.results.dir=${build.dir}/test/reports
631541Srgrimesbuild.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports
641541Srgrimesbuild.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports
651541Srgrimes
661541Srgrimes# This directory is removed when the project is cleaned:
672788Sdgdist.dir=dist
681541Srgrimesdist.jar=${dist.dir}/nashorn.jar
6912820Sphkdist.javadoc.dir=${dist.dir}/javadoc
702788Sdg
711541Srgrimes# nashorn javafx shell
7212296Sphkfxshell.tool = jdk.nashorn.tools.FXShell
736348Swollmanfxshell.classes.dir = ${build.dir}/fxshell/classes
746348Swollmanfxshell.dir = tools/fxshell
7512296Sphkfxshell.jar = ${dist.dir}/nashornfx.jar
766348Swollman
7712172Sphk# configuration for java flight recorder
7812172Sphkrun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128
7912296Sphk
8015154Spst# jars refererred
8115038Sphkfile.reference.testng.jar=test/lib/testng.jar
8215038Sphk
8315038Sphk# Set testng verbose level
846348Swollman# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
857684Sdg# Actually, this is a lie: you can specify -1 and this will put TestNG in 
867684Sdg# debug mode (no longer slicing off stack traces and all)."
871541Srgrimes
8812296Sphktestng.verbose=2
8912296Sphk
9012296Sphk# TestNG listeners - we want to replace TestNG's own JUnit
9112296Sphk# reporter, but want everything else provided by default
9212296Sphk# Unfortunately, we've to clone the other default reporters here.
9312296Sphk
9412296Sphktestng.listeners=\
951541Srgrimes org.testng.reporters.SuiteHTMLReporter, \
961541Srgrimes org.testng.reporters.TestHTMLReporter, \
971541Srgrimes org.testng.reporters.jq.Main, \
981541Srgrimes org.testng.reporters.FailedReporter, \
991541Srgrimes org.testng.reporters.XMLReporter \
1001541Srgrimes org.testng.reporters.EmailableReporter, \
1011541Srgrimes jdk.nashorn.internal.test.framework.JSJUnitReportReporter
1021541Srgrimes
1031541Srgrimesjavac.debug=true
1041541Srgrimesjavac.encoding=ascii
1051541Srgrimesjavac.classpath=\
1061541Srgrimes    ${build.classes.dir}
1078429Sdgjavac.test.classpath=\
1081541Srgrimes    ${build.classes.dir}:\
1091541Srgrimes    ${build.test.classes.dir}:\
1101541Srgrimes    ${file.reference.testng.jar}
1111541Srgrimes
1127738Sdgmeta.inf.dir=${src.dir}/META-INF
1137738Sdg
1147738Sdgrun.classpath=\
1157738Sdg    ${build.classes.dir}
1161541Srgrimes
1171541Srgrimes# test scripts to run
1181541Srgrimestest.dir=test
1191541Srgrimestest.nosecurity.dir=test/script/nosecurity
1201541Srgrimestest.script.dir=test/script
1211541Srgrimestest.basic.dir=test/script/basic
1221541Srgrimestest.maptests.dir=test/script/maptests
1231541Srgrimestest.error.dir=test/script/error
1241541Srgrimestest.sandbox.dir=test/script/sandbox
1251541Srgrimestest.trusted.dir=test/script/trusted
1261541Srgrimestest.external.dir=test/script/external
1278429Sdgtest262.dir=${test.external.dir}/test262
1288429Sdgtest262.suite.dir=${test262.dir}/test/suite
1298429Sdgtestjfx.dir=${test.script.dir}/jfx
1308429Sdgtestmarkdown.dir=${test.script.dir}/markdown
1318429Sdg
1328429Sdgtest-sys-prop.test.dir=${test.dir}
1338429Sdgtest-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
1348429Sdgtest-sys-prop.test262.suite.dir=${test262.suite.dir}
1358429Sdgtest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
1368429Sdgtest-sys-prop.test.basic.dir=${test.basic.dir}
1378429Sdg
1388429Sdgtest-sys-prop-no-security.test.dir=${test.dir}
1398429Sdgtest-sys-prop-no-security.test.js.roots=${test.nosecurity.dir}
1408429Sdg
1418429Sdg# framework root for our script tests
1428429Sdgtest-sys-prop.test.js.framework=${test.script.dir}/assert.js
1438429Sdgtest-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js
1448429Sdg
1451541Srgrimes# Control the verbosity of ParserTest
1461541Srgrimestest-sys-prop.parsertest.verbose=false
14712296Sphk
1481541Srgrimes# turn on/off scripting mode for parser tests
1491541Srgrimestest-sys-prop.parsertest.scripting=true
1501541Srgrimes
1511541Srgrimes# turn on/off test262 scripts for parser tests
1521541Srgrimestest-sys-prop.parsertest.test262=false
1531541Srgrimes
1541541Srgrimes# Control the verbosity of the CompilerTest
1551541Srgrimestest-sys-prop.compilertest.verbose=false
1561541Srgrimes
1571541Srgrimes# turn on/off scripting mode for compiler tests
1581541Srgrimestest-sys-prop.compilertest.scripting=true
1591541Srgrimes
1601541Srgrimes# turn on/off test262 scripts for compiler tests
1611541Srgrimestest-sys-prop.compilertest.test262=false
1621541Srgrimes
1631541Srgrimes# test directory to be excluded.
1641541Srgrimestest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
1651541Srgrimes
1661541Srgrimes# run everything that's js in here, without checking file headers for test annotations
1671541Srgrimestest-sys-prop.test.js.unchecked.dir=${test262.dir}
1681541Srgrimes
1691541Srgrimes# test root for octane
1701541Srgrimesoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
1711541Srgrimes
1721541Srgrimes# run octane benchmars in separate processes? (recommended)
1731541Srgrimesoctane-test-sys-prop.separate.process=true
1741541Srgrimes
1751541Srgrimes# framework root for octane
1761541Srgrimesoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
1771541Srgrimes
1781541Srgrimes# test root for sunspider
1791541Srgrimessunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/
1801541Srgrimes
1811541Srgrimes# framework root for sunspider
1821541Srgrimessunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
1831541Srgrimes
1841541Srgrimes# list of tests to be excluded
1851541Srgrimessunspider-test-sys-prop.test.js.exclude.list=
1861541Srgrimes
1876283Swollman# execute our script tests in shared nashorn context or not?
1886283Swollmantest-sys-prop.test.js.shared.context=false
1896283Swollman
1906283Swollman# execute test262 tests in shared nashorn context or not?
1916283Swollmantest262-test-sys-prop.test.js.shared.context=true
1926283Swollman
1936283Swollman# test262 test root
1941541Srgrimestest262-test-sys-prop.test.js.roots=${test262.suite.dir}
1951541Srgrimes
1961541Srgrimes# test262 enable/disable strict mode tests
1971541Srgrimestest262-test-sys-prop.test.js.enable.strict.mode=true
1981541Srgrimes
1991541Srgrimes# file containing test262 tests to be excluded
2001541Srgrimes# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
2011541Srgrimes
2021541Srgrimes# list of test262 test dirs to be excluded
2031541Srgrimestest262-test-sys-prop.test.js.exclude.dir=\
2041541Srgrimes    ${test262.suite.dir}/intl402/ \
2051541Srgrimes    ${test262.suite.dir}/bestPractice/
2061541Srgrimes
2071541Srgrimestest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
2081541Srgrimes
2091541Srgrimes# test262 test frameworks
2101541Srgrimestest262-test-sys-prop.test.js.framework=\
2111541Srgrimes    --class-cache-size=10 \
2121541Srgrimes    --no-java \
2131541Srgrimes    --no-typed-arrays \
2141541Srgrimes    -timezone=PST \
2151541Srgrimes    ${test.script.dir}/test262.js \
2161541Srgrimes    ${test262.dir}/test/harness/framework.js \
2171541Srgrimes    ${test262.dir}/test/harness/sta.js
2181541Srgrimes
2191541Srgrimes# testmarkdown test root
2201541Srgrimestestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}
2211541Srgrimes
2221541Srgrimes# execute testmarkdown tests in shared nashorn context or not?
2231541Srgrimestestmarkdown-test-sys-prop.test.js.shared.context=false
2241541Srgrimes
2251541Srgrimes# framework root for markdown script tests
2261541Srgrimestestmarkdown-test-sys-prop.test.js.framework=\
2271541Srgrimes    ${test.script.dir}${file.separator}markdown.js
2281541Srgrimes
2291541Srgrimes# testjfx test root
2301541Srgrimestestjfx-test-sys-prop.test.js.roots=${testjfx.dir}
2311541Srgrimes
2321541Srgrimes# execute testjfx tests in shared nashorn context or not?
2331541Srgrimestestjfx-test-sys-prop.test.js.shared.context=false
2341541Srgrimes
2356283Swollman# framework root for our script tests
2361541Srgrimestestjfx-test-sys-prop.test.js.framework=\
2371541Srgrimes    -fx \
2381541Srgrimes    ${test.script.dir}${file.separator}jfx.js
2391541Srgrimes
2401541Srgrimesfile.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar
2411541Srgrimesfile.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar
2421541Srgrimesfile.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar
2431541Srgrimesfile.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar
2441541Srgrimestestjfx.run.test.classpath=\
2451541Srgrimes    ${file.reference.jemmyfx.jar}${path.separator}\
2461541Srgrimes    ${file.reference.jemmycore.jar}${path.separator}\
2471541Srgrimes    ${file.reference.jemmyawtinput.jar}${path.separator}\
2481541Srgrimes    ${file.reference.testng.jar}${path.separator}\
2491541Srgrimes    ${nashorn.internal.tests.jar}${path.separator}\
2501541Srgrimes    ${nashorn.api.tests.jar}
2511541Srgrimes
2521541Srgrimes# testjfx VM options for script tests with @fork option
2531541Srgrimestestjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}
2541541Srgrimes
2551541Srgrimesrun.test.classpath=\
2561541Srgrimes    ${file.reference.testng.jar}:\
2571541Srgrimes    ${nashorn.internal.tests.jar}:\
2581541Srgrimes    ${nashorn.api.tests.jar}
2591541Srgrimes
2601541Srgrimessrc.dir=src
2611541Srgrimestest.src.dir=test/src
2621541Srgrimes
2631541Srgrimes# -Xmx is used for all tests, -Xms only for octane benchmark
2641541Srgrimesrun.test.xmx=2G
2651541Srgrimesrun.test.xms=2G
26611150Swollman
2671549Srgrimes# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames,
2681541Srgrimes# or everything will as of the now drown in lambda forms and be cut off.
2691541Srgrimes#
2701541Srgrimes#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \
2711549Srgrimes
2721541Srgrimesjfr.args=
2731541Srgrimes
2741541Srgrimesrun.test.user.language=tr
2751541Srgrimesrun.test.user.country=TR
2766283Swollman
2776283Swollmanrun.test.jvmargs.common=\
2786283Swollman  -server \
2796283Swollman  -Dfile.encoding=UTF-8 \
2802788Sdg  -Duser.language=${run.test.user.language} \
2812788Sdg  -Duser.country=${run.test.user.country} \
2822788Sdg  -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \
2831541Srgrimes  ${jfr.args} \
2846283Swollman  -XX:+HeapDumpOnOutOfMemoryError
2856283Swollman
2861541Srgrimes# turn on assertions for tests
2871541Srgrimesrun.test.jvmargs.main=${run.test.jvmargs.common} -ea
2881541Srgrimes
2891541Srgrimes# extra jvmargs that might be useful for debugging
2901541Srgrimes#
2911541Srgrimes# -XX:+UnlockDiagnosticVMOptions 
2921541Srgrimes#
2931541Srgrimes# turn off compressed class pointers in metaspace
2941541Srgrimes# -XX:-UseCompressedKlassPointers  
2951541Srgrimes#
2961541Srgrimes# dump the heap after every GC
2971541Srgrimes# -XX:+PrintHeapAtGC
2981541Srgrimes#
2991541Srgrimes# manually set a metaspace size for class data 
3001541Srgrimes# -XX:ClassMetaspaceSize=300M
3011541Srgrimes#
3021541Srgrimes# print out methods compiled
3031541Srgrimes# -XX:+PrintCompilation 
3041541Srgrimes#
3051541Srgrimes# print all compiled nmethods with oopmaps and lots of other info
3061541Srgrimes# -XX:+PrintNMethods
3071541Srgrimes
3081541Srgrimes# Use best known performance options for octane
3091541Srgrimesrun.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode -XX:TypeProfileLevel=222
3101541Srgrimes
3113311Sphk# Security manager args - make sure that we run with the nashorn.policy that the build creates
3123311Sphkrun.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy
3131541Srgrimes
3141541Srgrimes# VM options for script tests with @fork option
3151541Srgrimestest-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath}
3161541Srgrimes
3171541Srgrimes# path of rhino.jar for benchmarks
3181541Srgrimesrhino.dir=
3191541Srgrimesrhino.jar=${rhino.dir}/js.jar
3201541Srgrimes
3211541Srgrimesv8.shell=d8
3221541Srgrimes
3231541Srgrimes# How many iterations should 'ant octane' run for each
3241541Srgrimes# benchmark
3251541Srgrimesoctane.iterations=25
3261541Srgrimes
3271541Srgrimes# List of octane tests to run, as properties prefixed with
3281541Srgrimes# "octane.benchmark." mapping to the benchmark name in 
3291541Srgrimes# the test harness
3301541Srgrimes#
3311541Srgrimes# Octane tests that are disabled should have their entire line
3321541Srgrimes# commented out  Tests may be disabled for functionality reasons when
3331541Srgrimes# they have bugs or when the runtime doesn't handle them (yet)
3341541Srgrimesoctane.benchmark.box2d=box2d
3351541Srgrimes#octane.benchmark.code-load=code-load
3361541Srgrimesoctane.benchmark.crypto=crypto
3371541Srgrimesoctane.benchmark.deltablue=deltablue
33811150Swollmanoctane.benchmark.earley-boyer=earley-boyer
3391541Srgrimesoctane.benchmark.gbemu=gbemu
3401541Srgrimesoctane.benchmark.navier-stokes=navier-stokes
3411541Srgrimesoctane.benchmark.mandreel=mandreel
3421541Srgrimesoctane.benchmark.pdfjs=pdfjs
3431541Srgrimesoctane.benchmark.raytrace=raytrace
3441541Srgrimesoctane.benchmark.regexp=regexp
3451541Srgrimesoctane.benchmark.richards=richards
3461541Srgrimesoctane.benchmark.splay=splay
3471541Srgrimes#octane.benchmark.typescript=typescript
3481541Srgrimes#octane.benchmark.zlib=zlib
3491541Srgrimes
3501541Srgrimes#path to rhino jar file
3517634Solahoctaneperf-sys-prop.rhino.jar=${rhino.jar}
3527634Solah
3537634Solah#timeout for performance tests in minutes
3547634Solahoctaneperf-sys-prop.timeout.value=10
3557634Solah
3567634Solah#how many iterations to run sunspider after warmup
3571541Srgrimessunspider.iterations=3000
3581541Srgrimes
3591541Srgrimes#################
3608235Sdg# code coverage #
3618235Sdg#################
3628235Sdg
3638235Sdg#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
3648235Sdgmake.code.coverage=false
3658235Sdg
3668235Sdg#type of codecoverage; one of static or dynamic. Now only dynamic is supported
3678235Sdgjcov=dynamic
3688235Sdg
3698235Sdg#naming of CC results
3708235Sdg#NB directory specified in the cc.dir will be cleaned up!!!
3718235Sdgcc.dir=${basedir}/../Codecoverage_Nashorn
3721541Srgrimescc.result.file.name=CC_${jcov}_nashorn.xml
3731541Srgrimes
3741541Srgrimes#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
3751541Srgrimesjcov2.lib.dir=${basedir}/../jcov2/lib
3761541Srgrimesjcov.jar=${jcov2.lib.dir}/jcov.jar
3771541Srgrimescc.include=jdk\.nashorn\.*
3781541Srgrimescc.exclude=jdk\.nashorn\.internal\.scripts\.*
37915038Sphkcc.dynamic.genereate.template=true
38015414Sachecc.template=${cc.dir}/CC_template.xml
38115525Sfennercc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
38215414Sache