project.properties revision 867:403fa5685a2f
11541Srgrimes# 21541Srgrimes# 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 331541Srgrimes 341541Srgrimes# nashorn version information 351541Srgrimesnashorn.version=0.1 361541Srgrimesnashorn.fullversion=0.1 3711982Sjoergnashorn.product.name=Oracle Nashorn 381541Srgrimes 391541Srgrimes# This directory is removed when the project is cleaned: 402175Spaulbuild.dir=build 412175Spaulbuild.classes.dir=${build.dir}/classes 422175Spaulbuild.zip=${build.dir}/nashorn.zip 4311982Sjoergbuild.gzip=${build.dir}/nashorn.tar.gz 4411982Sjoerg 451541Srgrimes# nashorn Shell tool 461541Srgrimesnashorn.shell.tool=jdk.nashorn.tools.Shell 471541Srgrimes 481541Srgrimes# nasgen tool 491541Srgrimesnasgen.tool=jdk.nashorn.internal.tools.nasgen.Main 509336Sdfr 519336Sdfr# parallel test runner tool 529336Sdfrparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner 539336Sdfr 549336Sdfr# test classes directory 559336Sdfrbuild.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 601828Sdg 611541Srgrimes# test results directory 621828Sdgbuild.test.results.dir=${build.dir}/test/reports 631828Sdg 641541Srgrimes# This directory is removed when the project is cleaned: 651828Sdgdist.dir=dist 661541Srgrimesdist.jar=${dist.dir}/nashorn.jar 671541Srgrimesdist.javadoc.dir=${dist.dir}/javadoc 689336Sdfr 691541Srgrimes# nashorn javafx shell 701541Srgrimesfxshell.tool = jdk.nashorn.tools.FXShell 711541Srgrimesfxshell.classes.dir = ${build.dir}/fxshell/classes 729336Sdfrfxshell.dir = tools/fxshell 739336Sdfrfxshell.jar = ${dist.dir}/nashornfx.jar 749336Sdfr 759336Sdfr# configuration for java flight recorder 769336Sdfrrun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128 779336Sdfr 789336Sdfr# jars refererred 799336Sdfrfile.reference.testng.jar=test/lib/testng.jar 809336Sdfr 819336Sdfr# Set testng verbose level 821541Srgrimes# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 839336Sdfr# Actually, this is a lie: you can specify -1 and this will put TestNG in 849336Sdfr# debug mode (no longer slicing off stack traces and all)." 859336Sdfr 869336Sdfrtestng.verbose=2 879336Sdfr 889336Sdfr# TestNG listeners - we want to replace TestNG's own JUnit 891541Srgrimes# reporter, but want everything else provided by default 901541Srgrimes# Unfortunately, we've to clone the other default reporters here. 919336Sdfr 929336Sdfrtestng.listeners=\ 939336Sdfr org.testng.reporters.SuiteHTMLReporter, \ 949336Sdfr org.testng.reporters.TestHTMLReporter, \ 959336Sdfr org.testng.reporters.jq.Main, \ 969336Sdfr org.testng.reporters.FailedReporter, \ 979336Sdfr org.testng.reporters.XMLReporter \ 989336Sdfr org.testng.reporters.EmailableReporter, \ 999336Sdfr jdk.nashorn.internal.test.framework.JSJUnitReportReporter 1009336Sdfr 1019336Sdfrjavac.debug=true 1029336Sdfrjavac.encoding=ascii 1039336Sdfrjavac.classpath=\ 1049336Sdfr ${build.classes.dir} 1059336Sdfrjavac.test.classpath=\ 1069336Sdfr ${build.classes.dir}:\ 1079336Sdfr ${build.test.classes.dir}:\ 1089336Sdfr ${file.reference.testng.jar} 1099336Sdfr 1109336Sdfrmeta.inf.dir=${src.dir}/META-INF 1119336Sdfr 1129336Sdfrrun.classpath=\ 1139336Sdfr ${build.classes.dir} 1149336Sdfr 1159336Sdfr# test scripts to run 1169336Sdfrtest.dir=test 1179336Sdfrtest.script.dir=test/script 1189336Sdfrtest.basic.dir=test/script/basic 1199336Sdfrtest.maptests.dir=test/script/maptests 1209336Sdfrtest.error.dir=test/script/error 1219336Sdfrtest.sandbox.dir=test/script/sandbox 1229336Sdfrtest.trusted.dir=test/script/trusted 1239336Sdfrtest.external.dir=test/script/external 1249336Sdfrtest262.dir=${test.external.dir}/test262 1259336Sdfrtest262.suite.dir=${test262.dir}/test/suite 1269336Sdfrtestjfx.dir=${test.script.dir}/jfx 1279336Sdfrtestmarkdown.dir=${test.script.dir}/markdown 1289336Sdfr 1299336Sdfrtest-sys-prop.test.dir=${test.dir} 1309336Sdfrtest-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir} 1319336Sdfrtest-sys-prop.test262.suite.dir=${test262.suite.dir} 1329336Sdfrtest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases 1339336Sdfrtest-sys-prop.test.basic.dir=${test.basic.dir} 1349336Sdfr 1359336Sdfr# framework root for our script tests 1369336Sdfrtest-sys-prop.test.js.framework=${test.script.dir}/assert.js 1379336Sdfr 1389336Sdfr# Control the verbosity of ParserTest 1399336Sdfrtest-sys-prop.parsertest.verbose=false 1409336Sdfr 1419336Sdfr# turn on/off scripting mode for parser tests 1429336Sdfrtest-sys-prop.parsertest.scripting=true 1439336Sdfr 1449336Sdfr# turn on/off test262 scripts for parser tests 1451541Srgrimestest-sys-prop.parsertest.test262=false 1461541Srgrimes 1471541Srgrimes# Control the verbosity of the CompilerTest 1481541Srgrimestest-sys-prop.compilertest.verbose=false 1491541Srgrimes 1501541Srgrimes# turn on/off scripting mode for compiler tests 1511541Srgrimestest-sys-prop.compilertest.scripting=true 1521541Srgrimes 1531541Srgrimes# turn on/off test262 scripts for compiler tests 1549336Sdfrtest-sys-prop.compilertest.test262=false 1559336Sdfr 1569336Sdfr# test directory to be excluded. 1579336Sdfrtest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir} 1589336Sdfr 1599336Sdfr# run everything that's js in here, without checking file headers for test annotations 1609336Sdfrtest-sys-prop.test.js.unchecked.dir=${test262.dir} 1619336Sdfr 1629336Sdfr# test root for octane 1639336Sdfroctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/ 1649336Sdfr 1659336Sdfr# run octane benchmars in separate processes? (recommended) 1669336Sdfroctane-test-sys-prop.separate.process=true 1679336Sdfr 1681541Srgrimes# framework root for octane 1691541Srgrimesoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js 1701541Srgrimes 1711541Srgrimes# test root for sunspider 1721541Srgrimessunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/ 1731541Srgrimes 1741541Srgrimes# framework root for sunspider 1751541Srgrimessunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js 1761541Srgrimes 1771541Srgrimes# list of tests to be excluded 1781541Srgrimessunspider-test-sys-prop.test.js.exclude.list= 1791541Srgrimes 1801541Srgrimes# execute our script tests in shared nashorn context or not? 1811541Srgrimestest-sys-prop.test.js.shared.context=false 1821541Srgrimes 1839336Sdfr# execute test262 tests in shared nashorn context or not? 1849336Sdfrtest262-test-sys-prop.test.js.shared.context=true 1859336Sdfr 1869336Sdfr# test262 test root 1879336Sdfrtest262-test-sys-prop.test.js.roots=${test262.suite.dir} 1889336Sdfr 1891541Srgrimes# test262 enable/disable strict mode tests 1901541Srgrimestest262-test-sys-prop.test.js.enable.strict.mode=true 1911541Srgrimes 1921541Srgrimes# file containing test262 tests to be excluded 1931541Srgrimes# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml 1941541Srgrimes 1951541Srgrimes# list of test262 test dirs to be excluded 1969336Sdfrtest262-test-sys-prop.test.js.exclude.dir=\ 1979336Sdfr ${test262.suite.dir}/intl402/ \ 1989336Sdfr ${test262.suite.dir}/bestPractice/ 1999336Sdfr 2001541Srgrimestest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests 2011541Srgrimes 2021541Srgrimes# test262 test frameworks 2031541Srgrimestest262-test-sys-prop.test.js.framework=\ 2041541Srgrimes --class-cache-size=10 \ 2051541Srgrimes --no-java \ 2061541Srgrimes --no-typed-arrays \ 2071541Srgrimes -timezone=PST \ 2081541Srgrimes ${test.script.dir}/test262.js \ 2091541Srgrimes ${test262.dir}/test/harness/framework.js \ 2101541Srgrimes ${test262.dir}/test/harness/sta.js 2111541Srgrimes 2121541Srgrimes# testmarkdown test root 2131541Srgrimestestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir} 2141541Srgrimes 2151541Srgrimes# execute testmarkdown tests in shared nashorn context or not? 2161541Srgrimestestmarkdown-test-sys-prop.test.js.shared.context=false 2171541Srgrimes 2181541Srgrimes# framework root for markdown script tests 2191541Srgrimestestmarkdown-test-sys-prop.test.js.framework=\ 2201541Srgrimes ${test.script.dir}${file.separator}markdown.js 2211541Srgrimes 2221541Srgrimes# testjfx test root 2231541Srgrimestestjfx-test-sys-prop.test.js.roots=${testjfx.dir} 2241541Srgrimes 2251541Srgrimes# execute testjfx tests in shared nashorn context or not? 2261541Srgrimestestjfx-test-sys-prop.test.js.shared.context=false 2271541Srgrimes 2281541Srgrimes# framework root for our script tests 2291541Srgrimestestjfx-test-sys-prop.test.js.framework=\ 2301541Srgrimes -fx \ 2311541Srgrimes ${test.script.dir}${file.separator}jfx.js 2321541Srgrimes 2331541Srgrimesfile.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar 2341541Srgrimesfile.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar 2351541Srgrimesfile.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar 2361541Srgrimesfile.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar 2371541Srgrimestestjfx.run.test.classpath=\ 2389336Sdfr ${file.reference.jemmyfx.jar}${path.separator}\ 2391541Srgrimes ${file.reference.jemmycore.jar}${path.separator}\ 2401541Srgrimes ${file.reference.jemmyawtinput.jar}${path.separator}\ 2411541Srgrimes ${file.reference.testng.jar}${path.separator}\ 2421541Srgrimes ${nashorn.internal.tests.jar}${path.separator}\ 2431541Srgrimes ${nashorn.api.tests.jar} 2441541Srgrimes 2451541Srgrimes# testjfx VM options for script tests with @fork option 2461541Srgrimestestjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath} 2471541Srgrimes 2481541Srgrimesrun.test.classpath=\ 2491541Srgrimes ${file.reference.testng.jar}:\ 2501541Srgrimes ${nashorn.internal.tests.jar}:\ 2511541Srgrimes ${nashorn.api.tests.jar} 2521541Srgrimes 2533820Swollmansrc.dir=src 2543820Swollmantest.src.dir=test/src 2553820Swollman 2563820Swollmanrun.test.xmx=3G 2573820Swollmanrun.test.xms=2G 2583820Swollman 2593820Swollman# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames, 2603820Swollman# or everything will as of the now drown in lambda forms and be cut off. 2613820Swollman# 2623820Swollman#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \ 2631541Srgrimes 2641541Srgrimesjfr.args= 2651541Srgrimes 2661541Srgrimesrun.test.user.language=tr 2671541Srgrimesrun.test.user.country=TR 2681541Srgrimes 2691541Srgrimesrun.test.jvmargs.common=\ 2709336Sdfr -server \ 2714067Swollman -Dfile.encoding=UTF-8 \ 2724067Swollman -Duser.language=${run.test.user.language} \ 2734067Swollman -Duser.country=${run.test.user.country} \ 2741541Srgrimes ${jfr.args} \ 2751541Srgrimes -XX:+HeapDumpOnOutOfMemoryError 2761541Srgrimes 2771541Srgrimes# turn on assertions for tests 2781541Srgrimesrun.test.jvmargs.main=${run.test.jvmargs.common} -ea -Dnashorn.lazy 2791541Srgrimes 2801541Srgrimes# extra jvmargs that might be useful for debugging 2811541Srgrimes# 2821541Srgrimes# -XX:+UnlockDiagnosticVMOptions 2831541Srgrimes# 2841541Srgrimes# turn off compressed class pointers in metaspace 2851541Srgrimes# -XX:-UseCompressedKlassPointers 2861541Srgrimes# 2871541Srgrimes# dump the heap after every GC 2881541Srgrimes# -XX:+PrintHeapAtGC 2893664Sphk# 2901541Srgrimes# manually set a metaspace size for class data 2911541Srgrimes# -XX:ClassMetaspaceSize=300M 2921541Srgrimes# 2931541Srgrimes# print out methods compiled 2941541Srgrimes# -XX:+PrintCompilation 2951541Srgrimes# 2961541Srgrimes# print all compiled nmethods with oopmaps and lots of other info 2971541Srgrimes# -XX:+PrintNMethods 2981541Srgrimes 2991541Srgrimes# Use best known performance options for octane 3001541Srgrimesrun.test.jvmargs.octane.main=${run.test.jvmargs.common} -Dnashorn.lazy -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode -XX:TypeProfileLevel=222 3011541Srgrimes 3021541Srgrimes# Security manager args - make sure that we run with the nashorn.policy that the build creates 3031541Srgrimesrun.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy 3041541Srgrimes 3051541Srgrimes# VM options for script tests with @fork option 3063664Sphktest-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath} 3073664Sphk 3083664Sphk# path of rhino.jar for benchmarks 3099759Sbderhino.dir= 3103664Sphkrhino.jar=${rhino.dir}/js.jar 3111541Srgrimes 3121541Srgrimesv8.shell=d8 3131541Srgrimes 3141541Srgrimes# How many iterations should 'ant octane' run for each 3151541Srgrimes# benchmark 3161541Srgrimesoctane.iterations=25 3171541Srgrimes 3181541Srgrimes# List of octane tests to run, as properties prefixed with 3191541Srgrimes# "octane.benchmark." mapping to the benchmark name in 3201541Srgrimes# the test harness 3211541Srgrimes# 3221541Srgrimes# Octane tests that are disabled should have their entire line 3231541Srgrimes# commented out Tests may be disabled for functionality reasons when 3241541Srgrimes# they have bugs or when the runtime doesn't handle them (yet) 3251541Srgrimesoctane.benchmark.box2d=box2d 3261541Srgrimes#octane.benchmark.code-load=code-load 3279336Sdfroctane.benchmark.crypto=crypto 3289336Sdfroctane.benchmark.deltablue=deltablue 3299336Sdfroctane.benchmark.earley-boyer=earley-boyer 3303664Sphkoctane.benchmark.gbemu=gbemu 3319336Sdfroctane.benchmark.navier-stokes=navier-stokes 3329336Sdfroctane.benchmark.mandreel=mandreel 3339336Sdfroctane.benchmark.pdfjs=pdfjs 3349336Sdfroctane.benchmark.raytrace=raytrace 3359336Sdfroctane.benchmark.regexp=regexp 3369336Sdfroctane.benchmark.richards=richards 3379336Sdfroctane.benchmark.splay=splay 3389336Sdfr#octane.benchmark.typescript=typescript 3399336Sdfr#octane.benchmark.zlib=zlib 3409336Sdfr 3419336Sdfr#path to rhino jar file 3429336Sdfroctaneperf-sys-prop.rhino.jar=${rhino.jar} 3439336Sdfr 3441541Srgrimes#timeout for performance tests in minutes 3451541Srgrimesoctaneperf-sys-prop.timeout.value=10 3461541Srgrimes 3471541Srgrimes#how many iterations to run sunspider after warmup 3481541Srgrimessunspider.iterations=3000 3491541Srgrimes 3501541Srgrimes################# 3511541Srgrimes# code coverage # 3521541Srgrimes################# 3531541Srgrimes 3543664Sphk#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties 3553664Sphkmake.code.coverage=false 3561541Srgrimes 3571541Srgrimes#type of codecoverage; one of static or dynamic. Now only dynamic is supported 3581541Srgrimesjcov=dynamic 3599336Sdfr 3609336Sdfr#naming of CC results 3619336Sdfr#NB directory specified in the cc.dir will be cleaned up!!! 3629336Sdfrcc.dir=${basedir}/../Codecoverage_Nashorn 3631541Srgrimescc.result.file.name=CC_${jcov}_nashorn.xml 3641541Srgrimes 3651541Srgrimes#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties 3661541Srgrimesjcov2.lib.dir=${basedir}/../jcov2/lib 3671541Srgrimesjcov.jar=${jcov2.lib.dir}/jcov.jar 3681541Srgrimescc.include=jdk\.nashorn\.* 3699336Sdfrcc.exclude=jdk\.nashorn\.internal\.scripts\.* 3709336Sdfrcc.dynamic.genereate.template=true 3711541Srgrimescc.template=${cc.dir}/CC_template.xml 3721541Srgrimescc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name} 3733664Sphk