project.properties revision 417:36d6b6a3fbe0
1239671Srwatson#
2239671Srwatson# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
3264897Sbrooks# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4239671Srwatson# 
5239671Srwatson# This code is free software; you can redistribute it and/or modify it
6244899Srwatson# under the terms of the GNU General Public License version 2 only, as
7244899Srwatson# published by the Free Software Foundation.
8244899Srwatson# 
9244899Srwatson# This code is distributed in the hope that it will be useful, but WITHOUT
10239671Srwatson# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11239671Srwatson# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12239671Srwatson# version 2 for more details (a copy is included in the LICENSE file that
13239671Srwatson# accompanied this code).
14239671Srwatson# 
15239671Srwatson# You should have received a copy of the GNU General Public License version
16239671Srwatson# 2 along with this work; if not, write to the Free Software Foundation,
17239671Srwatson# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18239671Srwatson# 
19239671Srwatson# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20239671Srwatson# or visit www.oracle.com if you need additional information or have any
21239671Srwatson# questions.
22239671Srwatson#
23239671Srwatson
24239671Srwatsonapplication.title=nashorn
25239671Srwatson
26239671Srwatson# location of JDK embedded ASM sources
27239671Srwatsonjdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
28239671Srwatson
29239671Srwatson# source and target levels
30239671Srwatsonbuild.compiler=modern
31239671Srwatsonjavac.source=1.7
32239671Srwatsonjavac.target=1.7
33239671Srwatson
34239671Srwatson# nashorn version information
35244899Srwatsonnashorn.version=0.1
36239671Srwatsonnashorn.fullversion=0.1
37239671Srwatsonnashorn.product.name=Oracle Nashorn
38239671Srwatson
39239671Srwatson# This directory is removed when the project is cleaned:
40239671Srwatsonbuild.dir=build
41239671Srwatsonbuild.classes.dir=${build.dir}/classes
42239671Srwatsonbuild.zip=${build.dir}/nashorn.zip
43239671Srwatsonbuild.gzip=${build.dir}/nashorn.tar.gz
44239671Srwatson
45239671Srwatson# nashorn Shell tool
46239671Srwatsonnashorn.shell.tool=jdk.nashorn.tools.Shell
47239671Srwatson
48245330Srwatson# nasgen tool
49239671Srwatsonnasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
50239671Srwatson
51239671Srwatson# parallel test runner tool
52239671Srwatsonparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
53239671Srwatson
54239671Srwatson# test classes directory
55239671Srwatsonbuild.test.classes.dir=${build.dir}/test/classes
56239671Srwatson# nashorn test jar - internal tests jar and api tests jar
57239671Srwatsonnashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
58239671Srwatsonnashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
59244942Srwatson
60244899Srwatson# test results directory
61244899Srwatsonbuild.test.results.dir=${build.dir}/test/reports
62244942Srwatson
63244899Srwatson# This directory is removed when the project is cleaned:
64239671Srwatsondist.dir=dist
65239671Srwatsondist.jar=${dist.dir}/nashorn.jar
66239671Srwatsondist.javadoc.dir=${dist.dir}/javadoc
67239671Srwatson
68264897Sbrooks# nashorn javafx shell
69239671Srwatsonfxshell.tool = jdk.nashorn.tools.FXShell
70239671Srwatsonfxshell.classes.dir = ${build.dir}/fxshell/classes
71239671Srwatsonfxshell.dir = tools/fxshell
72239671Srwatsonfxshell.jar = ${dist.dir}/nashornfx.jar
73239671Srwatson
74245330Srwatson# jars refererred
75239671Srwatsonfile.reference.testng.jar=test/lib/testng.jar
76239671Srwatson
77239671Srwatson# Set testng verbose level
78239671Srwatson# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
79239671Srwatson# Actually, this is a lie: you can specify -1 and this will put TestNG in 
80239671Srwatson# debug mode (no longer slicing off stack traces and all)."
81239671Srwatson
82239671Srwatsontestng.verbose=2
83239671Srwatson
84239671Srwatson# TestNG listeners - we want to replace TestNG's own JUnit
85239671Srwatson# reporter, but want everything else provided by default
86239671Srwatson# Unfortunately, we've to clone the other default reporters here.
87239671Srwatson
88239671Srwatsontestng.listeners=\
89239671Srwatson org.testng.reporters.SuiteHTMLReporter, \
90239671Srwatson org.testng.reporters.TestHTMLReporter, \
91275858Sbr org.testng.reporters.jq.Main, \
92275858Sbr org.testng.reporters.FailedReporter, \
93296265Sandrew org.testng.reporters.XMLReporter \
94296189Swma org.testng.reporters.EmailableReporter, \
95275858Sbr jdk.nashorn.internal.test.framework.JSJUnitReportReporter
96275858Sbr
97239671Srwatsonjavac.debug=true
98239671Srwatsonjavac.encoding=ascii
99239671Srwatsonjavac.classpath=\
100239671Srwatson    ${build.classes.dir}
101239671Srwatsonjavac.test.classpath=\
102239671Srwatson    ${build.classes.dir}:\
103239671Srwatson    ${build.test.classes.dir}:\
104239671Srwatson    ${file.reference.testng.jar}
105239671Srwatson
106239671Srwatsonmeta.inf.dir=${src.dir}/META-INF
107239671Srwatson
108239671Srwatsonrun.classpath=\
109239671Srwatson    ${build.classes.dir}
110239671Srwatson
111275858Sbr# test scripts to run
112275858Sbrtest.dir=test
113275858Sbrtest.script.dir=test/script
114275858Sbrtest.basic.dir=test/script/basic
115275858Sbrtest.error.dir=test/script/error
116275858Sbrtest.sandbox.dir=test/script/sandbox
117275858Sbrtest.trusted.dir=test/script/trusted
118275858Sbrtest.external.dir=test/script/external
119275858Sbrtest262.dir=${test.external.dir}/test262
120275858Sbrtest262.suite.dir=${test262.dir}/test/suite
121275936Sbr
122275858Sbrtest-sys-prop.test.dir=${test.dir}
123275858Sbrtest-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
124275858Sbrtest-sys-prop.test262.suite.dir=${test262.suite.dir}
125275858Sbrtest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
126275858Sbrtest-sys-prop.test.basic.dir=${test.basic.dir}
127275936Sbr
128275858Sbr# framework root for our script tests
129275858Sbrtest-sys-prop.test.js.framework=${test.script.dir}/assert.js
130275858Sbr
131275858Sbr# Control the verbosity of ParserTest
132275858Sbrtest-sys-prop.parsertest.verbose=false
133275858Sbr
134239671Srwatson# turn on/off scripting mode for parser tests
135239671Srwatsontest-sys-prop.parsertest.scripting=true
136239671Srwatson
137239671Srwatson# turn on/off test262 scripts for parser tests
138239671Srwatsontest-sys-prop.parsertest.test262=false
139239671Srwatson
140239671Srwatson# Control the verbosity of the CompilerTest
141239671Srwatsontest-sys-prop.compilertest.verbose=false
142239671Srwatson
143239671Srwatson# turn on/off scripting mode for compiler tests
144239671Srwatsontest-sys-prop.compilertest.scripting=true
145239671Srwatson
146239671Srwatson# turn on/off test262 scripts for compiler tests
147239671Srwatsontest-sys-prop.compilertest.test262=false
148239671Srwatson
149239671Srwatson# test directory to be excluded.
150239671Srwatsontest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
151239671Srwatson
152239671Srwatson# run everything that's js in here, without checking file headers for test annotations
153239671Srwatsontest-sys-prop.test.js.unchecked.dir=${test262.dir}
154256745Sbrooks
155256745Sbrooks# test root for octane
156256745Sbrooksoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
157256745Sbrooks
158256745Sbrooks# run octane benchmars in separate processes?
159256745Sbrooksoctane-test-sys-prop.separate.process=true
160256745Sbrooks
161256745Sbrooks# framework root for octane
162239671Srwatsonoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
163239671Srwatson
164265089Sbz# list of tests to be excluded
165265089Sbz# mandreel excluded due to OOM
166265089Sbzoctane-test-sys-prop.test.js.exclude.list=\
167265089Sbz    base.js \
168265089Sbz    run.js  \
169265089Sbz    mandreel.js
170265089Sbz
171265089Sbz# test root for sunspider
172265089Sbzsunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/
173265089Sbz
174265089Sbz# framework root for sunspider
175265089Sbzsunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
176265089Sbz
177265089Sbz# list of tests to be excluded
178265089Sbzsunspider-test-sys-prop.test.js.exclude.list=
179265089Sbz
180265089Sbz# execute our script tests in shared nashorn context or not?
181265089Sbztest-sys-prop.test.js.shared.context=false
182265089Sbz
183265089Sbz# execute test262 tests in shared nashorn context or not?
184265089Sbztest262-test-sys-prop.test.js.shared.context=true
185265089Sbz
186265089Sbz# test262 test root
187265089Sbztest262-test-sys-prop.test.js.roots=${test262.suite.dir}
188265089Sbz# test262 enable/disable strict mode tests
189265089Sbztest262-test-sys-prop.test.js.enable.strict.mode=true
190265089Sbz
191265089Sbz# file containing test262 tests to be excluded
192265089Sbz# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
193265089Sbz
194265089Sbz# list of test262 test dirs to be excluded
195265089Sbztest262-test-sys-prop.test.js.exclude.dir=\
196273234Sdavide    ${test262.suite.dir}/intl402/ \
197265089Sbz    ${test262.suite.dir}/bestPractice/ 
198273234Sdavide
199265089Sbztest262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
200265089Sbz
201265089Sbz# test262 test frameworks
202265089Sbztest262-test-sys-prop.test.js.framework=\
203265089Sbz    --class-cache-size=0 \
204239671Srwatson    --no-java \
205239671Srwatson    --no-typed-arrays \
206239671Srwatson    -timezone=PST \
207239671Srwatson    ${test.script.dir}/test262.js \
208264897Sbrooks    ${test262.dir}/test/harness/framework.js \
209239671Srwatson    ${test262.dir}/test/harness/sta.js
210239671Srwatson
211239671Srwatsonrun.test.classpath=\
212239671Srwatson    ${file.reference.testng.jar}:\
213239671Srwatson    ${nashorn.internal.tests.jar}:\
214264897Sbrooks    ${nashorn.api.tests.jar}
215245330Srwatson
216265089Sbzsrc.dir=src
217245330Srwatsontest.src.dir=test/src
218265089Sbz
219245330Srwatsonrun.test.xmx=3G
220245330Srwatsonrun.test.xms=2G
221239671Srwatson
222239671Srwatsonrun.test.user.language=tr
223239671Srwatsonrun.test.user.country=TR
224239671Srwatson
225239671Srwatson#  -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
226239671Srwatson# add '-Dtest.js.outofprocess' to run each test in a new sub-process
227239671Srwatsonrun.test.jvmargs.main=-server -Xmx${run.test.xmx} -XX:+TieredCompilation -ea -Dfile.encoding=UTF-8 -Duser.language=${run.test.user.language} -Duser.country=${run.test.user.country}
228239671Srwatson
229239671Srwatson#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M  
230239671Srwatsonrun.test.jvmargs.octane.main=-Xms${run.test.xms} ${run.test.jvmargs.main}
231264897Sbrooks
232264897Sbrooksrun.test.jvmsecurityargs=-Xverify:all -Djava.security.properties=${basedir}/make/java.security.override -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
233264897Sbrooks
234264897Sbrooks# path of rhino.jar for benchmarks
235264897Sbrooksrhino.jar=
236264897Sbrooks
237264897Sbrooksv8.shell=d8
238264897Sbrooks
239264897Sbrooks#path to rhino jar file
240264897Sbrooksoctaneperf-sys-prop.rhino.jar=${rhino.jar}
241264897Sbrooks
242264897Sbrooks#timeout for performance tests in minutes
243264897Sbrooksoctaneperf-sys-prop.timeout.value=10
244264897Sbrooks
245264897Sbrooks################
246264897Sbrooks# codecoverage #
247264897Sbrooks################
248264897Sbrooks	#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
249264897Sbrooksmake.code.coverage=false
250245329Srwatson	#type of codecoverage; one of static or dynamic. Now only dynamic is supported
251245330Srwatsonjcov=dynamic
252245330Srwatson	#naming of CC results
253245330Srwatson	#NB directory specified in the cc.dir will be cleaned up!!!
254245330Srwatsoncc.dir=${basedir}/../Codecoverage_Nashorn
255287000Sroygercc.result.file.name=CC_${jcov}_nashorn.xml
256245330Srwatson	#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
257245330Srwatsonjcov2.lib.dir=${basedir}/../jcov2/lib
258245330Srwatsonjcov.jar=${jcov2.lib.dir}/jcov.jar
259245330Srwatsoncc.include=jdk\.nashorn\.*
260245330Srwatsoncc.exclude=jdk\.nashorn\.internal\.scripts\.*
261245330Srwatsoncc.dynamic.genereate.template=true
262245330Srwatsoncc.template=${cc.dir}/CC_template.xml
263245330Srwatsoncc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
264245330Srwatson