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