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