project.properties revision 894:b9a5c20a37b9
1203954Srdivacky#
2203954Srdivacky# Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
3203954Srdivacky# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4203954Srdivacky# 
5203954Srdivacky# This code is free software; you can redistribute it and/or modify it
6203954Srdivacky# under the terms of the GNU General Public License version 2 only, as
7203954Srdivacky# published by the Free Software Foundation.
8203954Srdivacky# 
9203954Srdivacky# This code is distributed in the hope that it will be useful, but WITHOUT
10203954Srdivacky# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11203954Srdivacky# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12203954Srdivacky# version 2 for more details (a copy is included in the LICENSE file that
13203954Srdivacky# accompanied this code).
14203954Srdivacky# 
15203954Srdivacky# You should have received a copy of the GNU General Public License version
16203954Srdivacky# 2 along with this work; if not, write to the Free Software Foundation,
17203954Srdivacky# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18203954Srdivacky# 
19203954Srdivacky# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20203954Srdivacky# or visit www.oracle.com if you need additional information or have any
21203954Srdivacky# questions.
22203954Srdivacky#
23203954Srdivacky
24203954Srdivackyapplication.title=nashorn
25203954Srdivacky
26203954Srdivacky# location of JDK embedded ASM sources
27203954Srdivackyjdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
28203954Srdivacky
29203954Srdivacky# source and target levels
30203954Srdivackybuild.compiler=modern
31203954Srdivackyjavac.source=1.7
32203954Srdivackyjavac.target=1.7
33203954Srdivacky
34203954Srdivacky# nashorn version information
35203954Srdivackynashorn.version=0.1
36203954Srdivackynashorn.fullversion=0.1
37203954Srdivackynashorn.product.name=Oracle Nashorn
38203954Srdivacky
39203954Srdivacky# This directory is removed when the project is cleaned:
40203954Srdivackybuild.dir=build
41203954Srdivackybuild.classes.dir=${build.dir}/classes
42203954Srdivackybuild.zip=${build.dir}/nashorn.zip
43203954Srdivackybuild.gzip=${build.dir}/nashorn.tar.gz
44203954Srdivacky
45203954Srdivacky# nashorn Shell tool
46203954Srdivackynashorn.shell.tool=jdk.nashorn.tools.Shell
47203954Srdivacky
48203954Srdivacky# nasgen tool
49203954Srdivackynasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
50203954Srdivacky
51203954Srdivacky# parallel test runner tool
52203954Srdivackyparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
53203954Srdivacky
54203954Srdivacky# test classes directory
55203954Srdivackybuild.test.classes.dir=${build.dir}/test/classes
56203954Srdivacky
57203954Srdivacky# nashorn test jar - internal tests jar and api tests jar
58203954Srdivackynashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
59203954Srdivackynashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
60203954Srdivacky
61203954Srdivacky# test results directory
62203954Srdivackybuild.test.results.dir=${build.dir}/test/reports
63203954Srdivackybuild.nosecurity.test.results.dir=${build.dir}/test/nosecurity/reports
64203954Srdivackybuild.nooptimistic.test.results.dir=${build.dir}/test/nooptimistic/reports
65203954Srdivacky
66203954Srdivacky# This directory is removed when the project is cleaned:
67203954Srdivackydist.dir=dist
68203954Srdivackydist.jar=${dist.dir}/nashorn.jar
69203954Srdivackydist.javadoc.dir=${dist.dir}/javadoc
70203954Srdivacky
71203954Srdivacky# nashorn javafx shell
72203954Srdivackyfxshell.tool = jdk.nashorn.tools.FXShell
73203954Srdivackyfxshell.classes.dir = ${build.dir}/fxshell/classes
74203954Srdivackyfxshell.dir = tools/fxshell
75203954Srdivackyfxshell.jar = ${dist.dir}/nashornfx.jar
76203954Srdivacky
77203954Srdivacky# configuration for java flight recorder
78203954Srdivackyrun.test.jvmargs.jfr=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath=${build.dir},stackdepth=128
79203954Srdivacky
80203954Srdivacky# jars refererred
81203954Srdivackyfile.reference.testng.jar=test/lib/testng.jar
82203954Srdivacky
83203954Srdivacky# Set testng verbose level
84203954Srdivacky# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
85203954Srdivacky# Actually, this is a lie: you can specify -1 and this will put TestNG in 
86203954Srdivacky# debug mode (no longer slicing off stack traces and all)."
87203954Srdivacky
88203954Srdivackytestng.verbose=2
89203954Srdivacky
90203954Srdivacky# TestNG listeners - we want to replace TestNG's own JUnit
91203954Srdivacky# reporter, but want everything else provided by default
92203954Srdivacky# Unfortunately, we've to clone the other default reporters here.
93203954Srdivacky
94203954Srdivackytestng.listeners=\
95203954Srdivacky org.testng.reporters.SuiteHTMLReporter, \
96203954Srdivacky org.testng.reporters.TestHTMLReporter, \
97203954Srdivacky org.testng.reporters.jq.Main, \
98203954Srdivacky org.testng.reporters.FailedReporter, \
99203954Srdivacky org.testng.reporters.XMLReporter \
100203954Srdivacky org.testng.reporters.EmailableReporter, \
101203954Srdivacky jdk.nashorn.internal.test.framework.JSJUnitReportReporter
102203954Srdivacky
103203954Srdivackyjavac.debug=true
104203954Srdivackyjavac.encoding=ascii
105203954Srdivackyjavac.classpath=\
106203954Srdivacky    ${build.classes.dir}
107203954Srdivackyjavac.test.classpath=\
108203954Srdivacky    ${build.classes.dir}:\
109203954Srdivacky    ${build.test.classes.dir}:\
110203954Srdivacky    ${file.reference.testng.jar}
111203954Srdivacky
112203954Srdivackymeta.inf.dir=${src.dir}/META-INF
113203954Srdivacky
114203954Srdivackyrun.classpath=\
115203954Srdivacky    ${build.classes.dir}
116203954Srdivacky
117203954Srdivacky# test scripts to run
118203954Srdivackytest.dir=test
119203954Srdivackytest.nosecurity.dir=test/script/nosecurity
120203954Srdivackytest.script.dir=test/script
121203954Srdivackytest.basic.dir=test/script/basic
122203954Srdivackytest.maptests.dir=test/script/maptests
123203954Srdivackytest.error.dir=test/script/error
124203954Srdivackytest.sandbox.dir=test/script/sandbox
125203954Srdivackytest.trusted.dir=test/script/trusted
126203954Srdivackytest.external.dir=test/script/external
127203954Srdivackytest262.dir=${test.external.dir}/test262
128203954Srdivackytest262.suite.dir=${test262.dir}/test/suite
129203954Srdivackytestjfx.dir=${test.script.dir}/jfx
130203954Srdivackytestmarkdown.dir=${test.script.dir}/markdown
131203954Srdivacky
132203954Srdivackytest-sys-prop.test.dir=${test.dir}
133203954Srdivackytest-sys-prop.test.js.roots=${test.basic.dir} ${test.maptests.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
134203954Srdivackytest-sys-prop.test262.suite.dir=${test262.suite.dir}
135203954Srdivackytest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
136203954Srdivackytest-sys-prop.test.basic.dir=${test.basic.dir}
137203954Srdivacky
138203954Srdivackytest-sys-prop-no-security.test.dir=${test.dir}
139203954Srdivackytest-sys-prop-no-security.test.js.roots=${test.nosecurity.dir}
140203954Srdivacky
141203954Srdivacky# framework root for our script tests
142203954Srdivackytest-sys-prop.test.js.framework=${test.script.dir}/assert.js
143203954Srdivackytest-sys-prop-no-security.test.js.framework=${test.script.dir}/assert.js
144203954Srdivacky
145203954Srdivacky# Control the verbosity of ParserTest
146203954Srdivackytest-sys-prop.parsertest.verbose=false
147203954Srdivacky
148203954Srdivacky# turn on/off scripting mode for parser tests
149203954Srdivackytest-sys-prop.parsertest.scripting=true
150203954Srdivacky
151203954Srdivacky# turn on/off test262 scripts for parser tests
152203954Srdivackytest-sys-prop.parsertest.test262=false
153203954Srdivacky
154203954Srdivacky# Control the verbosity of the CompilerTest
155203954Srdivackytest-sys-prop.compilertest.verbose=false
156203954Srdivacky
157203954Srdivacky# turn on/off scripting mode for compiler tests
158203954Srdivackytest-sys-prop.compilertest.scripting=true
159203954Srdivacky
160203954Srdivacky# turn on/off test262 scripts for compiler tests
161203954Srdivackytest-sys-prop.compilertest.test262=false
162203954Srdivacky
163203954Srdivacky# test directory to be excluded.
164203954Srdivackytest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
165203954Srdivacky
166203954Srdivacky# run everything that's js in here, without checking file headers for test annotations
167203954Srdivackytest-sys-prop.test.js.unchecked.dir=${test262.dir}
168203954Srdivacky
169203954Srdivacky# test root for octane
170203954Srdivackyoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
171203954Srdivacky
172203954Srdivacky# run octane benchmars in separate processes? (recommended)
173203954Srdivackyoctane-test-sys-prop.separate.process=true
174203954Srdivacky
175203954Srdivacky# framework root for octane
176203954Srdivackyoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
177203954Srdivacky
178203954Srdivacky# test root for sunspider
179203954Srdivackysunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0.2/
180203954Srdivacky
181203954Srdivacky# framework root for sunspider
182203954Srdivackysunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
183203954Srdivacky
184203954Srdivacky# list of tests to be excluded
185203954Srdivackysunspider-test-sys-prop.test.js.exclude.list=
186203954Srdivacky
187203954Srdivacky# execute our script tests in shared nashorn context or not?
188203954Srdivackytest-sys-prop.test.js.shared.context=false
189203954Srdivacky
190203954Srdivacky# execute test262 tests in shared nashorn context or not?
191203954Srdivackytest262-test-sys-prop.test.js.shared.context=true
192203954Srdivacky
193203954Srdivacky# test262 test root
194203954Srdivackytest262-test-sys-prop.test.js.roots=${test262.suite.dir}
195203954Srdivacky
196203954Srdivacky# test262 enable/disable strict mode tests
197203954Srdivackytest262-test-sys-prop.test.js.enable.strict.mode=true
198203954Srdivacky
199203954Srdivacky# file containing test262 tests to be excluded
200203954Srdivacky# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
201203954Srdivacky
202203954Srdivacky# list of test262 test dirs to be excluded
203203954Srdivackytest262-test-sys-prop.test.js.exclude.dir=\
204203954Srdivacky    ${test262.suite.dir}/intl402/ \
205203954Srdivacky    ${test262.suite.dir}/bestPractice/ 
206203954Srdivacky
207203954Srdivackytest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
208203954Srdivacky
209203954Srdivacky# test262 test frameworks
210203954Srdivackytest262-test-sys-prop.test.js.framework=\
211203954Srdivacky    --class-cache-size=10 \
212203954Srdivacky    --no-java \
213203954Srdivacky    --no-typed-arrays \
214203954Srdivacky    -timezone=PST \
215203954Srdivacky    ${test.script.dir}/test262.js \
216203954Srdivacky    ${test262.dir}/test/harness/framework.js \
217203954Srdivacky    ${test262.dir}/test/harness/sta.js
218203954Srdivacky
219203954Srdivacky# testmarkdown test root
220203954Srdivackytestmarkdown-test-sys-prop.test.js.roots=${testmarkdown.dir}    
221203954Srdivacky
222203954Srdivacky# execute testmarkdown tests in shared nashorn context or not?
223203954Srdivackytestmarkdown-test-sys-prop.test.js.shared.context=false
224203954Srdivacky
225203954Srdivacky# framework root for markdown script tests
226203954Srdivackytestmarkdown-test-sys-prop.test.js.framework=\
227203954Srdivacky    ${test.script.dir}${file.separator}markdown.js
228203954Srdivacky
229203954Srdivacky# testjfx test root
230203954Srdivackytestjfx-test-sys-prop.test.js.roots=${testjfx.dir}   
231203954Srdivacky
232203954Srdivacky# execute testjfx tests in shared nashorn context or not?
233203954Srdivackytestjfx-test-sys-prop.test.js.shared.context=false
234203954Srdivacky
235203954Srdivacky# framework root for our script tests
236203954Srdivackytestjfx-test-sys-prop.test.js.framework=\
237203954Srdivacky    -fx \
238203954Srdivacky    ${test.script.dir}${file.separator}jfx.js
239203954Srdivacky
240203954Srdivackyfile.reference.jemmyfx.jar=test${file.separator}lib${file.separator}JemmyFX.jar
241203954Srdivackyfile.reference.jemmycore.jar=test${file.separator}lib${file.separator}JemmyCore.jar
242203954Srdivackyfile.reference.jemmyawtinput.jar=test${file.separator}lib${file.separator}JemmyAWTInput.jar
243203954Srdivackyfile.reference.jfxrt.jar=${java.home}${file.separator}lib${file.separator}ext${file.separator}jfxrt.jar
244203954Srdivackytestjfx.run.test.classpath=\
245203954Srdivacky    ${file.reference.jemmyfx.jar}${path.separator}\
246203954Srdivacky    ${file.reference.jemmycore.jar}${path.separator}\
247203954Srdivacky    ${file.reference.jemmyawtinput.jar}${path.separator}\
248203954Srdivacky    ${file.reference.testng.jar}${path.separator}\
249203954Srdivacky    ${nashorn.internal.tests.jar}${path.separator}\
250203954Srdivacky    ${nashorn.api.tests.jar}
251203954Srdivacky
252203954Srdivacky# testjfx VM options for script tests with @fork option
253203954Srdivackytestjfx-test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} -cp ${testjfx.run.test.classpath}
254203954Srdivacky
255203954Srdivackyrun.test.classpath=\
256203954Srdivacky    ${file.reference.testng.jar}:\
257203954Srdivacky    ${nashorn.internal.tests.jar}:\
258203954Srdivacky    ${nashorn.api.tests.jar}
259203954Srdivacky
260203954Srdivackysrc.dir=src
261203954Srdivackytest.src.dir=test/src
262203954Srdivacky
263203954Srdivacky# -Xmx is used for all tests, -Xms only for octane benchmark
264203954Srdivackyrun.test.xmx=2G
265203954Srdivackyrun.test.xms=2G
266203954Srdivacky
267203954Srdivacky# uncomment this jfr.args to enable light recordings. the stack needs to be cranked up to 1024 frames,
268203954Srdivacky# or everything will as of the now drown in lambda forms and be cut off.
269203954Srdivacky#
270203954Srdivacky#jfr.args=-XX:+UnlockCommercialFeatures -XX:+FlightRecorder -XX:FlightRecorderOptions=defaultrecording=true,disk=true,dumponexit=true,dumponexitpath="test_suite.jfr",stackdepth=1024 \
271203954Srdivacky
272203954Srdivackyjfr.args=
273203954Srdivacky
274203954Srdivackyrun.test.user.language=tr
275203954Srdivackyrun.test.user.country=TR
276203954Srdivacky
277203954Srdivackyrun.test.jvmargs.common=\
278203954Srdivacky  -server \
279  -Dfile.encoding=UTF-8 \
280  -Duser.language=${run.test.user.language} \
281  -Duser.country=${run.test.user.country} \
282  ${jfr.args} \
283  -XX:+HeapDumpOnOutOfMemoryError
284
285# turn on assertions for tests
286run.test.jvmargs.main=${run.test.jvmargs.common} -ea
287
288# extra jvmargs that might be useful for debugging
289#
290# -XX:+UnlockDiagnosticVMOptions 
291#
292# turn off compressed class pointers in metaspace
293# -XX:-UseCompressedKlassPointers  
294#
295# dump the heap after every GC
296# -XX:+PrintHeapAtGC
297#
298# manually set a metaspace size for class data 
299# -XX:ClassMetaspaceSize=300M
300#
301# print out methods compiled
302# -XX:+PrintCompilation 
303#
304# print all compiled nmethods with oopmaps and lots of other info
305# -XX:+PrintNMethods
306
307# Use best known performance options for octane
308run.test.jvmargs.octane.main=${run.test.jvmargs.common} -XX:+UnlockDiagnosticVMOptions -XX:+UseNewCode -XX:TypeProfileLevel=222
309
310# Security manager args - make sure that we run with the nashorn.policy that the build creates
311run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
312
313# VM options for script tests with @fork option
314test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -cp ${run.test.classpath}
315
316# path of rhino.jar for benchmarks
317rhino.dir=
318rhino.jar=${rhino.dir}/js.jar
319
320v8.shell=d8
321
322# How many iterations should 'ant octane' run for each
323# benchmark
324octane.iterations=25
325
326# List of octane tests to run, as properties prefixed with
327# "octane.benchmark." mapping to the benchmark name in 
328# the test harness
329#
330# Octane tests that are disabled should have their entire line
331# commented out  Tests may be disabled for functionality reasons when
332# they have bugs or when the runtime doesn't handle them (yet)
333octane.benchmark.box2d=box2d
334#octane.benchmark.code-load=code-load
335octane.benchmark.crypto=crypto
336octane.benchmark.deltablue=deltablue
337octane.benchmark.earley-boyer=earley-boyer
338octane.benchmark.gbemu=gbemu
339octane.benchmark.navier-stokes=navier-stokes
340octane.benchmark.mandreel=mandreel
341octane.benchmark.pdfjs=pdfjs
342octane.benchmark.raytrace=raytrace
343octane.benchmark.regexp=regexp
344octane.benchmark.richards=richards
345octane.benchmark.splay=splay
346#octane.benchmark.typescript=typescript
347#octane.benchmark.zlib=zlib
348
349#path to rhino jar file
350octaneperf-sys-prop.rhino.jar=${rhino.jar}
351
352#timeout for performance tests in minutes
353octaneperf-sys-prop.timeout.value=10
354
355#how many iterations to run sunspider after warmup
356sunspider.iterations=3000
357
358#################
359# code coverage #
360#################
361
362#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
363make.code.coverage=false
364
365#type of codecoverage; one of static or dynamic. Now only dynamic is supported
366jcov=dynamic
367
368#naming of CC results
369#NB directory specified in the cc.dir will be cleaned up!!!
370cc.dir=${basedir}/../Codecoverage_Nashorn
371cc.result.file.name=CC_${jcov}_nashorn.xml
372
373#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
374jcov2.lib.dir=${basedir}/../jcov2/lib
375jcov.jar=${jcov2.lib.dir}/jcov.jar
376cc.include=jdk\.nashorn\.*
377cc.exclude=jdk\.nashorn\.internal\.scripts\.*
378cc.dynamic.genereate.template=true
379cc.template=${cc.dir}/CC_template.xml
380cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
381