16147
|
1 |
#
|
16151
|
2 |
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
|
16147
|
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 |
|
|
24 |
application.title=nashorn
|
|
25 |
|
|
26 |
# source and target levels
|
|
27 |
build.compiler=modern
|
|
28 |
javac.source=1.7
|
|
29 |
javac.target=1.7
|
|
30 |
|
|
31 |
# nashorn version information
|
|
32 |
nashorn.version=0.1
|
|
33 |
nashorn.fullversion=0.1
|
|
34 |
nashorn.product.name=Oracle Nashorn
|
|
35 |
|
|
36 |
# This directory is removed when the project is cleaned:
|
|
37 |
build.dir=build
|
|
38 |
build.classes.dir=${build.dir}/classes
|
|
39 |
build.zip=${build.dir}/nashorn.zip
|
|
40 |
build.gzip=${build.dir}/nashorn.tar.gz
|
|
41 |
|
|
42 |
# nashorn Shell tool
|
|
43 |
nashorn.shell.tool=jdk.nashorn.tools.Shell
|
|
44 |
|
|
45 |
# nasgen tool
|
|
46 |
nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
|
|
47 |
|
|
48 |
# parallel test runner tool
|
|
49 |
parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
|
|
50 |
|
|
51 |
# test classes directory
|
|
52 |
build.test.classes.dir=${build.dir}/test/classes
|
|
53 |
# test results directory
|
|
54 |
build.test.results.dir=${build.dir}/test/reports
|
|
55 |
|
|
56 |
# This directory is removed when the project is cleaned:
|
|
57 |
dist.dir=dist
|
|
58 |
dist.jar=${dist.dir}/nashorn.jar
|
|
59 |
dist.javadoc.dir=${dist.dir}/javadoc
|
|
60 |
|
|
61 |
# directory where asm project lives
|
|
62 |
asm.dir=../asm
|
|
63 |
asm.src.dir=${asm.dir}/src
|
|
64 |
|
|
65 |
# jars refererred
|
|
66 |
file.reference.testng.jar=test/lib/testng.jar
|
|
67 |
|
|
68 |
# Set testng verbose level
|
|
69 |
# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed)
|
|
70 |
# Actually, this is a lie: you can specify -1 and this will put TestNG in
|
|
71 |
# debug mode (no longer slicing off stack traces and all)."
|
|
72 |
|
|
73 |
testng.verbose=2
|
|
74 |
|
|
75 |
# TestNG listeners - we want to replace TestNG's own JUnit
|
|
76 |
# reporter, but want everything else provided by default
|
|
77 |
# Unfortunately, we've to clone the other default reporters here.
|
|
78 |
|
|
79 |
testng.listeners=\
|
|
80 |
org.testng.reporters.SuiteHTMLReporter, \
|
|
81 |
org.testng.reporters.jq.Main, \
|
|
82 |
org.testng.reporters.FailedReporter, \
|
|
83 |
org.testng.reporters.XMLReporter \
|
|
84 |
org.testng.reporters.EmailableReporter, \
|
|
85 |
jdk.nashorn.internal.test.framework.JSJUnitReportReporter
|
|
86 |
|
|
87 |
# Define the version of Dynalink that is used. Version types are either
|
|
88 |
# 'snapshot' or 'release'. When it is 'snapshot', the version must have
|
|
89 |
# "-SNAPSHOT" suffix and the jar version will have a timestamp in it. When
|
|
90 |
# it's 'release', the version has no suffix, and the jar version is
|
|
91 |
# identical to version - fun with Maven central.
|
|
92 |
dynalink.version=0.5-SNAPSHOT
|
|
93 |
dynalink.version.type=snapshot
|
|
94 |
dynalink.jar.version=0.5-20121218.140128-11
|
|
95 |
dynalink.dir.name=dynalink
|
|
96 |
dynalink.dir=build/${dynalink.dir.name}
|
|
97 |
dynalink.jar=${dynalink.dir}/dynalink.jar
|
|
98 |
|
|
99 |
javac.debug=true
|
|
100 |
javac.encoding=ascii
|
|
101 |
javac.classpath=\
|
|
102 |
${build.classes.dir}:\
|
|
103 |
${dynalink.jar}
|
|
104 |
javac.test.classpath=\
|
|
105 |
${build.classes.dir}:\
|
|
106 |
${build.test.classes.dir}:\
|
|
107 |
${file.reference.testng.jar}
|
|
108 |
|
|
109 |
meta.inf.dir=${src.dir}/META-INF
|
|
110 |
|
|
111 |
run.classpath=\
|
|
112 |
${build.classes.dir}
|
|
113 |
|
|
114 |
# test scripts to run
|
|
115 |
test.dir=test
|
|
116 |
test.script.dir=test/script
|
|
117 |
test.basic.dir=test/script/basic
|
|
118 |
test.error.dir=test/script/error
|
|
119 |
test.sandbox.dir=test/script/sandbox
|
|
120 |
test.external.dir=test/script/external
|
|
121 |
test262.dir=${test.external.dir}/test262
|
|
122 |
test262.suite.dir=${test262.dir}/test/suite
|
|
123 |
|
|
124 |
test-sys-prop.test.dir=${test.dir}
|
|
125 |
test-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir}
|
|
126 |
test-sys-prop.test262.suite.dir=${test262.suite.dir}
|
|
127 |
test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
|
|
128 |
test-sys-prop.test.basic.dir=${test.basic.dir}
|
|
129 |
|
|
130 |
# framework root for our script tests
|
|
131 |
test-sys-prop.test.js.framework=${test.script.dir}/assert.js
|
|
132 |
|
|
133 |
# Control the verbosity of ParserTest
|
|
134 |
test-sys-prop.parsertest.verbose=false
|
|
135 |
|
|
136 |
# turn on/off scripting mode for parser tests
|
|
137 |
test-sys-prop.parsertest.scripting=true
|
|
138 |
|
|
139 |
# turn on/off test262 scripts for parser tests
|
|
140 |
test-sys-prop.parsertest.test262=false
|
|
141 |
|
|
142 |
# Control the verbosity of the CompilerTest
|
|
143 |
test-sys-prop.compilertest.verbose=false
|
|
144 |
|
|
145 |
# turn on/off scripting mode for compiler tests
|
|
146 |
test-sys-prop.compilertest.scripting=true
|
|
147 |
|
|
148 |
# turn on/off test262 scripts for compiler tests
|
|
149 |
test-sys-prop.compilertest.test262=false
|
|
150 |
|
|
151 |
# test directory to be excluded.
|
|
152 |
test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
|
|
153 |
|
|
154 |
# run everything that's js in here, without checking file headers for test annotations
|
|
155 |
test-sys-prop.test.js.unchecked.dir=${test262.dir}
|
|
156 |
|
|
157 |
# test root for octane
|
|
158 |
octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/benchmarks
|
|
159 |
|
|
160 |
# framework root for octane
|
|
161 |
octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
|
|
162 |
|
|
163 |
# list of tests to be excluded
|
|
164 |
octane-test-sys-prop.test.js.exclude.list=base.js
|
|
165 |
|
|
166 |
# test root for sunspider
|
|
167 |
sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/
|
|
168 |
|
|
169 |
# framework root for sunspider
|
|
170 |
sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
|
|
171 |
|
|
172 |
# list of tests to be excluded
|
|
173 |
sunspider-test-sys-prop.test.js.exclude.list=
|
|
174 |
|
|
175 |
# execute our script tests in shared nashorn context or not?
|
|
176 |
test-sys-prop.test.js.shared.context=false
|
|
177 |
|
|
178 |
# execute test262 tests in shared nashorn context or not?
|
|
179 |
test262-test-sys-prop.test.js.shared.context=true
|
|
180 |
|
|
181 |
# test262 test root
|
|
182 |
test262-test-sys-prop.test.js.roots=${test262.suite.dir}
|
|
183 |
# test262 enable/disable strict mode tests
|
|
184 |
test262-test-sys-prop.test.js.enable.strict.mode=true
|
|
185 |
|
|
186 |
# file containing test262 tests to be excluded
|
|
187 |
# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
|
|
188 |
|
|
189 |
# list of test262 test dirs to be excluded
|
|
190 |
test262-test-sys-prop.test.js.exclude.dir=\
|
|
191 |
${test262.suite.dir}/intl402/
|
|
192 |
|
|
193 |
# test262 test frameworks
|
|
194 |
test262-test-sys-prop.test.js.framework=\
|
|
195 |
-timezone=PST \
|
|
196 |
${test.script.dir}/test262.js \
|
|
197 |
${test262.dir}/test/harness/framework.js \
|
|
198 |
${test262.dir}/test/harness/sta.js
|
|
199 |
|
|
200 |
run.test.classpath=\
|
|
201 |
${file.reference.testng.jar}:\
|
|
202 |
${build.test.classes.dir}
|
|
203 |
src.dir=src
|
|
204 |
test.src.dir=test/src
|
|
205 |
|
|
206 |
# -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
|
|
207 |
# add '-Dtest.js.outofprocess' to run each test in a new sub-process
|
|
208 |
run.test.jvmargs=-server -Xmx3G -XX:-TieredCompilation -esa -ea -Dnashorn.debug=true -Dfile.encoding=UTF-8
|
|
209 |
#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
|
|
210 |
run.test.jvmargs.octane=-Xms2G -Xmx2G ${run.test.jvmargs}
|
|
211 |
|
|
212 |
run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
|
|
213 |
|
|
214 |
# path of rhino.jar for benchmarks
|
|
215 |
rhino.jar=
|
|
216 |
|
|
217 |
v8.shell=d8
|
|
218 |
|
|
219 |
#path to rhino jar file
|
|
220 |
octaneperf-sys-prop.rhino.jar=${rhino.jar}
|
|
221 |
|
|
222 |
#timeout for performance tests in minutes
|
|
223 |
octaneperf-sys-prop.timeout.value=10
|