project.properties revision 1710:7fb2bf00347b
1# 2# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# This code is free software; you can redistribute it and/or modify it 6# under the terms of the GNU General Public License version 2 only, as 7# published by the Free Software Foundation. 8# 9# This code is distributed in the hope that it will be useful, but WITHOUT 10# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12# version 2 for more details (a copy is included in the LICENSE file that 13# accompanied this code). 14# 15# You should have received a copy of the GNU General Public License version 16# 2 along with this work; if not, write to the Free Software Foundation, 17# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18# 19# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20# or visit www.oracle.com if you need additional information or have any 21# questions. 22# 23 24application.title=nashorn 25 26# location of JDK embedded ASM sources 27jdk.java.base.dir=../jdk/src/java.base/share/classes 28jdk.asm.src.dir=${jdk.java.base.dir}/jdk/internal/org/objectweb/asm 29 30# location of JDK embedded jline sources 31jdk.jline.src.dir=../jdk/src/jdk.internal.le/share/classes 32 33# source and target levels 34build.compiler=modern 35javac.source=1.9 36javac.target=1.9 37 38javadoc.option=-tag "implSpec:a:Implementation Requirements:" 39 40# nashorn version information 41nashorn.version=0.1 42nashorn.fullversion=0.1 43nashorn.product.name=Oracle Nashorn 44 45# This directory is removed when the project is cleaned: 46build.dir=build 47build.classes.dir=${build.dir}/classes 48build.zip=${build.dir}/nashorn.zip 49build.gzip=${build.dir}/nashorn.tar.gz 50 51nashorn.override.option=\ 52 -Xpatch:jdk.scripting.nashorn=${build.classes.dir}/jdk.scripting.nashorn \ 53 -Xpatch:jdk.scripting.nashorn.shell=${build.classes.dir}/jdk.scripting.nashorn.shell \ 54 -Xpatch:jdk.dynalink=${build.classes.dir}/jdk.dynalink 55 56# project directory of <nashorn> ant task 57nashorntask.dir=buildtools/nashorntask 58 59# nashorn Shell tool 60nashorn.shell.tool=jdk.nashorn.tools.Shell 61 62# nasgen tool 63nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main 64 65nasgen.module.imports=\ 66 -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \ 67 -XaddExports:java.base/jdk.internal.org.objectweb.asm.util=ALL-UNNAMED 68 69# parallel test runner tool 70parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner 71 72# test classes directory 73build.test.classes.dir=${build.dir}/test/classes 74 75# nashorn test jar - internal tests jar and api tests jar 76nashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar 77nashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar 78 79# test results directory 80build.test.results.dir=${build.dir}/test/reports 81build.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports 82build.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports 83 84# This directory is removed when the project is cleaned: 85dist.dir=dist 86dynalink.jar=${dist.dir}/dynalink.jar 87nashorn.jar=${dist.dir}/nashorn.jar 88jjs.jar=${dist.dir}/jjs.jar 89dist.javadoc.dir=${dist.dir}/javadoc 90dist.nashornapi.javadoc.dir=${dist.javadoc.dir}/nashornapi 91dist.dynalinkapi.javadoc.dir=${dist.javadoc.dir}/dynalinkapi 92 93# configuration for java flight recorder 94run.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128 95 96# test library location 97test.lib=${basedir}${file.separator}test${file.separator}lib 98 99# jars refererred 100file.reference.testng.jar=${test.lib}${file.separator}testng-6.8.jar 101file.reference.jcommander.jar=${test.lib}${file.separator}jcommander-1.27.jar 102file.reference.bsh.jar=${test.lib}${file.separator}bsh-2.0b4.jar 103file.reference.snakeyaml.jar=${test.lib}${file.separator}snakeyaml-1.6.jar 104file.reference.asmtools.jar=${test.lib}${file.separator}asmtools-60.jar 105 106# TestNG ant task classpath 107testng.ant.classpath=\ 108 ${file.reference.testng.jar}${path.separator}\ 109 ${file.reference.jcommander.jar}${path.separator}\ 110 ${file.reference.bsh.jar}${path.separator}\ 111 ${file.reference.snakeyaml.jar}${path.separator} 112 113# Set testng verbose level 114# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 115# Actually, this is a lie: you can specify -1 and this will put TestNG in 116# debug mode (no longer slicing off stack traces and all)." 117 118testng.verbose=2 119 120# TestNG listeners - we want to replace TestNG's own JUnit 121# reporter, but want everything else provided by default 122# Unfortunately, we've to clone the other default reporters here. 123 124testng.listeners=\ 125 org.testng.reporters.SuiteHTMLReporter, \ 126 org.testng.reporters.TestHTMLReporter, \ 127 org.testng.reporters.jq.Main, \ 128 org.testng.reporters.FailedReporter, \ 129 org.testng.reporters.XMLReporter \ 130 org.testng.reporters.EmailableReporter, \ 131 jdk.nashorn.internal.test.framework.JSJUnitReportReporter 132 133javac.debug=true 134javac.encoding=ascii 135javac.test.classpath=\ 136 ${build.test.classes.dir}${path.separator}\ 137 ${file.reference.testng.jar}${path.separator}\ 138 ${file.reference.jcommander.jar}${path.separator}\ 139 ${file.reference.bsh.jar}${path.separator}\ 140 ${file.reference.snakeyaml.jar} 141 142test.module.imports=\ 143 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.ir=ALL-UNNAMED \ 144 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.codegen=ALL-UNNAMED \ 145 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED \ 146 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.objects=ALL-UNNAMED \ 147 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED \ 148 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.doubleconv=ALL-UNNAMED \ 149 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.linker=ALL-UNNAMED \ 150 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.events=ALL-UNNAMED \ 151 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.options=ALL-UNNAMED \ 152 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp=ALL-UNNAMED \ 153 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp.joni=ALL-UNNAMED \ 154 -XaddExports:jdk.scripting.nashorn/jdk.nashorn.tools=ALL-UNNAMED \ 155 -XaddExports:java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED 156 157meta.inf.dir=${nashorn.module.src.dir}/META-INF 158 159run.classpath=\ 160 ${build.classes.dir} 161 162# test scripts to run 163test.dir=test 164test.nosecurity.dir=test/script/nosecurity 165test.script.dir=test/script 166test.basic.dir=test/script/basic 167test.maptests.dir=test/script/maptests 168test.error.dir=test/script/error 169test.sandbox.dir=test/script/sandbox 170test.trusted.dir=test/script/trusted 171test.external.dir=test/script/external 172test262.dir=${test.external.dir}/test262 173test262.suite.dir=${test262.dir}/test/suite 174testjfx.dir=${test.script.dir}/jfx 175testmarkdown.dir=${test.script.dir}/markdown 176 177test-sys-prop.test.dir=${test.dir} 178test-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir} 179test-sys-prop.test262.suite.dir=${test262.suite.dir} 180test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases 181test-sys-prop.test.basic.dir=${test.basic.dir} 182test-sys-prop.test.external.dir=${test.external.dir} 183test-sys-prop.test.maptests.dir=${test.maptests.dir} 184test-sys-prop.test.sandbox.dir=${test.sandbox.dir} 185test-sys-prop.test.trusted.dir=${test.trusted.dir} 186 187test-sys-prop-no-security.test.dir=${test.dir} 188test-sys-prop-no-security.test.js.roots=${test.nosecurity.dir} 189 190# framework root for our script tests 191test-sys-prop.test.js.framework=${test.script.dir}/assert.js 192test-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js 193 194# Control the verbosity of ParserTest 195test-sys-prop.parsertest.verbose=false 196 197# turn on/off scripting mode for parser tests 198test-sys-prop.parsertest.scripting=true 199test-sys-prop.parserapitest.verbose=false 200 201# turn on/off test262 scripts for parser tests 202test-sys-prop.parsertest.test262=false 203test-sys-prop.parserapitest.test262=false 204 205# Control the verbosity of the CompilerTest 206test-sys-prop.compilertest.verbose=false 207 208# turn on/off scripting mode for compiler tests 209test-sys-prop.compilertest.scripting=true 210 211# turn on/off test262 scripts for compiler tests 212test-sys-prop.compilertest.test262=false 213 214# test directory to be excluded. 215test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir} 216 217# run everything that's js in here, without checking file headers for test annotations 218test-sys-prop.test.js.unchecked.dir=${test262.dir} 219 220# test root for octane 221octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/ 222 223# run octane benchmars in separate processes? (recommended) 224octane-test-sys-prop.separate.process=true 225 226# framework root for octane 227octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js 228 229# test root for sunspider 230sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/ 231 232# framework root for sunspider 233sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js 234 235# list of tests to be excluded 236sunspider-test-sys-prop.test.js.exclude.list= 237 238# execute our script tests in shared nashorn context or not? 239test-sys-prop.test.js.shared.context=false 240 241# execute test262 tests in shared nashorn context or not? 242test262-test-sys-prop.test.js.shared.context=true 243 244# test262 test root 245test262-test-sys-prop.test.js.roots=${test262.suite.dir} 246 247# test262 enable/disable strict mode tests 248test262-test-sys-prop.test.js.enable.strict.mode=true 249 250# file containing test262 tests to be excluded 251# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml 252 253# list of test262 files to be excluded 254test262-test-sys-prop.test.js.exclude.list=\ 255 ${test262.suite.dir}/ch07/7.4/S7.4_A6.js \ 256 ${test262.suite.dir}/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js \ 257 ${test262.suite.dir}/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-170.js 258 259# list of test262 test dirs to be excluded 260test262-test-sys-prop.test.js.exclude.dir=\ 261 ${test262.suite.dir}/intl402/ \ 262 ${test262.suite.dir}/bestPractice/ 263 264test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests 265 266# test262 test frameworks 267test262-test-sys-prop.test.js.framework=\ 268 --class-cache-size=10 \ 269 --no-java \ 270 --no-typed-arrays \ 271 -timezone=PST \ 272 ${test.script.dir}/test262.js \ 273 ${test262.dir}/test/harness/framework.js \ 274 ${test262.dir}/test/harness/sta.js 275 276# testmarkdown test root 277testmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir} 278 279# execute testmarkdown tests in shared nashorn context or not? 280testmarkdown-test-sys-prop.test.js.shared.context=false 281 282# framework root for markdown script tests 283testmarkdown-test-sys-prop.test.js.framework=\ 284 ${test.script.dir}${file.separator}markdown.js 285 286# testjfx test root 287testjfx-test-sys-prop.test.js.roots=${testjfx.dir} 288 289# execute testjfx tests in shared nashorn context or not? 290testjfx-test-sys-prop.test.js.shared.context=false 291 292# framework root for our script tests 293testjfx-test-sys-prop.test.js.framework=\ 294 -fx \ 295 ${test.script.dir}${file.separator}jfx.js 296 297file.reference.jemmyfx.jar=${test.lib}${file.separator}JemmyFX.jar 298file.reference.jemmycore.jar=${test.lib}${file.separator}JemmyCore.jar 299file.reference.jemmyawtinput.jar=${test.lib}${file.separator}JemmyAWTInput.jar 300file.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar 301testjfx.run.test.classpath=\ 302 ${file.reference.jemmyfx.jar}${path.separator}\ 303 ${file.reference.jemmycore.jar}${path.separator}\ 304 ${file.reference.jemmyawtinput.jar}${path.separator}\ 305 ${file.reference.testng.jar}${path.separator}\ 306 ${file.reference.jcommander.jar}${path.separator}\ 307 ${file.reference.bsh.jar}${path.separator}\ 308 ${file.reference.snakeyaml.jar}${path.separator}\ 309 ${nashorn.internal.tests.jar}${path.separator}\ 310 ${nashorn.api.tests.jar} 311 312# testjfx VM options for script tests with @fork option 313testjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath} 314 315run.test.classpath=\ 316 ${file.reference.testng.jar}${path.separator}\ 317 ${file.reference.jcommander.jar}${path.separator}\ 318 ${file.reference.bsh.jar}${path.separator}\ 319 ${file.reference.snakeyaml.jar}${path.separator}\ 320 ${nashorn.internal.tests.jar}${path.separator}\ 321 ${nashorn.api.tests.jar} 322 323dynalink.module.src.dir=src/jdk.dynalink/share/classes 324dynalink.module.classes.dir=${build.classes.dir}/jdk.dynalink 325nashorn.module.src.dir=src/jdk.scripting.nashorn/share/classes 326nashorn.module.classes.dir=${build.classes.dir}/jdk.scripting.nashorn 327nashorn.shell.module.src.dir=src/jdk.scripting.nashorn.shell/share/classes 328nashorn.shell.module.classes.dir=${build.classes.dir}/jdk.scripting.nashorn.shell 329 330src.dir=${dynalink.module.src.dir}${path.separator}\ 331 ${nashorn.module.src.dir}${path.separator}\ 332 ${nashorn.shell.module.src.dir}${path.separator}\ 333 ${jdk.jline.src.dir} 334 335test.src.dir=test/src 336 337# -Xmx is used for all tests, -Xms only for octane benchmark 338run.test.xmx=2G 339run.test.xms=2G 340 341# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames, 342# or everything will as of the now drown in lambda forms and be cut off. 343# 344#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \ 345 346jfr.args= 347 348run.test.user.language=tr 349run.test.user.country=TR 350 351run.test.jvmargs.common=\ 352 -server \ 353 ${test.module.imports} \ 354 ${nashorn.override.option} \ 355 -Dfile.encoding=UTF-8 \ 356 -Duser.language=${run.test.user.language} \ 357 -Duser.country=${run.test.user.country} \ 358 -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \ 359 ${jfr.args} \ 360 -XX:+HeapDumpOnOutOfMemoryError 361 362# turn on assertions for tests 363run.test.jvmargs.main=${run.test.jvmargs.common} -esa -ea 364 365# Extra jvmargs that might be useful for debugging 366# and performance improvements/monitoring 367# 368# -XX:+UnlockDiagnosticVMOptions 369# 370# turn off compressed class pointers in metaspace 371# -XX:-UseCompressedKlassPointers 372# 373# dump the heap after every GC 374# -XX:+PrintHeapAtGC 375# 376# manually set a metaspace size for class data 377# -XX:ClassMetaspaceSize=300M 378# 379# print out methods compiled 380# -XX:+PrintCompilation 381# 382# print all compiled nmethods with oopmaps and lots of other info 383# -XX:+PrintNMethods 384# 385# activate the generic "UseNewCode" flag to test whatever functionality 386# lies behind it. This is the preferred way to test a, yet flagless, 387# feature in HotSpot - for example, the uncommon trap placement fix 388# was hidden behind this flag before it became the default 389# 390# -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode 391# 392# Crank up the type profile level to 222, which has some warmup 393# penalties, but produces much better code for JavaScript, where better 394# and more intrusive type profiling is required to get rid of 395# a large amount of unnecessary guard code, that could not otherwise 396# be eliminated 397# 398# -XX:TypeProfileLevel=222 399# 400 401# Use best known performance options for octane 402run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:TypeProfileLevel=222 403 404# Security manager args - make sure that we run with the nashorn.policy that the build creates 405run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy 406 407# VM options for script tests with @fork option 408test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath} 409# VM options for no-security script tests with @fork option - same as above but without jvmsecurityargs 410test-sys-prop-no-security.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${run.test.classpath} 411 412# path of rhino.jar for benchmarks 413rhino.dir= 414rhino.jar=${rhino.dir}/js.jar 415 416v8.shell=d8 417 418# How many iterations should 'ant octane' run for each 419# benchmark 420octane.iterations=25 421 422# List of octane tests to run, as properties prefixed with 423# "octane.benchmark." mapping to the benchmark name in 424# the test harness 425# 426# Octane tests that are disabled should have their entire line 427# commented out Tests may be disabled for functionality reasons when 428# they have bugs or when the runtime doesn't handle them (yet) 429octane.benchmark.box2d=box2d 430#octane.benchmark.code-load=code-load 431octane.benchmark.crypto=crypto 432octane.benchmark.deltablue=deltablue 433octane.benchmark.earley-boyer=earley-boyer 434octane.benchmark.gbemu=gbemu 435octane.benchmark.navier-stokes=navier-stokes 436octane.benchmark.mandreel=mandreel 437octane.benchmark.pdfjs=pdfjs 438octane.benchmark.raytrace=raytrace 439octane.benchmark.regexp=regexp 440octane.benchmark.richards=richards 441octane.benchmark.splay=splay 442#octane.benchmark.typescript=typescript 443#octane.benchmark.zlib=zlib 444 445#path to rhino jar file 446octaneperf-sys-prop.rhino.jar=${rhino.jar} 447 448#timeout for performance tests in minutes 449octaneperf-sys-prop.timeout.value=10 450 451#how many iterations to run sunspider after warmup 452sunspider.iterations=3000 453 454################# 455# code coverage # 456################# 457 458#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties 459make.code.coverage=false 460 461#type of codecoverage; one of static or dynamic. Now only dynamic is supported 462jcov=dynamic 463 464#naming of CC results 465#NB directory specified in the cc.dir will be cleaned up!!! 466cc.dir=${basedir}/../Codecoverage_Nashorn 467cc.result.file.name=CC_${jcov}_nashorn.xml 468 469#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties 470jcov2.lib.dir=${basedir}/../jcov2/lib 471jcov.jar=${jcov2.lib.dir}/jcov.jar 472cc.include=jdk\.nashorn\.* 473cc.exclude=jdk\.nashorn\.internal\.scripts\.* 474cc.dynamic.genereate.template=true 475cc.template=${cc.dir}/CC_template.xml 476cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name} 477