project.properties revision 1148:f340141c05f1
1139825Simp# 2109481Sgrehan# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved. 3109481Sgrehan# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4109481Sgrehan# 5109481Sgrehan# This code is free software; you can redistribute it and/or modify it 6109481Sgrehan# under the terms of the GNU General Public License version 2 only, as 7109481Sgrehan# published by the Free Software Foundation. 8109481Sgrehan# 9109481Sgrehan# This code is distributed in the hope that it will be useful, but WITHOUT 10109481Sgrehan# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11109481Sgrehan# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12109481Sgrehan# version 2 for more details (a copy is included in the LICENSE file that 13109481Sgrehan# accompanied this code). 14109481Sgrehan# 15109481Sgrehan# You should have received a copy of the GNU General Public License version 16109481Sgrehan# 2 along with this work; if not, write to the Free Software Foundation, 17109481Sgrehan# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18109481Sgrehan# 19109481Sgrehan# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20109481Sgrehan# or visit www.oracle.com if you need additional information or have any 21109481Sgrehan# questions. 22109481Sgrehan# 23109481Sgrehan 24109481Sgrehanapplication.title=nashorn 25109481Sgrehan 26109481Sgrehan# location of JDK embedded ASM sources 27109481Sgrehanjdk.asm.src.dir=../jdk/src/java.base/share/classes/jdk/internal/org/objectweb/asm 28109481Sgrehan 29109481Sgrehan# source and target levels 30109481Sgrehanbuild.compiler=modern 31109481Sgrehanjavac.source=1.8 32109481Sgrehanjavac.target=1.8 33109481Sgrehan 34109481Sgrehan# nashorn version information 35153813Sgrehannashorn.version=0.1 36109481Sgrehannashorn.fullversion=0.1 37209591Smarcelnashorn.product.name=Oracle Nashorn 38109481Sgrehan 39209975Snwhitehorn# This directory is removed when the project is cleaned: 40109481Sgrehanbuild.dir=build 41153813Sgrehanbuild.classes.dir=${build.dir}/classes 42153813Sgrehanbuild.zip=${build.dir}/nashorn.zip 43153813Sgrehanbuild.gzip=${build.dir}/nashorn.tar.gz 44153813Sgrehan 45153813Sgrehan# nashorn Shell tool 46153813Sgrehannashorn.shell.tool=jdk.nashorn.tools.Shell 47153813Sgrehan 48153813Sgrehan# nasgen tool 49153813Sgrehannasgen.tool=jdk.nashorn.internal.tools.nasgen.Main 50153813Sgrehan 51153813Sgrehan# parallel test runner tool 52153813Sgrehanparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner 53153813Sgrehan 54153813Sgrehan# test classes directory 55153813Sgrehanbuild.test.classes.dir=${build.dir}/test/classes 56153813Sgrehan 57153813Sgrehan# nashorn test jar - internal tests jar and api tests jar 58153813Sgrehannashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar 59153813Sgrehannashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar 60153813Sgrehan 61153813Sgrehan# test results directory 62153813Sgrehanbuild.test.results.dir=${build.dir}/test/reports 63153813Sgrehanbuild.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports 64153813Sgrehanbuild.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports 65153813Sgrehan 66153813Sgrehan# This directory is removed when the project is cleaned: 67153813Sgrehandist.dir=dist 68153813Sgrehandist.jar=${dist.dir}/nashorn.jar 69153813Sgrehandist.javadoc.dir=${dist.dir}/javadoc 70153813Sgrehan 71153813Sgrehan# nashorn javafx shell 72153813Sgrehanfxshell.tool = jdk.nashorn.tools.FXShell 73153813Sgrehanfxshell.classes.dir = ${build.dir}/fxshell/classes 74153813Sgrehanfxshell.dir = tools/fxshell 75153813Sgrehanfxshell.jar = ${dist.dir}/nashornfx.jar 76153813Sgrehan 77153813Sgrehan# configuration for java flight recorder 78291211Snwhitehornrun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128 79291211Snwhitehorn 80291211Snwhitehorn# jars refererred 81291211Snwhitehornfile.reference.testng.jar=test/lib/testng.jar 82209975Snwhitehorn 83209975Snwhitehorn# Set testng verbose level 84209975Snwhitehorn# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 85209975Snwhitehorn# Actually, this is a lie: you can specify -1 and this will put TestNG in 86209975Snwhitehorn# debug mode (no longer slicing off stack traces and all)." 87218824Snwhitehorn 88209975Snwhitehorntestng.verbose=2 89234615Snwhitehorn 90218824Snwhitehorn# TestNG listeners - we want to replace TestNG's own JUnit 91209975Snwhitehorn# reporter, but want everything else provided by default 92291211Snwhitehorn# Unfortunately, we've to clone the other default reporters here. 93291211Snwhitehorn 94291211Snwhitehorntestng.listeners=\ 95291211Snwhitehorn org.testng.reporters.SuiteHTMLReporter, \ 96291211Snwhitehorn org.testng.reporters.TestHTMLReporter, \ 97291211Snwhitehorn org.testng.reporters.jq.Main, \ 98291211Snwhitehorn org.testng.reporters.FailedReporter, \ 99291211Snwhitehorn org.testng.reporters.XMLReporter \ 100291211Snwhitehorn org.testng.reporters.EmailableReporter, \ 101291211Snwhitehorn jdk.nashorn.internal.test.framework.JSJUnitReportReporter 102291211Snwhitehorn 103218824Snwhitehornjavac.debug=true 104209975Snwhitehornjavac.encoding=ascii 105209975Snwhitehornjavac.classpath=\ 106209975Snwhitehorn ${build.classes.dir} 107209975Snwhitehornjavac.test.classpath=\ 108209975Snwhitehorn ${build.classes.dir}:\ 109209975Snwhitehorn ${build.test.classes.dir}:\ 110209975Snwhitehorn ${file.reference.testng.jar} 111209975Snwhitehorn 112209975Snwhitehornmeta.inf.dir=${src.dir}/META-INF 113209975Snwhitehorn 114209975Snwhitehornrun.classpath=\ 115209975Snwhitehorn ${build.classes.dir} 116209975Snwhitehorn 117218824Snwhitehorn# test scripts to run 118209975Snwhitehorntest.dir=test 119209975Snwhitehorntest.nosecurity.dir=test/script/nosecurity 120209975Snwhitehorntest.script.dir=test/script 121209975Snwhitehorntest.basic.dir=test/script/basic 122209975Snwhitehorntest.maptests.dir=test/script/maptests 123209975Snwhitehorntest.error.dir=test/script/error 124209975Snwhitehorntest.sandbox.dir=test/script/sandbox 125209975Snwhitehorntest.trusted.dir=test/script/trusted 126209975Snwhitehorntest.external.dir=test/script/external 127209975Snwhitehorntest262.dir=${test.external.dir}/test262 128209975Snwhitehorntest262.suite.dir=${test262.dir}/test/suite 129218824Snwhitehorntestjfx.dir=${test.script.dir}/jfx 130209975Snwhitehorntestmarkdown.dir=${test.script.dir}/markdown 131209975Snwhitehorn 132209975Snwhitehorntest-sys-prop.test.dir=${test.dir} 133275004Semastetest-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir} 134153813Sgrehantest-sys-prop.test262.suite.dir=${test262.suite.dir} 135153813Sgrehantest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases 136153813Sgrehantest-sys-prop.test.basic.dir=${test.basic.dir} 137153813Sgrehan 138153813Sgrehantest-sys-prop-no-security.test.dir=${test.dir} 139184319Smarceltest-sys-prop-no-security.test.js.roots=${test.nosecurity.dir} 140184319Smarcel 141184319Smarcel# framework root for our script tests 142184319Smarceltest-sys-prop.test.js.framework=${test.script.dir}/assert.js 143184319Smarceltest-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js 144184319Smarcel 145184319Smarcel# Control the verbosity of ParserTest 146184319Smarceltest-sys-prop.parsertest.verbose=false 147184319Smarcel 148184319Smarcel# turn on/off scripting mode for parser tests 149184319Smarceltest-sys-prop.parsertest.scripting=true 150184319Smarcel 151184319Smarcel# turn on/off test262 scripts for parser tests 152184319Smarceltest-sys-prop.parsertest.test262=false 153184319Smarcel 154184319Smarcel# Control the verbosity of the CompilerTest 155184319Smarceltest-sys-prop.compilertest.verbose=false 156184319Smarcel 157184319Smarcel# turn on/off scripting mode for compiler tests 158184319Smarceltest-sys-prop.compilertest.scripting=true 159184319Smarcel 160184319Smarcel# turn on/off test262 scripts for compiler tests 161184319Smarceltest-sys-prop.compilertest.test262=false 162184319Smarcel 163184319Smarcel# test directory to be excluded. 164184319Smarceltest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir} 165184319Smarcel 166184319Smarcel# run everything that's js in here, without checking file headers for test annotations 167184319Smarceltest-sys-prop.test.js.unchecked.dir=${test262.dir} 168184319Smarcel 169184319Smarcel# test root for octane 170184319Smarceloctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/ 171184319Smarcel 172184319Smarcel# run octane benchmars in separate processes? (recommended) 173209975Snwhitehornoctane-test-sys-prop.separate.process=true 174109481Sgrehan 175109481Sgrehan# framework root for octane 176184319Smarceloctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js 177184319Smarcel 178184319Smarcel# test root for sunspider 179134398Smarcelsunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/ 180184319Smarcel 181184319Smarcel# framework root for sunspider 182184319Smarcelsunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js 183184319Smarcel 184184319Smarcel# list of tests to be excluded 185184319Smarcelsunspider-test-sys-prop.test.js.exclude.list= 186236141Sraj 187184319Smarcel# execute our script tests in shared nashorn context or not? 188184319Smarceltest-sys-prop.test.js.shared.context=false 189184319Smarcel 190184319Smarcel# execute test262 tests in shared nashorn context or not? 191236141Srajtest262-test-sys-prop.test.js.shared.context=true 192236141Sraj 193184319Smarcel# test262 test root 194134398Smarceltest262-test-sys-prop.test.js.roots=${test262.suite.dir} 195184319Smarcel 196184319Smarcel# test262 enable/disable strict mode tests 197184319Smarceltest262-test-sys-prop.test.js.enable.strict.mode=true 198184319Smarcel 199184319Smarcel# file containing test262 tests to be excluded 200184319Smarcel# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml 201134398Smarcel 202184319Smarcel# list of test262 test dirs to be excluded 203184319Smarceltest262-test-sys-prop.test.js.exclude.dir=\ 204184319Smarcel ${test262.suite.dir}/intl402/ \ 205184319Smarcel ${test262.suite.dir}/bestPractice/ 206134398Smarcel 207184319Smarceltest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests 208184319Smarcel 209184319Smarcel# test262 test frameworks 210184319Smarceltest262-test-sys-prop.test.js.framework=\ 211109481Sgrehan --class-cache-size=10 \ 212184319Smarcel --no-java \ 213184319Smarcel --no-typed-arrays \ 214184319Smarcel -timezone=PST \ 215184319Smarcel ${test.script.dir}/test262.js \ 216184319Smarcel ${test262.dir}/test/harness/framework.js \ 217184319Smarcel ${test262.dir}/test/harness/sta.js 218184319Smarcel 219184319Smarcel# testmarkdown test root 220184319Smarceltestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir} 221184319Smarcel 222184319Smarcel# execute testmarkdown tests in shared nashorn context or not? 223147298Sjkoshytestmarkdown-test-sys-prop.test.js.shared.context=false 224147298Sjkoshy 225209975Snwhitehorn# framework root for markdown script tests 226209975Snwhitehorntestmarkdown-test-sys-prop.test.js.framework=\ 227209975Snwhitehorn ${test.script.dir}${file.separator}markdown.js 228147298Sjkoshy 229209975Snwhitehorn# testjfx test root 230147298Sjkoshytestjfx-test-sys-prop.test.js.roots=${testjfx.dir} 231147298Sjkoshy 232147298Sjkoshy# execute testjfx tests in shared nashorn context or not? 233109481Sgrehantestjfx-test-sys-prop.test.js.shared.context=false 234 235# framework root for our script tests 236testjfx-test-sys-prop.test.js.framework=\ 237 -fx \ 238 ${test.script.dir}${file.separator}jfx.js 239 240file.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar 241file.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar 242file.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar 243file.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar 244testjfx.run.test.classpath=\ 245 ${file.reference.jemmyfx.jar}${path.separator}\ 246 ${file.reference.jemmycore.jar}${path.separator}\ 247 ${file.reference.jemmyawtinput.jar}${path.separator}\ 248 ${file.reference.testng.jar}${path.separator}\ 249 ${nashorn.internal.tests.jar}${path.separator}\ 250 ${nashorn.api.tests.jar} 251 252# testjfx VM options for script tests with @fork option 253testjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath} 254 255run.test.classpath=\ 256 ${file.reference.testng.jar}:\ 257 ${nashorn.internal.tests.jar}:\ 258 ${nashorn.api.tests.jar} 259 260src.dir=src/jdk.scripting.nashorn/share/classes 261test.src.dir=test/src 262 263# -Xmx is used for all tests, -Xms only for octane benchmark 264run.test.xmx=2G 265run.test.xms=2G 266 267# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames, 268# or everything will as of the now drown in lambda forms and be cut off. 269# 270#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \ 271 272jfr.args= 273 274run.test.user.language=tr 275run.test.user.country=TR 276 277run.test.jvmargs.common=\ 278 -server \ 279 -Dfile.encoding=UTF-8 \ 280 -Duser.language=${run.test.user.language} \ 281 -Duser.country=${run.test.user.country} \ 282 -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \ 283 ${jfr.args} \ 284 -XX:+HeapDumpOnOutOfMemoryError 285 286# turn on assertions for tests 287run.test.jvmargs.main=${run.test.jvmargs.common} -esa -ea 288 289# Extra jvmargs that might be useful for debugging 290# and performance improvements/monitoring 291# 292# -XX:+UnlockDiagnosticVMOptions 293# 294# turn off compressed class pointers in metaspace 295# -XX:-UseCompressedKlassPointers 296# 297# dump the heap after every GC 298# -XX:+PrintHeapAtGC 299# 300# manually set a metaspace size for class data 301# -XX:ClassMetaspaceSize=300M 302# 303# print out methods compiled 304# -XX:+PrintCompilation 305# 306# print all compiled nmethods with oopmaps and lots of other info 307# -XX:+PrintNMethods 308# 309# activate the generic "UseNewCode" flag to test whatever functionality 310# lies behind it. This is the preferred way to test a, yet flagless, 311# feature in HotSpot - for example, the uncommon trap placement fix 312# was hidden behind this flag before it became the default 313# 314# -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode 315# 316# Crank up the type profile level to 222, which has some warmup 317# penalties, but produces much better code for JavaScript, where better 318# and more intrusive type profiling is required to get rid of 319# a large amount of unnecessary guard code, that could not otherwise 320# be eliminated 321# 322# -XX:TypeProfileLevel=222 323# 324 325# Use best known performance options for octane 326run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:TypeProfileLevel=222 327 328# Security manager args - make sure that we run with the nashorn.policy that the build creates 329run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy 330 331# VM options for script tests with @fork option 332test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath} 333 334# path of rhino.jar for benchmarks 335rhino.dir= 336rhino.jar=${rhino.dir}/js.jar 337 338v8.shell=d8 339 340# How many iterations should 'ant octane' run for each 341# benchmark 342octane.iterations=25 343 344# List of octane tests to run, as properties prefixed with 345# "octane.benchmark." mapping to the benchmark name in 346# the test harness 347# 348# Octane tests that are disabled should have their entire line 349# commented out Tests may be disabled for functionality reasons when 350# they have bugs or when the runtime doesn't handle them (yet) 351octane.benchmark.box2d=box2d 352#octane.benchmark.code-load=code-load 353octane.benchmark.crypto=crypto 354octane.benchmark.deltablue=deltablue 355octane.benchmark.earley-boyer=earley-boyer 356octane.benchmark.gbemu=gbemu 357octane.benchmark.navier-stokes=navier-stokes 358octane.benchmark.mandreel=mandreel 359octane.benchmark.pdfjs=pdfjs 360octane.benchmark.raytrace=raytrace 361octane.benchmark.regexp=regexp 362octane.benchmark.richards=richards 363octane.benchmark.splay=splay 364#octane.benchmark.typescript=typescript 365#octane.benchmark.zlib=zlib 366 367#path to rhino jar file 368octaneperf-sys-prop.rhino.jar=${rhino.jar} 369 370#timeout for performance tests in minutes 371octaneperf-sys-prop.timeout.value=10 372 373#how many iterations to run sunspider after warmup 374sunspider.iterations=3000 375 376################# 377# code coverage # 378################# 379 380#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties 381make.code.coverage=false 382 383#type of codecoverage; one of static or dynamic. Now only dynamic is supported 384jcov=dynamic 385 386#naming of CC results 387#NB directory specified in the cc.dir will be cleaned up!!! 388cc.dir=${basedir}/../Codecoverage_Nashorn 389cc.result.file.name=CC_${jcov}_nashorn.xml 390 391#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties 392jcov2.lib.dir=${basedir}/../jcov2/lib 393jcov.jar=${jcov2.lib.dir}/jcov.jar 394cc.include=jdk\.nashorn\.* 395cc.exclude=jdk\.nashorn\.internal\.scripts\.* 396cc.dynamic.genereate.template=true 397cc.template=${cc.dir}/CC_template.xml 398cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name} 399