project.properties revision 475:fbd21b00197b
150476Speter#
215903Swosch# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
315903Swosch# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
415903Swosch# 
515903Swosch# This code is free software; you can redistribute it and/or modify it
615903Swosch# under the terms of the GNU General Public License version 2 only, as
715903Swosch# published by the Free Software Foundation.
8105327Sru# 
9105327Sru# This code is distributed in the hope that it will be useful, but WITHOUT
10105327Sru# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11105327Sru# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
1215903Swosch# version 2 for more details (a copy is included in the LICENSE file that
1315903Swosch# accompanied this code).
14105327Sru# 
15105327Sru# You should have received a copy of the GNU General Public License version
16105327Sru# 2 along with this work; if not, write to the Free Software Foundation,
17105327Sru# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
1815903Swosch# 
1915903Swosch# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2015903Swosch# or visit www.oracle.com if you need additional information or have any
2115903Swosch# questions.
2215903Swosch#
2315903Swosch
2415903Swoschapplication.title=nashorn
2515903Swosch
2615903Swosch# location of JDK embedded ASM sources
2715903Swoschjdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
2815903Swosch
2915903Swosch# source and target levels
3015903Swoschbuild.compiler=modern
3115903Swoschjavac.source=1.7
3215903Swoschjavac.target=1.7
3315903Swosch
3415903Swosch# nashorn version information
35105327Srunashorn.version=0.1
36105327Srunashorn.fullversion=0.1
37105327Srunashorn.product.name=Oracle Nashorn
38105327Sru
391845Swollman# This directory is removed when the project is cleaned:
4095255Srubuild.dir=build
4195255Srubuild.classes.dir=${build.dir}/classes
4295255Srubuild.zip=${build.dir}/nashorn.zip
4315903Swoschbuild.gzip=${build.dir}/nashorn.tar.gz
44105327Sru
45105327Sru# nashorn Shell tool
46105327Srunashorn.shell.tool=jdk.nashorn.tools.Shell
47105327Sru
48105327Sru# nasgen tool
4994768Srunasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
5096132Sbde
5194768Sru# parallel test runner tool
5294768Sruparallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
5394768Sru
5414986Swosch# test classes directory
5514986Swoschbuild.test.classes.dir=${build.dir}/test/classes
56105327Sru# nashorn test jar - internal tests jar and api tests jar
57105327Srunashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
58105327Srunashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
59105327Sru
60105327Sru# test results directory
61105327Srubuild.test.results.dir=${build.dir}/test/reports
62105327Sru
63105327Sru# This directory is removed when the project is cleaned:
64105327Srudist.dir=dist
65105327Srudist.jar=${dist.dir}/nashorn.jar
66105327Srudist.javadoc.dir=${dist.dir}/javadoc
67105327Sru
68105327Sru# nashorn javafx shell
69105327Srufxshell.tool = jdk.nashorn.tools.FXShell
7035951Sbdefxshell.classes.dir = ${build.dir}/fxshell/classes
7135951Sbdefxshell.dir = tools/fxshell
7235951Sbdefxshell.jar = ${dist.dir}/nashornfx.jar
7335951Sbde
7435951Sbde# jars refererred
7535951Sbdefile.reference.testng.jar=test/lib/testng.jar
7635951Sbde
7735951Sbde# Set testng verbose level
7835951Sbde# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
7935951Sbde# Actually, this is a lie: you can specify -1 and this will put TestNG in 
8035951Sbde# debug mode (no longer slicing off stack traces and all)."
8135951Sbde
8235951Sbdetestng.verbose=2
8335951Sbde
8435951Sbde# TestNG listeners - we want to replace TestNG's own JUnit
8535951Sbde# reporter, but want everything else provided by default
8635951Sbde# Unfortunately, we've to clone the other default reporters here.
8735951Sbde
8835951Sbdetestng.listeners=\
8935951Sbde org.testng.reporters.SuiteHTMLReporter, \
9035951Sbde org.testng.reporters.TestHTMLReporter, \
9135951Sbde org.testng.reporters.jq.Main, \
9235951Sbde org.testng.reporters.FailedReporter, \
9335951Sbde org.testng.reporters.XMLReporter \
9435951Sbde org.testng.reporters.EmailableReporter, \
9535951Sbde jdk.nashorn.internal.test.framework.JSJUnitReportReporter
9635951Sbde
9735951Sbdejavac.debug=true
9835951Sbdejavac.encoding=ascii
9935951Sbdejavac.classpath=\
10035951Sbde    ${build.classes.dir}
10135951Sbdejavac.test.classpath=\
10235951Sbde    ${build.classes.dir}:\
10335951Sbde    ${build.test.classes.dir}:\
10435951Sbde    ${file.reference.testng.jar}
10535951Sbde
10635951Sbdemeta.inf.dir=${src.dir}/META-INF
10735951Sbde
10835951Sbderun.classpath=\
1091845Swollman    ${build.classes.dir}
11030113Sjkh
11195306Sru# test scripts to run
11214986Swoschtest.dir=test
11334181Sbdetest.script.dir=test/script
11434181Sbdetest.basic.dir=test/script/basic
11594922Srutest.error.dir=test/script/error
11614986Swoschtest.sandbox.dir=test/script/sandbox
11734181Sbdetest.trusted.dir=test/script/trusted
11834181Sbdetest.external.dir=test/script/external
11934181Sbdetest262.dir=${test.external.dir}/test262
12034181Sbdetest262.suite.dir=${test262.dir}/test/suite
12134181Sbde
12214986Swoschtest-sys-prop.test.dir=${test.dir}
12334181Sbdetest-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
12434181Sbdetest-sys-prop.test262.suite.dir=${test262.suite.dir}
12534181Sbdetest-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
12634181Sbdetest-sys-prop.test.basic.dir=${test.basic.dir}
12714986Swosch
12836673Sdt# framework root for our script tests
12936673Sdttest-sys-prop.test.js.framework=${test.script.dir}/assert.js
13014986Swosch
13134181Sbde# Control the verbosity of ParserTest
13236673Sdttest-sys-prop.parsertest.verbose=false
13314986Swosch
13436054Sbde# turn on/off scripting mode for parser tests
13536054Sbdetest-sys-prop.parsertest.scripting=true
13636054Sbde
13736054Sbde# turn on/off test262 scripts for parser tests
13836054Sbdetest-sys-prop.parsertest.test262=false
13936054Sbde
14024750Sbde# Control the verbosity of the CompilerTest
14194922Srutest-sys-prop.compilertest.verbose=false
14294841Sru
14324750Sbde# turn on/off scripting mode for compiler tests
14414986Swoschtest-sys-prop.compilertest.scripting=true
14530113Sjkh
1461845Swollman# turn on/off test262 scripts for compiler tests
14795306Srutest-sys-prop.compilertest.test262=false
1481845Swollman
1491845Swollman# test directory to be excluded.
1501845Swollmantest-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
15130113Sjkh
15230113Sjkh# run everything that's js in here, without checking file headers for test annotations
15330113Sjkhtest-sys-prop.test.js.unchecked.dir=${test262.dir}
1541845Swollman
1551845Swollman# test root for octane
1561845Swollmanoctane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
1571845Swollman
1581845Swollman# run octane benchmars in separate processes?
1591845Swollmanoctane-test-sys-prop.separate.process=true
16016663Sjkh
16195306Sru# framework root for octane
16228806Sbdeoctane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
163105327Sru
164105327Sru# list of tests to be excluded
165105327Sru# mandreel excluded due to OOM
166105327Sruoctane-test-sys-prop.test.js.exclude.list=\
16724861Sjkh    base.js \
168105327Sru    run.js  \
16916663Sjkh    mandreel.js
17016663Sjkh
17124861Sjkh# test root for sunspider
172105327Srusunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/
17399344Sru
17499344Sru# framework root for sunspider
17599344Srusunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
17699344Sru
17799344Sru# list of tests to be excluded
17899344Srusunspider-test-sys-prop.test.js.exclude.list=
17999344Sru
18099344Sru# execute our script tests in shared nashorn context or not?
18199344Srutest-sys-prop.test.js.shared.context=false
18299344Sru
18399344Sru# execute test262 tests in shared nashorn context or not?
18499344Srutest262-test-sys-prop.test.js.shared.context=true
18599344Sru
186# test262 test root
187test262-test-sys-prop.test.js.roots=${test262.suite.dir}
188# test262 enable/disable strict mode tests
189test262-test-sys-prop.test.js.enable.strict.mode=true
190
191# file containing test262 tests to be excluded
192# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
193
194# list of test262 test dirs to be excluded
195test262-test-sys-prop.test.js.exclude.dir=\
196    ${test262.suite.dir}/intl402/ \
197    ${test262.suite.dir}/bestPractice/ 
198
199test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
200
201# test262 test frameworks
202test262-test-sys-prop.test.js.framework=\
203    --class-cache-size=0 \
204    --no-java \
205    --no-typed-arrays \
206    -timezone=PST \
207    ${test.script.dir}/test262.js \
208    ${test262.dir}/test/harness/framework.js \
209    ${test262.dir}/test/harness/sta.js
210
211run.test.classpath=\
212    ${file.reference.testng.jar}:\
213    ${nashorn.internal.tests.jar}:\
214    ${nashorn.api.tests.jar}
215
216src.dir=src
217test.src.dir=test/src
218
219run.test.xmx=3G
220run.test.xms=2G
221
222run.test.user.language=tr
223run.test.user.country=TR
224
225#  -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
226run.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}
227
228#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M  
229run.test.jvmargs.octane.main=-Xms${run.test.xms} ${run.test.jvmargs.main}
230
231run.test.jvmsecurityargs=-Xverify:all -Djava.security.properties=${basedir}/make/java.security.override -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
232
233# VM options for script tests with @fork option
234test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} ${run.test.jvmsecurityargs}
235
236# path of rhino.jar for benchmarks
237rhino.jar=
238
239v8.shell=d8
240
241#path to rhino jar file
242octaneperf-sys-prop.rhino.jar=${rhino.jar}
243
244#timeout for performance tests in minutes
245octaneperf-sys-prop.timeout.value=10
246
247################
248# codecoverage #
249################
250	#enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
251make.code.coverage=false
252	#type of codecoverage; one of static or dynamic. Now only dynamic is supported
253jcov=dynamic
254	#naming of CC results
255	#NB directory specified in the cc.dir will be cleaned up!!!
256cc.dir=${basedir}/../Codecoverage_Nashorn
257cc.result.file.name=CC_${jcov}_nashorn.xml
258	#dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
259jcov2.lib.dir=${basedir}/../jcov2/lib
260jcov.jar=${jcov2.lib.dir}/jcov.jar
261cc.include=jdk\.nashorn\.*
262cc.exclude=jdk\.nashorn\.internal\.scripts\.*
263cc.dynamic.genereate.template=true
264cc.template=${cc.dir}/CC_template.xml
265cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}
266