project.properties revision 972:5cc4c68ee666
1190214Srpaulo#
2190214Srpaulo# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
3190214Srpaulo# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4190214Srpaulo# 
5190214Srpaulo# This code is free software; you can redistribute it and/or modify it
6190214Srpaulo# under the terms of the GNU General Public License version 2 only, as
7190214Srpaulo# published by the Free Software Foundation.
8190214Srpaulo# 
9190214Srpaulo# This code is distributed in the hope that it will be useful, but WITHOUT
10190214Srpaulo# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11190214Srpaulo# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12190214Srpaulo# version 2 for more details (a copy is included in the LICENSE file that
13190214Srpaulo# accompanied this code).
14190214Srpaulo# 
15190214Srpaulo# You should have received a copy of the GNU General Public License version
16190214Srpaulo# 2 along with this work; if not, write to the Free Software Foundation,
17190214Srpaulo# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18190214Srpaulo# 
19190214Srpaulo# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20190214Srpaulo# or visit www.oracle.com if you need additional information or have any
21190214Srpaulo# questions.
22190214Srpaulo#
23190214Srpaulo
24190214Srpauloapplication.title=nashorn
25190214Srpaulo
26190214Srpaulo# location of JDK embedded ASM sources
27190214Srpaulojdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
28190214Srpaulo
29190214Srpaulo# source and target levels
30190214Srpaulobuild.compiler=modern
31190214Srpaulojavac.source=1.7
32190214Srpaulojavac.target=1.7
33190214Srpaulo
34190214Srpaulo# nashorn version information
35190214Srpaulonashorn.version=0.1
36190214Srpaulonashorn.fullversion=0.1
37190214Srpaulonashorn.product.name=Oracle Nashorn
38190214Srpaulo
39190214Srpaulo# This directory is removed when the project is cleaned:
40190214Srpaulobuild.dir=build
41190214Srpaulobuild.classes.dir=${build.dir}/classes
42190214Srpaulobuild.zip=${build.dir}/nashorn.zip
43190214Srpaulobuild.gzip=${build.dir}/nashorn.tar.gz
44190214Srpaulo
45190214Srpaulo# nashorn Shell tool
46190214Srpaulonashorn.shell.tool=jdk.nashorn.tools.Shell
47190214Srpaulo
48190214Srpaulo# nasgen tool
49235426Sdelphijnasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
50235426Sdelphij
51235426Sdelphij# parallel test runner tool
52235426Sdelphijparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
53190214Srpaulo
54190214Srpaulo# test classes directory
55235426Sdelphijbuild.test.classes.dir=${build.dir}/test/classes
56235426Sdelphij
57235426Sdelphij# nashorn test jar - internal tests jar and api tests jar
58235426Sdelphijnashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
59235426Sdelphijnashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
60235426Sdelphij
61235426Sdelphij# test results directory
62235426Sdelphijbuild.test.results.dir=${build.dir}/test/reports
63235426Sdelphijbuild.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports
64235426Sdelphijbuild.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports
65235426Sdelphij
66235426Sdelphij# This directory is removed when the project is cleaned:
67235426Sdelphijdist.dir=dist
68235426Sdelphijdist.jar=${dist.dir}/nashorn.jar
69235426Sdelphijdist.javadoc.dir=${dist.dir}/javadoc
70235426Sdelphij
71235426Sdelphij# nashorn javafx shell
72235426Sdelphijfxshell.tool = jdk.nashorn.tools.FXShell
73190214Srpaulofxshell.classes.dir = ${build.dir}/fxshell/classes
74190214Srpaulofxshell.dir = tools/fxshell
75190214Srpaulofxshell.jar = ${dist.dir}/nashornfx.jar
76190214Srpaulo
77190214Srpaulo# configuration for java flight recorder
78190214Srpaulorun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128
79190214Srpaulo
80190214Srpaulo# jars refererred
81190214Srpaulofile.reference.testng.jar=test/lib/testng.jar
82190214Srpaulo
83190214Srpaulo# Set testng verbose level
84190214Srpaulo# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
85190214Srpaulo# Actually, this is a lie: you can specify -1 and this will put TestNG in 
86190214Srpaulo# debug mode (no longer slicing off stack traces and all)."
87190214Srpaulo
88190214Srpaulotestng.verbose=2
89190214Srpaulo
90190214Srpaulo# TestNG listeners - we want to replace TestNG's own JUnit
91235426Sdelphij# reporter, but want everything else provided by default
92235426Sdelphij# Unfortunately, we've to clone the other default reporters here.
93235426Sdelphij
94190214Srpaulotestng.listeners=\
95190214Srpaulo org.testng.reporters.SuiteHTMLReporter, \
96190214Srpaulo org.testng.reporters.TestHTMLReporter, \
97190214Srpaulo org.testng.reporters.jq.Main, \
98190214Srpaulo org.testng.reporters.FailedReporter, \
99190214Srpaulo org.testng.reporters.XMLReporter \
100190214Srpaulo org.testng.reporters.EmailableReporter, \
101190214Srpaulo jdk.nashorn.internal.test.framework.JSJUnitReportReporter
102190214Srpaulo
103190214Srpaulojavac.debug=true
104190214Srpaulojavac.encoding=ascii
105190214Srpaulojavac.classpath=\
106190214Srpaulo    ${build.classes.dir}
107190214Srpaulojavac.test.classpath=\
108190214Srpaulo    ${build.classes.dir}:\
109190214Srpaulo    ${build.test.classes.dir}:\
110190214Srpaulo    ${file.reference.testng.jar}
111235426Sdelphij
112190214Srpaulometa.inf.dir=${src.dir}/META-INF
113190214Srpaulo
114190214Srpaulorun.classpath=\
115190214Srpaulo    ${build.classes.dir}
116190214Srpaulo
117190214Srpaulo# test scripts to run
118190214Srpaulotest.dir=test
119190214Srpaulotest.nosecurity.dir=test/script/nosecurity
120235426Sdelphijtest.script.dir=test/script
121235426Sdelphijtest.basic.dir=test/script/basic
122235426Sdelphijtest.maptests.dir=test/script/maptests
123235426Sdelphijtest.error.dir=test/script/error
124235426Sdelphijtest.sandbox.dir=test/script/sandbox
125235426Sdelphijtest.trusted.dir=test/script/trusted
126190214Srpaulotest.external.dir=test/script/external
127190214Srpaulotest262.dir=${test.external.dir}/test262
128190214Srpaulotest262.suite.dir=${test262.dir}/test/suite
129190214Srpaulotestjfx.dir=${test.script.dir}/jfx
130190214Srpaulotestmarkdown.dir=${test.script.dir}/markdown
131190214Srpaulo
132190214Srpaulotest-sys-prop.test.dir=${test.dir}
133190214Srpaulotest-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
134190214Srpaulotest-sys-prop.test262.suite.dir=${test262.suite.dir}
135190214Srpaulotest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
136190214Srpaulotest-sys-prop.test.basic.dir=${test.basic.dir}
137190214Srpaulo
138190214Srpaulotest-sys-prop-no-security.test.dir=${test.dir}
139190214Srpaulotest-sys-prop-no-security.test.js.roots=${test.nosecurity.dir}
140190214Srpaulo
141190214Srpaulo# framework root for our script tests
142190214Srpaulotest-sys-prop.test.js.framework=${test.script.dir}/assert.js
143190214Srpaulotest-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js
144190214Srpaulo
145190214Srpaulo# Control the verbosity of ParserTest
146190214Srpaulotest-sys-prop.parsertest.verbose=false
147190214Srpaulo
148190214Srpaulo# turn on/off scripting mode for parser tests
149190214Srpaulotest-sys-prop.parsertest.scripting=true
150190214Srpaulo
151190214Srpaulo# turn on/off test262 scripts for parser tests
152190214Srpaulotest-sys-prop.parsertest.test262=false
153190214Srpaulo
154190214Srpaulo# Control the verbosity of the CompilerTest
155190214Srpaulotest-sys-prop.compilertest.verbose=false
156190214Srpaulo
157190214Srpaulo# turn on/off scripting mode for compiler tests
158190214Srpaulotest-sys-prop.compilertest.scripting=true
159190214Srpaulo
160190214Srpaulo# turn on/off test262 scripts for compiler tests
161190214Srpaulotest-sys-prop.compilertest.test262=false
162190214Srpaulo
163190214Srpaulo# test directory to be excluded.
164190214Srpaulotest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
165190214Srpaulo
166190214Srpaulo# run everything that's js in here, without checking file headers for test annotations
167190214Srpaulotest-sys-prop.test.js.unchecked.dir=${test262.dir}
168190214Srpaulo
169190214Srpaulo# test root for octane
170190214Srpaulooctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
171190214Srpaulo
172190214Srpaulo# run octane benchmars in separate processes? (recommended)
173190214Srpaulooctane-test-sys-prop.separate.process=true
174190214Srpaulo
175190214Srpaulo# framework root for octane
176190214Srpaulooctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
177190214Srpaulo
178241231Sdelphij# test root for sunspider
179241231Sdelphijsunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/
180241231Sdelphij
181241231Sdelphij# framework root for sunspider
182241231Sdelphijsunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
183241231Sdelphij
184241231Sdelphij# list of tests to be excluded
185241231Sdelphijsunspider-test-sys-prop.test.js.exclude.list=
186241231Sdelphij
187241231Sdelphij# execute our script tests in shared nashorn context or not?
188241231Sdelphijtest-sys-prop.test.js.shared.context=false
189190214Srpaulo
190190214Srpaulo# execute test262 tests in shared nashorn context or not?
191241231Sdelphijtest262-test-sys-prop.test.js.shared.context=true
192241231Sdelphij
193241231Sdelphij# test262 test root
194241231Sdelphijtest262-test-sys-prop.test.js.roots=${test262.suite.dir}
195241231Sdelphij
196241231Sdelphij# test262 enable/disable strict mode tests
197241231Sdelphijtest262-test-sys-prop.test.js.enable.strict.mode=true
198241231Sdelphij
199241231Sdelphij# file containing test262 tests to be excluded
200241231Sdelphij# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
201241231Sdelphij
202241231Sdelphij# list of test262 test dirs to be excluded
203241231Sdelphijtest262-test-sys-prop.test.js.exclude.dir=\
204241231Sdelphij    ${test262.suite.dir}/intl402/ \
205241231Sdelphij    ${test262.suite.dir}/bestPractice/
206241231Sdelphij
207241231Sdelphijtest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
208241231Sdelphij
209190214Srpaulo# test262 test frameworks
210190214Srpaulotest262-test-sys-prop.test.js.framework=\
211190214Srpaulo    --class-cache-size=10 \
212190214Srpaulo    --no-java \
213190214Srpaulo    --no-typed-arrays \
214190214Srpaulo    -timezone=PST \
215190214Srpaulo    ${test.script.dir}/test262.js \
216190214Srpaulo    ${test262.dir}/test/harness/framework.js \
217190214Srpaulo    ${test262.dir}/test/harness/sta.js
218190214Srpaulo
219190214Srpaulo# testmarkdown test root
220190214Srpaulotestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}
221190214Srpaulo
222190214Srpaulo# execute testmarkdown tests in shared nashorn context or not?
223190214Srpaulotestmarkdown-test-sys-prop.test.js.shared.context=false
224190214Srpaulo
225190214Srpaulo# framework root for markdown script tests
226190214Srpaulotestmarkdown-test-sys-prop.test.js.framework=\
227190214Srpaulo    ${test.script.dir}${file.separator}markdown.js
228190214Srpaulo
229190214Srpaulo# testjfx test root
230190214Srpaulotestjfx-test-sys-prop.test.js.roots=${testjfx.dir}
231190214Srpaulo
232190214Srpaulo# execute testjfx tests in shared nashorn context or not?
233190214Srpaulotestjfx-test-sys-prop.test.js.shared.context=false
234190214Srpaulo
235190214Srpaulo# framework root for our script tests
236235426Sdelphijtestjfx-test-sys-prop.test.js.framework=\
237235426Sdelphij    -fx \
238235426Sdelphij    ${test.script.dir}${file.separator}jfx.js
239190214Srpaulo
240190214Srpaulofile.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar
241190214Srpaulofile.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar
242235426Sdelphijfile.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar
243235426Sdelphijfile.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar
244235426Sdelphijtestjfx.run.test.classpath=\
245235426Sdelphij    ${file.reference.jemmyfx.jar}${path.separator}\
246235426Sdelphij    ${file.reference.jemmycore.jar}${path.separator}\
247235426Sdelphij    ${file.reference.jemmyawtinput.jar}${path.separator}\
248235426Sdelphij    ${file.reference.testng.jar}${path.separator}\
249235426Sdelphij    ${nashorn.internal.tests.jar}${path.separator}\
250235426Sdelphij    ${nashorn.api.tests.jar}
251235426Sdelphij
252235426Sdelphij# testjfx VM options for script tests with @fork option
253235426Sdelphijtestjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}
254190214Srpaulo
255190214Srpaulorun.test.classpath=\
256190214Srpaulo    ${file.reference.testng.jar}:\
257190214Srpaulo    ${nashorn.internal.tests.jar}:\
258190214Srpaulo    ${nashorn.api.tests.jar}
259190214Srpaulo
260190214Srpaulosrc.dir=src/jdk.scripting.nashorn/share/classes
261190214Srpaulotest.src.dir=test/src
262190214Srpaulo
263190214Srpaulo# -Xmx is used for all tests, -Xms only for octane benchmark
264190214Srpaulorun.test.xmx=2G
265190214Srpaulorun.test.xms=2G
266190214Srpaulo
267190214Srpaulo# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames,
268190214Srpaulo# or everything will as of the now drown in lambda forms and be cut off.
269190214Srpaulo#
270190214Srpaulo#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \
271190214Srpaulo
272190214Srpaulojfr.args=
273190214Srpaulo
274190214Srpaulorun.test.user.language=tr
275190214Srpaulorun.test.user.country=TR
276190214Srpaulo
277190214Srpaulorun.test.jvmargs.common=\
278190214Srpaulo  -server \
279190214Srpaulo  -Dfile.encoding=UTF-8 \
280190214Srpaulo  -Duser.language=${run.test.user.language} \
281190214Srpaulo  -Duser.country=${run.test.user.country} \
282190214Srpaulo  -Dnashorn.typeInfo.cacheDir=${build.dir}${file.separator}test${file.separator}type_info_cache \
283190214Srpaulo  ${jfr.args} \
284190214Srpaulo  -XX:+HeapDumpOnOutOfMemoryError
285190214Srpaulo
286190214Srpaulo# turn on assertions for tests
287190214Srpaulorun.test.jvmargs.main=${run.test.jvmargs.common} -ea
288190214Srpaulo
289190214Srpaulo# extra jvmargs that might be useful for debugging
290190214Srpaulo#
291190214Srpaulo# -XX:+UnlockDiagnosticVMOptions 
292190214Srpaulo#
293190214Srpaulo# turn off compressed class pointers in metaspace
294190214Srpaulo# -XX:-UseCompressedKlassPointers  
295190214Srpaulo#
296190214Srpaulo# dump the heap after every GC
297190214Srpaulo# -XX:+PrintHeapAtGC
298190214Srpaulo#
299190214Srpaulo# manually set a metaspace size for class data 
300190214Srpaulo# -XX:ClassMetaspaceSize=300M
301190214Srpaulo#
302190214Srpaulo# print out methods compiled
303190214Srpaulo# -XX:+PrintCompilation 
304190214Srpaulo#
305190214Srpaulo# print all compiled nmethods with oopmaps and lots of other info
306190214Srpaulo# -XX:+PrintNMethods
307190214Srpaulo
308190214Srpaulo# Use best known performance options for octane
309190214Srpaulorun.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode -XX:TypeProfileLevel=222
310190214Srpaulo
311190214Srpaulo# Security manager args - make sure that we run with the nashorn.policy that the build creates
312190214Srpaulorun.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${build.dir}/nashorn.policy
313190214Srpaulo
314190214Srpaulo# VM options for script tests with @fork option
315190214Srpaulotest-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath}
316190214Srpaulo
317190214Srpaulo# path of rhino.jar for benchmarks
318190214Srpaulorhino.dir=
319190214Srpaulorhino.jar=${rhino.dir}/js.jar
320190214Srpaulo
321190214Srpaulov8.shell=d8
322190214Srpaulo
323190214Srpaulo# How many iterations should 'ant octane' run for each
324190214Srpaulo# benchmark
325190214Srpaulooctane.iterations=25
326190214Srpaulo
327190214Srpaulo# List of octane tests to run, as properties prefixed with
328190214Srpaulo# "octane.benchmark." mapping to the benchmark name in 
329190214Srpaulo# the test harness
330190214Srpaulo#
331190214Srpaulo# Octane tests that are disabled should have their entire line
332190214Srpaulo# commented out  Tests may be disabled for functionality reasons when
333190214Srpaulo# they have bugs or when the runtime doesn't handle them (yet)
334190214Srpaulooctane.benchmark.box2d=box2d
335190214Srpaulo#octane.benchmark.code-load=code-load
336190214Srpaulooctane.benchmark.crypto=crypto
337190214Srpaulooctane.benchmark.deltablue=deltablue
338190214Srpaulooctane.benchmark.earley-boyer=earley-boyer
339241231Sdelphijoctane.benchmark.gbemu=gbemu
340190214Srpaulooctane.benchmark.navier-stokes=navier-stokes
341190214Srpaulooctane.benchmark.mandreel=mandreel
342190214Srpaulooctane.benchmark.pdfjs=pdfjs
343190214Srpaulooctane.benchmark.raytrace=raytrace
344190214Srpaulooctane.benchmark.regexp=regexp
345190214Srpaulooctane.benchmark.richards=richards
346190214Srpaulooctane.benchmark.splay=splay
347190214Srpaulo#octane.benchmark.typescript=typescript
348190214Srpaulo#octane.benchmark.zlib=zlib
349190214Srpaulo
350190214Srpaulo#path to rhino jar file
351190214Srpaulooctaneperf-sys-prop.rhino.jar=${rhino.jar}
352190214Srpaulo
353190214Srpaulo#timeout for performance tests in minutes
354190214Srpaulooctaneperf-sys-prop.timeout.value=10
355190214Srpaulo
356190214Srpaulo#how many iterations to run sunspider after warmup
357190214Srpaulosunspider.iterations=3000
358190214Srpaulo
359190214Srpaulo#################
360190214Srpaulo# code coverage #
361190214Srpaulo#################
362241231Sdelphij
363241231Sdelphij#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
364241231Sdelphijmake.code.coverage=false
365241231Sdelphij
366241231Sdelphij#type of codecoverage; one of static or dynamic. Now only dynamic is supported
367241231Sdelphijjcov=dynamic
368241231Sdelphij
369241231Sdelphij#naming of CC results
370241231Sdelphij#NB directory specified in the cc.dir will be cleaned up!!!
371241231Sdelphijcc.dir=${basedir}/../Codecoverage_Nashorn
372241231Sdelphijcc.result.file.name=CC_${jcov}_nashorn.xml
373241231Sdelphij
374241231Sdelphij#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
375241231Sdelphijjcov2.lib.dir=${basedir}/../jcov2/lib
376241231Sdelphijjcov.jar=${jcov2.lib.dir}/jcov.jar
377241231Sdelphijcc.include=jdk\.nashorn\.*
378241231Sdelphijcc.exclude=jdk\.nashorn\.internal\.scripts\.*
379241231Sdelphijcc.dynamic.genereate.template=true
380241231Sdelphijcc.template=${cc.dir}/CC_template.xml
381241231Sdelphijcc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
382241231Sdelphij