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