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