project.properties 7.8 KB
Newer Older
J
jlaskey 已提交
1
#
J
jlaskey 已提交
2
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
J
jlaskey 已提交
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
# 
# This code is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 only, as
# published by the Free Software Foundation.
# 
# This code is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# version 2 for more details (a copy is included in the LICENSE file that
# accompanied this code).
# 
# You should have received a copy of the GNU General Public License version
# 2 along with this work; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
# 
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
# or visit www.oracle.com if you need additional information or have any
# questions.
#

application.title=nashorn

26 27 28
# location of JDK embedded ASM sources
jdk.asm.src.dir=../jdk/src/share/classes/jdk/internal

J
jlaskey 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
# source and target levels
build.compiler=modern
javac.source=1.7
javac.target=1.7

# nashorn version information
nashorn.version=0.1
nashorn.fullversion=0.1
nashorn.product.name=Oracle Nashorn

# This directory is removed when the project is cleaned:
build.dir=build
build.classes.dir=${build.dir}/classes
build.zip=${build.dir}/nashorn.zip
build.gzip=${build.dir}/nashorn.tar.gz

# nashorn Shell tool
nashorn.shell.tool=jdk.nashorn.tools.Shell

# nasgen tool
nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main

# parallel test runner tool
parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner

# test classes directory
build.test.classes.dir=${build.dir}/test/classes
56 57 58 59
# nashorn test jar - internal tests jar and api tests jar
nashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
nashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar

J
jlaskey 已提交
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
# test results directory
build.test.results.dir=${build.dir}/test/reports

# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/nashorn.jar
dist.javadoc.dir=${dist.dir}/javadoc

# jars refererred
file.reference.testng.jar=test/lib/testng.jar

# Set testng verbose level
# From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed) 
# Actually, this is a lie: you can specify -1 and this will put TestNG in 
# debug mode (no longer slicing off stack traces and all)."

testng.verbose=2

# TestNG listeners - we want to replace TestNG's own JUnit
# reporter, but want everything else provided by default
# Unfortunately, we've to clone the other default reporters here.

testng.listeners=\
 org.testng.reporters.SuiteHTMLReporter, \
 org.testng.reporters.jq.Main, \
 org.testng.reporters.FailedReporter, \
 org.testng.reporters.XMLReporter \
 org.testng.reporters.EmailableReporter, \
 jdk.nashorn.internal.test.framework.JSJUnitReportReporter

# Define the version of Dynalink that is used. Version types are either
# 'snapshot' or 'release'. When it is 'snapshot', the version must have
# "-SNAPSHOT" suffix and the jar version will have a timestamp in it. When
# it's 'release', the version has no suffix, and the jar version is 
# identical to version - fun with Maven central.
dynalink.version=0.5-SNAPSHOT
dynalink.version.type=snapshot
97
dynalink.jar.version=0.5-20130109.113843-12
J
jlaskey 已提交
98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122
dynalink.dir.name=dynalink
dynalink.dir=build/${dynalink.dir.name}
dynalink.jar=${dynalink.dir}/dynalink.jar

javac.debug=true
javac.encoding=ascii
javac.classpath=\
    ${build.classes.dir}:\
    ${dynalink.jar}
javac.test.classpath=\
    ${build.classes.dir}:\
    ${build.test.classes.dir}:\
    ${file.reference.testng.jar}

meta.inf.dir=${src.dir}/META-INF

run.classpath=\
    ${build.classes.dir}

# test scripts to run
test.dir=test
test.script.dir=test/script
test.basic.dir=test/script/basic
test.error.dir=test/script/error
test.sandbox.dir=test/script/sandbox
123
test.trusted.dir=test/script/trusted
J
jlaskey 已提交
124 125 126 127 128
test.external.dir=test/script/external
test262.dir=${test.external.dir}/test262
test262.suite.dir=${test262.dir}/test/suite

test-sys-prop.test.dir=${test.dir}
129
test-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
J
jlaskey 已提交
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161
test-sys-prop.test262.suite.dir=${test262.suite.dir}
test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
test-sys-prop.test.basic.dir=${test.basic.dir}

# framework root for our script tests
test-sys-prop.test.js.framework=${test.script.dir}/assert.js

# Control the verbosity of ParserTest
test-sys-prop.parsertest.verbose=false

# turn on/off scripting mode for parser tests
test-sys-prop.parsertest.scripting=true

# turn on/off test262 scripts for parser tests
test-sys-prop.parsertest.test262=false

# Control the verbosity of the CompilerTest
test-sys-prop.compilertest.verbose=false

# turn on/off scripting mode for compiler tests
test-sys-prop.compilertest.scripting=true

# turn on/off test262 scripts for compiler tests
test-sys-prop.compilertest.test262=false

# test directory to be excluded.
test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}

# run everything that's js in here, without checking file headers for test annotations
test-sys-prop.test.js.unchecked.dir=${test262.dir}

# test root for octane
162
octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
J
jlaskey 已提交
163

164 165 166
# run octane benchmars in separate processes?
octane-test-sys-prop.separate.process=true

J
jlaskey 已提交
167 168 169 170
# framework root for octane
octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js

# list of tests to be excluded
171
# mandreel excluded due to OOM
172 173
octane-test-sys-prop.test.js.exclude.list=\
    base.js \
174 175
    run.js  \
    mandreel.js
J
jlaskey 已提交
176 177

# test root for sunspider
178
sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/
J
jlaskey 已提交
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212

# framework root for sunspider
sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js

# list of tests to be excluded
sunspider-test-sys-prop.test.js.exclude.list=

# execute our script tests in shared nashorn context or not?
test-sys-prop.test.js.shared.context=false

# execute test262 tests in shared nashorn context or not?
test262-test-sys-prop.test.js.shared.context=true

# test262 test root
test262-test-sys-prop.test.js.roots=${test262.suite.dir}
# test262 enable/disable strict mode tests
test262-test-sys-prop.test.js.enable.strict.mode=true

# file containing test262 tests to be excluded
# test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml

# list of test262 test dirs to be excluded
test262-test-sys-prop.test.js.exclude.dir=\
    ${test262.suite.dir}/intl402/

# test262 test frameworks
test262-test-sys-prop.test.js.framework=\
    -timezone=PST \
    ${test.script.dir}/test262.js \
    ${test262.dir}/test/harness/framework.js \
    ${test262.dir}/test/harness/sta.js

run.test.classpath=\
    ${file.reference.testng.jar}:\
213 214 215
    ${nashorn.internal.tests.jar}:\
    ${nashorn.api.tests.jar}

J
jlaskey 已提交
216 217 218
src.dir=src
test.src.dir=test/src

219 220 221
run.test.xmx=3G
run.test.xms=2G

J
jlaskey 已提交
222 223
#  -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
# add '-Dtest.js.outofprocess' to run each test in a new sub-process
224
run.test.jvmargs=-server -Xmx${run.test.xmx} -XX:-TieredCompilation -esa -ea -Dnashorn.debug=true -Dfile.encoding=UTF-8 
J
jlaskey 已提交
225
#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M  
226
run.test.jvmargs.octane=-Xms${run.test.xms} ${run.test.jvmargs}
J
jlaskey 已提交
227 228 229 230 231 232 233 234 235 236 237 238 239

run.test.jvmsecurityargs=-Xverify:all -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy

# path of rhino.jar for benchmarks
rhino.jar=

v8.shell=d8

#path to rhino jar file
octaneperf-sys-prop.rhino.jar=${rhino.jar}

#timeout for performance tests in minutes
octaneperf-sys-prop.timeout.value=10