blob: 5626838f560b8e85ee2e7dd54705692dad176852 [file] [log] [blame]
Jim Laskey98762d62012-12-21 16:36:24 -04001#
Michael Hauptdb8a9332015-06-02 14:35:03 +02002# Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved.
Jim Laskey98762d62012-12-21 16:36:24 -04003# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +05304#
Jim Laskey98762d62012-12-21 16:36:24 -04005# 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.
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +05308#
Jim Laskey98762d62012-12-21 16:36:24 -04009# 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).
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +053014#
Jim Laskey98762d62012-12-21 16:36:24 -040015# 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.
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +053018#
Jim Laskey98762d62012-12-21 16:36:24 -040019# 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
Athijegannathan Sundararajanb501e8f2013-01-08 08:51:00 +053026# location of JDK embedded ASM sources
Athijegannathan Sundararajan5f496062016-05-31 21:12:34 +053027jdk.java.base.dir=../jdk/src/java.base/share/classes
28jdk.asm.src.dir=${jdk.java.base.dir}/jdk/internal/org/objectweb/asm
Athijegannathan Sundararajanb501e8f2013-01-08 08:51:00 +053029
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +053030# location of JDK embedded jline sources
31jdk.jline.src.dir=../jdk/src/jdk.internal.le/share/classes
32
Jim Laskey98762d62012-12-21 16:36:24 -040033# source and target levels
34build.compiler=modern
Alan Bateman9a9e2722016-03-17 19:04:35 +000035javac.source=1.9
36javac.target=1.9
Jim Laskey98762d62012-12-21 16:36:24 -040037
Athijegannathan Sundararajan45976492016-07-12 21:18:13 +053038javadoc.option=\
Athijegannathan Sundararajan9bf4e702016-10-05 13:38:12 +053039 -tag "implSpec:a:Implementation Requirements:" \
Srinivas Damab22e6a62017-04-19 15:34:49 +053040 -tag "implNote:a:Implementation Note:" \
41 -tag "moduleGraph:a:Module Graph"
Athijegannathan Sundararajan451cd912016-02-25 13:56:23 +053042
Jim Laskey98762d62012-12-21 16:36:24 -040043# nashorn version information
44nashorn.version=0.1
45nashorn.fullversion=0.1
46nashorn.product.name=Oracle Nashorn
47
48# This directory is removed when the project is cleaned:
49build.dir=build
50build.classes.dir=${build.dir}/classes
51build.zip=${build.dir}/nashorn.zip
52build.gzip=${build.dir}/nashorn.tar.gz
53
Athijegannathan Sundararajan0c50b612016-05-03 21:27:00 +053054nashorn.override.option=\
Mandy Chung00bf56a2016-08-10 15:49:16 -070055 --patch-module jdk.scripting.nashorn=${build.classes.dir}/jdk.scripting.nashorn \
56 --patch-module jdk.scripting.nashorn.shell=${build.classes.dir}/jdk.scripting.nashorn.shell \
57 --patch-module jdk.dynalink=${build.classes.dir}/jdk.dynalink
Athijegannathan Sundararajan0c50b612016-05-03 21:27:00 +053058
Athijegannathan Sundararajan93169df2016-03-28 23:05:01 +053059# project directory of <nashorn> ant task
60nashorntask.dir=buildtools/nashorntask
61
Jim Laskey98762d62012-12-21 16:36:24 -040062# nashorn Shell tool
63nashorn.shell.tool=jdk.nashorn.tools.Shell
64
65# nasgen tool
66nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
67
Alan Bateman9a9e2722016-03-17 19:04:35 +000068nasgen.module.imports=\
Mandy Chung00bf56a2016-08-10 15:49:16 -070069 --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
70 --add-exports java.base/jdk.internal.org.objectweb.asm.util=ALL-UNNAMED
Alan Bateman9a9e2722016-03-17 19:04:35 +000071
Jim Laskey98762d62012-12-21 16:36:24 -040072# parallel test runner tool
73parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
74
75# test classes directory
76build.test.classes.dir=${build.dir}/test/classes
Marcus Lagergrena6e90a42014-05-27 21:25:07 +020077
Athijegannathan Sundararajanb247ddf2013-02-07 17:17:29 +053078# nashorn test jar - internal tests jar and api tests jar
79nashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
80nashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
81
Jim Laskey98762d62012-12-21 16:36:24 -040082# test results directory
83build.test.results.dir=${build.dir}/test/reports
Athijegannathan Sundararajandb62a412014-05-20 08:32:09 +053084build.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports
Attila Szegedi9fb4c3a2014-05-28 16:53:43 +020085build.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports
Jim Laskey98762d62012-12-21 16:36:24 -040086
87# This directory is removed when the project is cleaned:
88dist.dir=dist
Alan Bateman9a9e2722016-03-17 19:04:35 +000089dynalink.jar=${dist.dir}/dynalink.jar
90nashorn.jar=${dist.dir}/nashorn.jar
91jjs.jar=${dist.dir}/jjs.jar
Jim Laskey98762d62012-12-21 16:36:24 -040092dist.javadoc.dir=${dist.dir}/javadoc
Athijegannathan Sundararajan5f496062016-05-31 21:12:34 +053093dist.nashornapi.javadoc.dir=${dist.javadoc.dir}/nashornapi
94dist.dynalinkapi.javadoc.dir=${dist.javadoc.dir}/dynalinkapi
Jim Laskey98762d62012-12-21 16:36:24 -040095
Athijegannathan Sundararajan0b0eece2013-11-25 18:40:02 +053096# configuration for java flight recorder
97run.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128
98
Michael Hauptdb8a9332015-06-02 14:35:03 +020099# test library location
100test.lib=${basedir}${file.separator}test${file.separator}lib
101
Jim Laskey98762d62012-12-21 16:36:24 -0400102# jars refererred
Michael Haupt1f0f76b2016-02-12 17:00:54 +0100103file.reference.testng.jar=${test.lib}${file.separator}testng-6.8.jar
104file.reference.jcommander.jar=${test.lib}${file.separator}jcommander-1.27.jar
105file.reference.bsh.jar=${test.lib}${file.separator}bsh-2.0b4.jar
106file.reference.snakeyaml.jar=${test.lib}${file.separator}snakeyaml-1.6.jar
Attila Szegedi505e5092015-11-24 10:19:34 +0100107file.reference.asmtools.jar=${test.lib}${file.separator}asmtools-60.jar
Jim Laskey98762d62012-12-21 16:36:24 -0400108
Michael Haupt1f0f76b2016-02-12 17:00:54 +0100109# TestNG ant task classpath
110testng.ant.classpath=\
111 ${file.reference.testng.jar}${path.separator}\
112 ${file.reference.jcommander.jar}${path.separator}\
113 ${file.reference.bsh.jar}${path.separator}\
114 ${file.reference.snakeyaml.jar}${path.separator}
115
Jim Laskey98762d62012-12-21 16:36:24 -0400116# Set testng verbose level
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530117# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed)
118# Actually, this is a lie: you can specify -1 and this will put TestNG in
Jim Laskey98762d62012-12-21 16:36:24 -0400119# debug mode (no longer slicing off stack traces and all)."
120
121testng.verbose=2
122
123# TestNG listeners - we want to replace TestNG's own JUnit
124# reporter, but want everything else provided by default
125# Unfortunately, we've to clone the other default reporters here.
126
127testng.listeners=\
128 org.testng.reporters.SuiteHTMLReporter, \
Athijegannathan Sundararajan993430a2013-05-29 15:41:07 +0530129 org.testng.reporters.TestHTMLReporter, \
Jim Laskey98762d62012-12-21 16:36:24 -0400130 org.testng.reporters.jq.Main, \
131 org.testng.reporters.FailedReporter, \
132 org.testng.reporters.XMLReporter \
133 org.testng.reporters.EmailableReporter, \
134 jdk.nashorn.internal.test.framework.JSJUnitReportReporter
135
Jim Laskey98762d62012-12-21 16:36:24 -0400136javac.debug=true
137javac.encoding=ascii
Jim Laskey98762d62012-12-21 16:36:24 -0400138javac.test.classpath=\
Michael Haupt538f0b42015-05-13 15:41:46 +0200139 ${build.test.classes.dir}${path.separator}\
Michael Haupt1f0f76b2016-02-12 17:00:54 +0100140 ${file.reference.testng.jar}${path.separator}\
141 ${file.reference.jcommander.jar}${path.separator}\
142 ${file.reference.bsh.jar}${path.separator}\
143 ${file.reference.snakeyaml.jar}
Jim Laskey98762d62012-12-21 16:36:24 -0400144
Alan Bateman9a9e2722016-03-17 19:04:35 +0000145test.module.imports=\
Mandy Chung00bf56a2016-08-10 15:49:16 -0700146 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.ir=ALL-UNNAMED \
147 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.codegen=ALL-UNNAMED \
148 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.parser=ALL-UNNAMED \
149 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.objects=ALL-UNNAMED \
150 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED \
151 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.doubleconv=ALL-UNNAMED \
152 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.linker=ALL-UNNAMED \
153 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.events=ALL-UNNAMED \
154 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.options=ALL-UNNAMED \
155 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp=ALL-UNNAMED \
156 --add-exports jdk.scripting.nashorn/jdk.nashorn.internal.runtime.regexp.joni=ALL-UNNAMED \
157 --add-exports jdk.scripting.nashorn/jdk.nashorn.tools=ALL-UNNAMED \
Alan Batemana8e63c42016-12-01 09:04:29 +0000158 --add-exports java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED \
159 --add-opens jdk.scripting.nashorn/jdk.nashorn.internal.runtime=ALL-UNNAMED \
160 --add-opens jdk.scripting.nashorn/jdk.nashorn.internal.runtime.doubleconv=ALL-UNNAMED
Alan Bateman9a9e2722016-03-17 19:04:35 +0000161
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +0530162meta.inf.dir=${nashorn.module.src.dir}/META-INF
Jim Laskey98762d62012-12-21 16:36:24 -0400163
164run.classpath=\
165 ${build.classes.dir}
166
167# test scripts to run
168test.dir=test
Athijegannathan Sundararajandb62a412014-05-20 08:32:09 +0530169test.nosecurity.dir=test/script/nosecurity
Jim Laskey98762d62012-12-21 16:36:24 -0400170test.script.dir=test/script
171test.basic.dir=test/script/basic
Athijegannathan Sundararajan3dd99842014-02-06 17:44:37 +0530172test.maptests.dir=test/script/maptests
Jim Laskey98762d62012-12-21 16:36:24 -0400173test.error.dir=test/script/error
174test.sandbox.dir=test/script/sandbox
Athijegannathan Sundararajanb247ddf2013-02-07 17:17:29 +0530175test.trusted.dir=test/script/trusted
Jim Laskey98762d62012-12-21 16:36:24 -0400176test.external.dir=test/script/external
177test262.dir=${test.external.dir}/test262
178test262.suite.dir=${test262.dir}/test/suite
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400179testjfx.dir=${test.script.dir}/jfx
Athijegannathan Sundararajan662abf12013-12-12 19:02:43 +0530180testmarkdown.dir=${test.script.dir}/markdown
Jim Laskey98762d62012-12-21 16:36:24 -0400181
182test-sys-prop.test.dir=${test.dir}
Athijegannathan Sundararajan3dd99842014-02-06 17:44:37 +0530183test-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
Jim Laskey98762d62012-12-21 16:36:24 -0400184test-sys-prop.test262.suite.dir=${test262.suite.dir}
185test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
186test-sys-prop.test.basic.dir=${test.basic.dir}
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530187test-sys-prop.test.external.dir=${test.external.dir}
188test-sys-prop.test.maptests.dir=${test.maptests.dir}
189test-sys-prop.test.sandbox.dir=${test.sandbox.dir}
190test-sys-prop.test.trusted.dir=${test.trusted.dir}
Jim Laskey98762d62012-12-21 16:36:24 -0400191
Athijegannathan Sundararajandb62a412014-05-20 08:32:09 +0530192test-sys-prop-no-security.test.dir=${test.dir}
193test-sys-prop-no-security.test.js.roots=${test.nosecurity.dir}
194
Jim Laskey98762d62012-12-21 16:36:24 -0400195# framework root for our script tests
196test-sys-prop.test.js.framework=${test.script.dir}/assert.js
Athijegannathan Sundararajandb62a412014-05-20 08:32:09 +0530197test-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js
Jim Laskey98762d62012-12-21 16:36:24 -0400198
199# Control the verbosity of ParserTest
200test-sys-prop.parsertest.verbose=false
201
202# turn on/off scripting mode for parser tests
203test-sys-prop.parsertest.scripting=true
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530204test-sys-prop.parserapitest.verbose=false
Jim Laskey98762d62012-12-21 16:36:24 -0400205
206# turn on/off test262 scripts for parser tests
207test-sys-prop.parsertest.test262=false
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530208test-sys-prop.parserapitest.test262=false
Jim Laskey98762d62012-12-21 16:36:24 -0400209
210# Control the verbosity of the CompilerTest
211test-sys-prop.compilertest.verbose=false
212
213# turn on/off scripting mode for compiler tests
214test-sys-prop.compilertest.scripting=true
215
216# turn on/off test262 scripts for compiler tests
217test-sys-prop.compilertest.test262=false
218
219# test directory to be excluded.
220test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
221
222# run everything that's js in here, without checking file headers for test annotations
223test-sys-prop.test.js.unchecked.dir=${test262.dir}
224
225# test root for octane
Athijegannathan Sundararajanff982992013-01-09 22:32:40 +0530226octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
Jim Laskey98762d62012-12-21 16:36:24 -0400227
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200228# run octane benchmars in separate processes? (recommended)
Athijegannathan Sundararajana8b9e9a2013-01-11 18:26:18 +0530229octane-test-sys-prop.separate.process=true
230
Jim Laskey98762d62012-12-21 16:36:24 -0400231# framework root for octane
232octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
233
Jim Laskey98762d62012-12-21 16:36:24 -0400234# test root for sunspider
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100235sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/
Jim Laskey98762d62012-12-21 16:36:24 -0400236
237# framework root for sunspider
238sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
239
240# list of tests to be excluded
241sunspider-test-sys-prop.test.js.exclude.list=
242
243# execute our script tests in shared nashorn context or not?
244test-sys-prop.test.js.shared.context=false
245
246# execute test262 tests in shared nashorn context or not?
247test262-test-sys-prop.test.js.shared.context=true
248
249# test262 test root
250test262-test-sys-prop.test.js.roots=${test262.suite.dir}
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200251
Jim Laskey98762d62012-12-21 16:36:24 -0400252# test262 enable/disable strict mode tests
253test262-test-sys-prop.test.js.enable.strict.mode=true
254
255# file containing test262 tests to be excluded
256# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
257
Athijegannathan Sundararajan3cbc3ad2015-11-26 19:02:59 +0530258# list of test262 files to be excluded
259test262-test-sys-prop.test.js.exclude.list=\
260 ${test262.suite.dir}/ch07/7.4/S7.4_A6.js \
261 ${test262.suite.dir}/ch07/7.8/7.8.5/S7.8.5_A1.4_T2.js \
262 ${test262.suite.dir}/ch15/15.2/15.2.3/15.2.3.6/15.2.3.6-4-170.js
263
Jim Laskey98762d62012-12-21 16:36:24 -0400264# list of test262 test dirs to be excluded
265test262-test-sys-prop.test.js.exclude.dir=\
Athijegannathan Sundararajan135319a2013-06-17 13:56:05 +0530266 ${test262.suite.dir}/intl402/ \
Athijegannathan Sundararajan3b73e952014-08-08 19:07:17 +0530267 ${test262.suite.dir}/bestPractice/
Jim Laskey98762d62012-12-21 16:36:24 -0400268
Attila Szegedi52d25112013-05-08 16:48:33 +0200269test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
270
Jim Laskey98762d62012-12-21 16:36:24 -0400271# test262 test frameworks
272test262-test-sys-prop.test.js.framework=\
Hannes Wallnöfer5c683d12014-03-12 11:26:00 +0100273 --class-cache-size=10 \
Athijegannathan Sundararajan0a7fda82013-07-08 16:33:50 +0530274 --no-java \
275 --no-typed-arrays \
Jim Laskey98762d62012-12-21 16:36:24 -0400276 -timezone=PST \
277 ${test.script.dir}/test262.js \
278 ${test262.dir}/test/harness/framework.js \
279 ${test262.dir}/test/harness/sta.js
280
Athijegannathan Sundararajan662abf12013-12-12 19:02:43 +0530281# testmarkdown test root
Hannes Wallnöfera8ece5c2014-08-08 12:50:46 +0200282testmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}
Athijegannathan Sundararajan662abf12013-12-12 19:02:43 +0530283
284# execute testmarkdown tests in shared nashorn context or not?
285testmarkdown-test-sys-prop.test.js.shared.context=false
286
287# framework root for markdown script tests
288testmarkdown-test-sys-prop.test.js.framework=\
289 ${test.script.dir}${file.separator}markdown.js
290
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400291# testjfx test root
Hannes Wallnöfera8ece5c2014-08-08 12:50:46 +0200292testjfx-test-sys-prop.test.js.roots=${testjfx.dir}
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400293
294# execute testjfx tests in shared nashorn context or not?
295testjfx-test-sys-prop.test.js.shared.context=false
296
297# framework root for our script tests
298testjfx-test-sys-prop.test.js.framework=\
299 -fx \
300 ${test.script.dir}${file.separator}jfx.js
301
Michael Hauptdb8a9332015-06-02 14:35:03 +0200302file.reference.jemmyfx.jar=${test.lib}${file.separator}JemmyFX.jar
303file.reference.jemmycore.jar=${test.lib}${file.separator}JemmyCore.jar
304file.reference.jemmyawtinput.jar=${test.lib}${file.separator}JemmyAWTInput.jar
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400305file.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar
306testjfx.run.test.classpath=\
307 ${file.reference.jemmyfx.jar}${path.separator}\
308 ${file.reference.jemmycore.jar}${path.separator}\
309 ${file.reference.jemmyawtinput.jar}${path.separator}\
310 ${file.reference.testng.jar}${path.separator}\
Michael Haupt1f0f76b2016-02-12 17:00:54 +0100311 ${file.reference.jcommander.jar}${path.separator}\
312 ${file.reference.bsh.jar}${path.separator}\
313 ${file.reference.snakeyaml.jar}${path.separator}\
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400314 ${nashorn.internal.tests.jar}${path.separator}\
Konstantin Shefovf78f47b2013-11-05 13:09:40 +0400315 ${nashorn.api.tests.jar}
Konstantin Shefov7adddc62013-10-21 13:31:03 +0400316
317# testjfx VM options for script tests with @fork option
318testjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}
319
Jim Laskey98762d62012-12-21 16:36:24 -0400320run.test.classpath=\
Michael Haupt538f0b42015-05-13 15:41:46 +0200321 ${file.reference.testng.jar}${path.separator}\
Michael Haupt1f0f76b2016-02-12 17:00:54 +0100322 ${file.reference.jcommander.jar}${path.separator}\
323 ${file.reference.bsh.jar}${path.separator}\
324 ${file.reference.snakeyaml.jar}${path.separator}\
Michael Haupt538f0b42015-05-13 15:41:46 +0200325 ${nashorn.internal.tests.jar}${path.separator}\
Athijegannathan Sundararajanb247ddf2013-02-07 17:17:29 +0530326 ${nashorn.api.tests.jar}
327
Attila Szegedi505e5092015-11-24 10:19:34 +0100328dynalink.module.src.dir=src/jdk.dynalink/share/classes
Alan Bateman9a9e2722016-03-17 19:04:35 +0000329dynalink.module.classes.dir=${build.classes.dir}/jdk.dynalink
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +0530330nashorn.module.src.dir=src/jdk.scripting.nashorn/share/classes
Alan Bateman9a9e2722016-03-17 19:04:35 +0000331nashorn.module.classes.dir=${build.classes.dir}/jdk.scripting.nashorn
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +0530332nashorn.shell.module.src.dir=src/jdk.scripting.nashorn.shell/share/classes
Alan Bateman9a9e2722016-03-17 19:04:35 +0000333nashorn.shell.module.classes.dir=${build.classes.dir}/jdk.scripting.nashorn.shell
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +0530334
Attila Szegedi505e5092015-11-24 10:19:34 +0100335src.dir=${dynalink.module.src.dir}${path.separator}\
336 ${nashorn.module.src.dir}${path.separator}\
Athijegannathan Sundararajand37f9f42015-08-13 19:07:27 +0530337 ${nashorn.shell.module.src.dir}${path.separator}\
338 ${jdk.jline.src.dir}
339
Jim Laskey98762d62012-12-21 16:36:24 -0400340test.src.dir=test/src
341
Hannes Wallnöfer3d49dcd2013-09-19 15:39:01 +0200342# -Xmx is used for all tests, -Xms only for octane benchmark
Sergey Lugovoyc1d46ac2014-05-22 11:12:29 +0200343run.test.xmx=2G
Athijegannathan Sundararajancef1f6c2013-01-18 17:55:04 +0530344run.test.xms=2G
345
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200346# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames,
347# or everything will as of the now drown in lambda forms and be cut off.
348#
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100349#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200350
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100351jfr.args=
352
Athijegannathan Sundararajan5bf7dac2013-05-24 23:27:52 +0530353run.test.user.language=tr
354run.test.user.country=TR
355
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100356run.test.jvmargs.common=\
357 -server \
Athijegannathan Sundararajan0c50b612016-05-03 21:27:00 +0530358 ${test.module.imports} \
Srinivas Damad6628ee2016-12-02 05:39:13 -0800359 ${run.test.jvmargs.external} \
Athijegannathan Sundararajan06cba302016-12-20 19:37:31 +0530360 --add-modules jdk.scripting.nashorn.shell \
Athijegannathan Sundararajan0c50b612016-05-03 21:27:00 +0530361 ${nashorn.override.option} \
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100362 -Dfile.encoding=UTF-8 \
363 -Duser.language=${run.test.user.language} \
364 -Duser.country=${run.test.user.country} \
Attila Szegedif4c68a92014-06-20 12:25:00 +0200365 -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \
Attila Szegedie9e7dd22014-02-26 13:17:57 +0100366 ${jfr.args} \
367 -XX:+HeapDumpOnOutOfMemoryError
Athijegannathan Sundararajan8ee74682013-08-09 20:48:44 +0530368
Athijegannathan Sundararajan8ee74682013-08-09 20:48:44 +0530369# turn on assertions for tests
Michael Haupt3020dc62016-01-22 11:12:26 +0100370run.test.jvmargs.main=${run.test.jvmargs.common} -esa -ea
Athijegannathan Sundararajan5bf7dac2013-05-24 23:27:52 +0530371
Marcus Lagergren8d304982014-10-09 10:19:24 +0200372# Extra jvmargs that might be useful for debugging
373# and performance improvements/monitoring
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200374#
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530375# -XX:+UnlockDiagnosticVMOptions
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200376#
377# turn off compressed class pointers in metaspace
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530378# -XX:-UseCompressedKlassPointers
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200379#
380# dump the heap after every GC
381# -XX:+PrintHeapAtGC
382#
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530383# manually set a metaspace size for class data
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200384# -XX:ClassMetaspaceSize=300M
385#
386# print out methods compiled
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530387# -XX:+PrintCompilation
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200388#
389# print all compiled nmethods with oopmaps and lots of other info
390# -XX:+PrintNMethods
Marcus Lagergren8d304982014-10-09 10:19:24 +0200391#
392# activate the generic "UseNewCode" flag to test whatever functionality
393# lies behind it. This is the preferred way to test a, yet flagless,
394# feature in HotSpot - for example, the uncommon trap placement fix
395# was hidden behind this flag before it became the default
396#
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530397# -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode
Marcus Lagergren8d304982014-10-09 10:19:24 +0200398#
399# Crank up the type profile level to 222, which has some warmup
400# penalties, but produces much better code for JavaScript, where better
401# and more intrusive type profiling is required to get rid of
402# a large amount of unnecessary guard code, that could not otherwise
403# be eliminated
404#
405# -XX:TypeProfileLevel=222
406#
Jim Laskey98762d62012-12-21 16:36:24 -0400407
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200408# Use best known performance options for octane
Marcus Lagergren8d304982014-10-09 10:19:24 +0200409run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:TypeProfileLevel=222
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200410
411# Security manager args - make sure that we run with the nashorn.policy that the build creates
Athijegannathan Sundararajanb11a5c22017-01-24 18:08:04 +0530412run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy -Djava.security.properties=${build.dir}/nashorn.security.properties
Jim Laskey98762d62012-12-21 16:36:24 -0400413
Athijegannathan Sundararajan010a7702013-07-26 20:10:47 +0530414# VM options for script tests with @fork option
Athijegannathan Sundararajan3dd99842014-02-06 17:44:37 +0530415test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath}
Hannes Wallnöferb3fa2312015-05-05 14:23:43 +0200416# VM options for no-security script tests with @fork option - same as above but without jvmsecurityargs
417test-sys-prop-no-security.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${run.test.classpath}
Athijegannathan Sundararajan010a7702013-07-26 20:10:47 +0530418
Jim Laskey98762d62012-12-21 16:36:24 -0400419# path of rhino.jar for benchmarks
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200420rhino.dir=
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200421rhino.jar=${rhino.dir}/js.jar
Jim Laskey98762d62012-12-21 16:36:24 -0400422
423v8.shell=d8
424
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200425# How many iterations should 'ant octane' run for each
426# benchmark
427octane.iterations=25
428
429# List of octane tests to run, as properties prefixed with
Athijegannathan Sundararajan0ed9eb82015-03-09 20:14:10 +0530430# "octane.benchmark." mapping to the benchmark name in
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200431# the test harness
432#
433# Octane tests that are disabled should have their entire line
434# commented out Tests may be disabled for functionality reasons when
435# they have bugs or when the runtime doesn't handle them (yet)
436octane.benchmark.box2d=box2d
437#octane.benchmark.code-load=code-load
438octane.benchmark.crypto=crypto
439octane.benchmark.deltablue=deltablue
440octane.benchmark.earley-boyer=earley-boyer
441octane.benchmark.gbemu=gbemu
442octane.benchmark.navier-stokes=navier-stokes
443octane.benchmark.mandreel=mandreel
444octane.benchmark.pdfjs=pdfjs
445octane.benchmark.raytrace=raytrace
446octane.benchmark.regexp=regexp
447octane.benchmark.richards=richards
448octane.benchmark.splay=splay
449#octane.benchmark.typescript=typescript
450#octane.benchmark.zlib=zlib
451
Jim Laskey98762d62012-12-21 16:36:24 -0400452#path to rhino jar file
453octaneperf-sys-prop.rhino.jar=${rhino.jar}
454
455#timeout for performance tests in minutes
456octaneperf-sys-prop.timeout.value=10
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100457
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200458#how many iterations to run sunspider after warmup
459sunspider.iterations=3000
460
Marcus Lagergrena6e90a42014-05-27 21:25:07 +0200461#################
462# code coverage #
463#################
464
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200465#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100466make.code.coverage=false
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200467
468#type of codecoverage; one of static or dynamic. Now only dynamic is supported
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100469jcov=dynamic
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200470
471#naming of CC results
472#NB directory specified in the cc.dir will be cleaned up!!!
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100473cc.dir=${basedir}/../Codecoverage_Nashorn
Pavel Stepanove4b82732013-03-19 11:03:24 -0300474cc.result.file.name=CC_${jcov}_nashorn.xml
Marcus Lagergrend4287c22014-05-28 13:58:46 +0200475
476#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100477jcov2.lib.dir=${basedir}/../jcov2/lib
478jcov.jar=${jcov2.lib.dir}/jcov.jar
479cc.include=jdk\.nashorn\.*
480cc.exclude=jdk\.nashorn\.internal\.scripts\.*
Pavel Stepanove4b82732013-03-19 11:03:24 -0300481cc.dynamic.genereate.template=true
482cc.template=${cc.dir}/CC_template.xml
Eugene Drobitko406f72e2013-02-22 11:27:40 +0100483cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}