make/project.properties

Fri, 26 Jul 2013 20:10:47 +0530

author
sundar
date
Fri, 26 Jul 2013 20:10:47 +0530
changeset 476
fbd21b00197b
parent 474
f6588f168d79
child 489
dd79c04ef7df
permissions
-rw-r--r--

8021571: @fork tests should use VM options passed from project.properties
Reviewed-by: lagergren, hannesw, jlaskey

jlaskey@3 1 #
jlaskey@7 2 # Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
jlaskey@3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jlaskey@3 4 #
jlaskey@3 5 # This code is free software; you can redistribute it and/or modify it
jlaskey@3 6 # under the terms of the GNU General Public License version 2 only, as
jlaskey@3 7 # published by the Free Software Foundation.
jlaskey@3 8 #
jlaskey@3 9 # This code is distributed in the hope that it will be useful, but WITHOUT
jlaskey@3 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jlaskey@3 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jlaskey@3 12 # version 2 for more details (a copy is included in the LICENSE file that
jlaskey@3 13 # accompanied this code).
jlaskey@3 14 #
jlaskey@3 15 # You should have received a copy of the GNU General Public License version
jlaskey@3 16 # 2 along with this work; if not, write to the Free Software Foundation,
jlaskey@3 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jlaskey@3 18 #
jlaskey@3 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jlaskey@3 20 # or visit www.oracle.com if you need additional information or have any
jlaskey@3 21 # questions.
jlaskey@3 22 #
jlaskey@3 23
jlaskey@3 24 application.title=nashorn
jlaskey@3 25
sundar@10 26 # location of JDK embedded ASM sources
sundar@128 27 jdk.asm.src.dir=../jdk/src/share/classes/jdk/internal/org/objectweb/asm
sundar@10 28
jlaskey@3 29 # source and target levels
jlaskey@3 30 build.compiler=modern
jlaskey@3 31 javac.source=1.7
jlaskey@3 32 javac.target=1.7
jlaskey@3 33
jlaskey@3 34 # nashorn version information
jlaskey@3 35 nashorn.version=0.1
jlaskey@3 36 nashorn.fullversion=0.1
jlaskey@3 37 nashorn.product.name=Oracle Nashorn
jlaskey@3 38
jlaskey@3 39 # This directory is removed when the project is cleaned:
jlaskey@3 40 build.dir=build
jlaskey@3 41 build.classes.dir=${build.dir}/classes
jlaskey@3 42 build.zip=${build.dir}/nashorn.zip
jlaskey@3 43 build.gzip=${build.dir}/nashorn.tar.gz
jlaskey@3 44
jlaskey@3 45 # nashorn Shell tool
jlaskey@3 46 nashorn.shell.tool=jdk.nashorn.tools.Shell
jlaskey@3 47
jlaskey@3 48 # nasgen tool
jlaskey@3 49 nasgen.tool=jdk.nashorn.internal.tools.nasgen.Main
jlaskey@3 50
jlaskey@3 51 # parallel test runner tool
jlaskey@3 52 parallel.test.runner=jdk.nashorn.internal.test.framework.ParallelTestRunner
jlaskey@3 53
jlaskey@3 54 # test classes directory
jlaskey@3 55 build.test.classes.dir=${build.dir}/test/classes
sundar@77 56 # nashorn test jar - internal tests jar and api tests jar
sundar@77 57 nashorn.internal.tests.jar=${build.dir}/nashorn-internal-tests.jar
sundar@77 58 nashorn.api.tests.jar=${build.dir}/nashorn-api-tests.jar
sundar@77 59
jlaskey@3 60 # test results directory
jlaskey@3 61 build.test.results.dir=${build.dir}/test/reports
jlaskey@3 62
jlaskey@3 63 # This directory is removed when the project is cleaned:
jlaskey@3 64 dist.dir=dist
jlaskey@3 65 dist.jar=${dist.dir}/nashorn.jar
jlaskey@3 66 dist.javadoc.dir=${dist.dir}/javadoc
jlaskey@3 67
jlaskey@161 68 # nashorn javafx shell
jlaskey@161 69 fxshell.tool = jdk.nashorn.tools.FXShell
jlaskey@161 70 fxshell.classes.dir = ${build.dir}/fxshell/classes
jlaskey@161 71 fxshell.dir = tools/fxshell
jlaskey@161 72 fxshell.jar = ${dist.dir}/nashornfx.jar
jlaskey@161 73
jlaskey@3 74 # jars refererred
jlaskey@3 75 file.reference.testng.jar=test/lib/testng.jar
jlaskey@3 76
jlaskey@3 77 # Set testng verbose level
jlaskey@3 78 # From TestNG docs: "the verbosity level (0 to 10 where 10 is most detailed)
jlaskey@3 79 # Actually, this is a lie: you can specify -1 and this will put TestNG in
jlaskey@3 80 # debug mode (no longer slicing off stack traces and all)."
jlaskey@3 81
jlaskey@3 82 testng.verbose=2
jlaskey@3 83
jlaskey@3 84 # TestNG listeners - we want to replace TestNG's own JUnit
jlaskey@3 85 # reporter, but want everything else provided by default
jlaskey@3 86 # Unfortunately, we've to clone the other default reporters here.
jlaskey@3 87
jlaskey@3 88 testng.listeners=\
jlaskey@3 89 org.testng.reporters.SuiteHTMLReporter, \
sundar@300 90 org.testng.reporters.TestHTMLReporter, \
jlaskey@3 91 org.testng.reporters.jq.Main, \
jlaskey@3 92 org.testng.reporters.FailedReporter, \
jlaskey@3 93 org.testng.reporters.XMLReporter \
jlaskey@3 94 org.testng.reporters.EmailableReporter, \
jlaskey@3 95 jdk.nashorn.internal.test.framework.JSJUnitReportReporter
jlaskey@3 96
jlaskey@3 97 javac.debug=true
jlaskey@3 98 javac.encoding=ascii
jlaskey@3 99 javac.classpath=\
attila@90 100 ${build.classes.dir}
jlaskey@3 101 javac.test.classpath=\
jlaskey@3 102 ${build.classes.dir}:\
jlaskey@3 103 ${build.test.classes.dir}:\
jlaskey@3 104 ${file.reference.testng.jar}
jlaskey@3 105
jlaskey@3 106 meta.inf.dir=${src.dir}/META-INF
jlaskey@3 107
jlaskey@3 108 run.classpath=\
jlaskey@3 109 ${build.classes.dir}
jlaskey@3 110
jlaskey@3 111 # test scripts to run
jlaskey@3 112 test.dir=test
jlaskey@3 113 test.script.dir=test/script
jlaskey@3 114 test.basic.dir=test/script/basic
jlaskey@3 115 test.error.dir=test/script/error
jlaskey@3 116 test.sandbox.dir=test/script/sandbox
sundar@77 117 test.trusted.dir=test/script/trusted
jlaskey@3 118 test.external.dir=test/script/external
jlaskey@3 119 test262.dir=${test.external.dir}/test262
jlaskey@3 120 test262.suite.dir=${test262.dir}/test/suite
jlaskey@3 121
jlaskey@3 122 test-sys-prop.test.dir=${test.dir}
sundar@77 123 test-sys-prop.test.js.roots=${test.basic.dir} ${test.error.dir} ${test.sandbox.dir} ${test.trusted.dir}
jlaskey@3 124 test-sys-prop.test262.suite.dir=${test262.suite.dir}
jlaskey@3 125 test-sys-prop.es5conform.testcases.dir=${test.external.dir}/ES5Conform/TestCases
jlaskey@3 126 test-sys-prop.test.basic.dir=${test.basic.dir}
jlaskey@3 127
jlaskey@3 128 # framework root for our script tests
jlaskey@3 129 test-sys-prop.test.js.framework=${test.script.dir}/assert.js
jlaskey@3 130
jlaskey@3 131 # Control the verbosity of ParserTest
jlaskey@3 132 test-sys-prop.parsertest.verbose=false
jlaskey@3 133
jlaskey@3 134 # turn on/off scripting mode for parser tests
jlaskey@3 135 test-sys-prop.parsertest.scripting=true
jlaskey@3 136
jlaskey@3 137 # turn on/off test262 scripts for parser tests
jlaskey@3 138 test-sys-prop.parsertest.test262=false
jlaskey@3 139
jlaskey@3 140 # Control the verbosity of the CompilerTest
jlaskey@3 141 test-sys-prop.compilertest.verbose=false
jlaskey@3 142
jlaskey@3 143 # turn on/off scripting mode for compiler tests
jlaskey@3 144 test-sys-prop.compilertest.scripting=true
jlaskey@3 145
jlaskey@3 146 # turn on/off test262 scripts for compiler tests
jlaskey@3 147 test-sys-prop.compilertest.test262=false
jlaskey@3 148
jlaskey@3 149 # test directory to be excluded.
jlaskey@3 150 test-sys-prop.test.js.exclude.dir=${test.script.dir}/currently-failing ${test.external.dir}
jlaskey@3 151
jlaskey@3 152 # run everything that's js in here, without checking file headers for test annotations
jlaskey@3 153 test-sys-prop.test.js.unchecked.dir=${test262.dir}
jlaskey@3 154
jlaskey@3 155 # test root for octane
sundar@19 156 octane-test-sys-prop.test.js.roots=${test.external.dir}/octane/
jlaskey@3 157
sundar@25 158 # run octane benchmars in separate processes?
sundar@25 159 octane-test-sys-prop.separate.process=true
sundar@25 160
jlaskey@3 161 # framework root for octane
jlaskey@3 162 octane-test-sys-prop.test.js.framework=${test.basic.dir}/run-octane.js
jlaskey@3 163
jlaskey@3 164 # list of tests to be excluded
sundar@25 165 # mandreel excluded due to OOM
sundar@21 166 octane-test-sys-prop.test.js.exclude.list=\
sundar@21 167 base.js \
sundar@25 168 run.js \
sundar@25 169 mandreel.js
jlaskey@3 170
jlaskey@3 171 # test root for sunspider
sundar@19 172 sunspider-test-sys-prop.test.js.roots=${test.external.dir}/sunspider/tests/sunspider-1.0/
jlaskey@3 173
jlaskey@3 174 # framework root for sunspider
jlaskey@3 175 sunspider-test-sys-prop.test.js.framework=${test.basic.dir}/runsunspider.js
jlaskey@3 176
jlaskey@3 177 # list of tests to be excluded
jlaskey@3 178 sunspider-test-sys-prop.test.js.exclude.list=
jlaskey@3 179
jlaskey@3 180 # execute our script tests in shared nashorn context or not?
jlaskey@3 181 test-sys-prop.test.js.shared.context=false
jlaskey@3 182
jlaskey@3 183 # execute test262 tests in shared nashorn context or not?
jlaskey@3 184 test262-test-sys-prop.test.js.shared.context=true
jlaskey@3 185
jlaskey@3 186 # test262 test root
jlaskey@3 187 test262-test-sys-prop.test.js.roots=${test262.suite.dir}
jlaskey@3 188 # test262 enable/disable strict mode tests
jlaskey@3 189 test262-test-sys-prop.test.js.enable.strict.mode=true
jlaskey@3 190
jlaskey@3 191 # file containing test262 tests to be excluded
jlaskey@3 192 # test262-test-sys-prop.test.js.excludes.file=${test262.dir}/test/config/excludelist.xml
jlaskey@3 193
jlaskey@3 194 # list of test262 test dirs to be excluded
jlaskey@3 195 test262-test-sys-prop.test.js.exclude.dir=\
sundar@351 196 ${test262.suite.dir}/intl402/ \
sundar@351 197 ${test262.suite.dir}/bestPractice/
jlaskey@3 198
attila@255 199 test262-test-sys-prop.test.failed.list.file=${build.dir}/test/failedTests
attila@255 200
jlaskey@3 201 # test262 test frameworks
jlaskey@3 202 test262-test-sys-prop.test.js.framework=\
sundar@418 203 --class-cache-size=0 \
sundar@418 204 --no-java \
sundar@418 205 --no-typed-arrays \
jlaskey@3 206 -timezone=PST \
jlaskey@3 207 ${test.script.dir}/test262.js \
jlaskey@3 208 ${test262.dir}/test/harness/framework.js \
jlaskey@3 209 ${test262.dir}/test/harness/sta.js
jlaskey@3 210
jlaskey@3 211 run.test.classpath=\
jlaskey@3 212 ${file.reference.testng.jar}:\
sundar@77 213 ${nashorn.internal.tests.jar}:\
sundar@77 214 ${nashorn.api.tests.jar}
sundar@77 215
jlaskey@3 216 src.dir=src
jlaskey@3 217 test.src.dir=test/src
jlaskey@3 218
sundar@37 219 run.test.xmx=3G
sundar@37 220 run.test.xms=2G
sundar@37 221
sundar@293 222 run.test.user.language=tr
sundar@293 223 run.test.user.country=TR
sundar@293 224
jlaskey@3 225 # -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
sundar@293 226 run.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}
sundar@293 227
jlaskey@3 228 #-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
attila@144 229 run.test.jvmargs.octane.main=-Xms${run.test.xms} ${run.test.jvmargs.main}
jlaskey@3 230
sundar@82 231 run.test.jvmsecurityargs=-Xverify:all -Djava.security.properties=${basedir}/make/java.security.override -Djava.security.manager -Djava.security.policy=${basedir}/build/nashorn.policy
jlaskey@3 232
sundar@476 233 # VM options for script tests with @fork option
sundar@476 234 test-sys-prop.test.fork.jvm.options=${run.test.jvmargs.main} ${run.test.jvmsecurityargs}
sundar@476 235
jlaskey@3 236 # path of rhino.jar for benchmarks
jlaskey@3 237 rhino.jar=
jlaskey@3 238
jlaskey@3 239 v8.shell=d8
jlaskey@3 240
jlaskey@3 241 #path to rhino jar file
jlaskey@3 242 octaneperf-sys-prop.rhino.jar=${rhino.jar}
jlaskey@3 243
jlaskey@3 244 #timeout for performance tests in minutes
jlaskey@3 245 octaneperf-sys-prop.timeout.value=10
lagergren@111 246
lagergren@111 247 ################
lagergren@111 248 # codecoverage #
lagergren@111 249 ################
lagergren@111 250 #enable/disable code coverage; please redifine in the ${user.home}/.nashorn.project.local.properties
lagergren@111 251 make.code.coverage=false
lagergren@111 252 #type of codecoverage; one of static or dynamic. Now only dynamic is supported
lagergren@111 253 jcov=dynamic
lagergren@111 254 #naming of CC results
lagergren@111 255 #NB directory specified in the cc.dir will be cleaned up!!!
lagergren@111 256 cc.dir=${basedir}/../Codecoverage_Nashorn
jlaskey@143 257 cc.result.file.name=CC_${jcov}_nashorn.xml
lagergren@111 258 #dynamic CC parameters; please redefine in the ${user.home}/.nashorn.project.local.properties
lagergren@111 259 jcov2.lib.dir=${basedir}/../jcov2/lib
lagergren@111 260 jcov.jar=${jcov2.lib.dir}/jcov.jar
lagergren@111 261 cc.include=jdk\.nashorn\.*
lagergren@111 262 cc.exclude=jdk\.nashorn\.internal\.scripts\.*
jlaskey@143 263 cc.dynamic.genereate.template=true
jlaskey@143 264 cc.template=${cc.dir}/CC_template.xml
lagergren@111 265 cc.dynamic.args=-javaagent:${jcov.jar}=include=${cc.include},exclude=${cc.exclude},type=all,verbose=0,file=${cc.dir}/${cc.result.file.name}

mercurial