Fri, 22 Aug 2014 15:47:28 +0530
8055796: JSObject and browser JSObject linkers should provide fallback to call underlying Java methods directly
Reviewed-by: attila, hannesw
jlaskey@3 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
attila@963 | 2 | |
jlaskey@3 | 3 | <!-- |
jlaskey@7 | 4 | Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
jlaskey@3 | 5 | DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
jlaskey@3 | 6 | |
jlaskey@3 | 7 | This code is free software; you can redistribute it and/or modify it |
jlaskey@3 | 8 | under the terms of the GNU General Public License version 2 only, as |
jlaskey@3 | 9 | published by the Free Software Foundation. |
jlaskey@3 | 10 | |
jlaskey@3 | 11 | This code is distributed in the hope that it will be useful, but WITHOUT |
jlaskey@3 | 12 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
jlaskey@3 | 13 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
jlaskey@3 | 14 | version 2 for more details (a copy is included in the LICENSE file that |
jlaskey@3 | 15 | accompanied this code). |
jlaskey@3 | 16 | |
jlaskey@3 | 17 | You should have received a copy of the GNU General Public License version |
jlaskey@3 | 18 | 2 along with this work; if not, write to the Free Software Foundation, |
jlaskey@3 | 19 | Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
jlaskey@3 | 20 | |
jlaskey@3 | 21 | Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
jlaskey@3 | 22 | or visit www.oracle.com if you need additional information or have any |
jlaskey@3 | 23 | questions. |
jlaskey@3 | 24 | --> |
attila@963 | 25 | |
sundar@126 | 26 | <project name="nashorn" default="test" basedir=".."> |
jlaskey@3 | 27 | <import file="build-nasgen.xml"/> |
lagergren@111 | 28 | <import file="code_coverage.xml"/> |
jlaskey@3 | 29 | |
lagergren@111 | 30 | <target name="init-conditions"> |
lagergren@111 | 31 | <!-- loading locally defined resources and properties. NB they owerwrite default ones defined later --> |
lagergren@111 | 32 | <property file="${user.home}/.nashorn.project.local.properties"/> |
lagergren@111 | 33 | |
jlaskey@3 | 34 | <loadproperties srcFile="make/project.properties"/> |
jlaskey@3 | 35 | <path id="nashorn.ext.path"> |
jlaskey@3 | 36 | <pathelement location="${dist.dir}"/> |
sundar@966 | 37 | <pathelement location="${java.ext.dirs}"/> |
jlaskey@3 | 38 | </path> |
jlaskey@3 | 39 | <property name="ext.class.path" value="-Djava.ext.dirs="${toString:nashorn.ext.path}""/> |
sundar@19 | 40 | <condition property="svn.executable" value="/usr/local/bin/svn" else="svn"> |
sundar@19 | 41 | <available file="/usr/local/bin/svn"/> |
sundar@19 | 42 | </condition> |
sundar@19 | 43 | <condition property="hg.executable" value="/usr/local/bin/hg" else="hg"> |
sundar@19 | 44 | <available file="/usr/local/bin/hg"/> |
sundar@19 | 45 | </condition> |
sundar@775 | 46 | <condition property="git.executable" value="/usr/local/bin/git" else="git"> |
sundar@775 | 47 | <available file="/usr/local/bin/git"/> |
sundar@775 | 48 | </condition> |
attila@288 | 49 | <!-- check if JDK already has ASM classes --> |
attila@288 | 50 | <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/> |
sundar@26 | 51 | <!-- check if testng.jar is avaiable --> |
sundar@26 | 52 | <available property="testng.available" file="${file.reference.testng.jar}"/> |
kshefov@638 | 53 | <!-- check if Jemmy ang testng.jar are avaiable --> |
kshefov@638 | 54 | <condition property="jemmy.jfx.testng.available" value="true"> |
attila@963 | 55 | <and> |
kshefov@638 | 56 | <available file="${file.reference.jemmyfx.jar}"/> |
kshefov@638 | 57 | <available file="${file.reference.jemmycore.jar}"/> |
kshefov@638 | 58 | <available file="${file.reference.jemmyawtinput.jar}"/> |
kshefov@638 | 59 | <available file="${file.reference.jfxrt.jar}"/> |
kshefov@638 | 60 | <isset property="testng.available"/> |
kshefov@638 | 61 | </and> |
kshefov@638 | 62 | </condition> |
lagergren@111 | 63 | |
hannesw@474 | 64 | <!-- enable/disable make code coverage --> |
hannesw@474 | 65 | <condition property="cc.enabled"> |
hannesw@474 | 66 | <istrue value="${make.code.coverage}" /> |
hannesw@474 | 67 | </condition> |
jlaskey@453 | 68 | |
jlaskey@453 | 69 | <!-- exclude tests in exclude lists --> |
jlaskey@453 | 70 | <condition property="exclude.list" value="./exclude/exclude_list_cc.txt" else="./exclude/exclude_list.txt"> |
jlaskey@453 | 71 | <istrue value="${make.code.coverage}" /> |
jlaskey@453 | 72 | </condition> |
attila@963 | 73 | |
attila@963 | 74 | <condition property="jfr.options" value="${run.test.jvmargs.jfr}" else=""> |
attila@963 | 75 | <istrue value="${jfr}"/> |
attila@963 | 76 | </condition> |
lagergren@111 | 77 | </target> |
lagergren@111 | 78 | |
lagergren@111 | 79 | <target name="init" depends="init-conditions, init-cc"> |
hannesw@474 | 80 | <!-- extends jvm args --> |
attila@963 | 81 | <property name="run.test.jvmargs" value="${run.test.jvmargs.main} ${run.test.cc.jvmargs} ${jfr.options}"/> |
attila@963 | 82 | <property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main} ${run.test.cc.jvmargs} ${jfr.options}"/> |
lagergren@111 | 83 | |
lagergren@111 | 84 | <echo message="run.test.jvmargs=${run.test.jvmargs}"/> |
lagergren@111 | 85 | <echo message="run.test.jvmargs.octane=${run.test.jvmargs.octane}"/> |
hannesw@562 | 86 | <echo message="run.test.xms=${run.test.xms}"/> |
hannesw@562 | 87 | <echo message="run.test.xmx=${run.test.xmx}"/> |
lagergren@111 | 88 | |
jlaskey@3 | 89 | </target> |
jlaskey@3 | 90 | |
jlaskey@3 | 91 | <target name="prepare" depends="init"> |
jlaskey@3 | 92 | <mkdir dir="${build.dir}"/> |
jlaskey@3 | 93 | <mkdir dir="${build.classes.dir}"/> |
jlaskey@3 | 94 | <mkdir dir="${build.classes.dir}/META-INF/services"/> |
jlaskey@3 | 95 | <mkdir dir="${build.test.classes.dir}"/> |
jlaskey@3 | 96 | <mkdir dir="${dist.dir}"/> |
jlaskey@3 | 97 | <mkdir dir="${dist.javadoc.dir}"/> |
jlaskey@3 | 98 | </target> |
jlaskey@3 | 99 | |
lagergren@111 | 100 | <target name="clean" depends="init, clean-nasgen, init-cc-cleanup"> |
jlaskey@3 | 101 | <delete includeemptydirs="true"> |
attila@90 | 102 | <fileset dir="${build.dir}" erroronmissingdir="false"/> |
jlaskey@3 | 103 | </delete> |
jlaskey@3 | 104 | <delete dir="${dist.dir}"/> |
jlaskey@3 | 105 | </target> |
jlaskey@3 | 106 | |
attila@288 | 107 | <!-- do it only if ASM is not available --> |
attila@288 | 108 | <target name="compile-asm" depends="prepare" unless="asm.available"> |
attila@288 | 109 | <javac srcdir="${jdk.asm.src.dir}" |
attila@288 | 110 | destdir="${build.classes.dir}" |
attila@288 | 111 | excludes="**/optimizer/* **/xml/* **/attrs/*" |
attila@288 | 112 | source="${javac.source}" |
attila@288 | 113 | target="${javac.target}" |
attila@288 | 114 | debug="${javac.debug}" |
attila@288 | 115 | encoding="${javac.encoding}" |
attila@288 | 116 | includeantruntime="false"/> |
attila@288 | 117 | </target> |
attila@288 | 118 | |
attila@288 | 119 | <target name="compile" depends="compile-asm" description="Compiles nashorn"> |
jlaskey@3 | 120 | <javac srcdir="${src.dir}" |
jlaskey@3 | 121 | destdir="${build.classes.dir}" |
jlaskey@3 | 122 | classpath="${javac.classpath}" |
jlaskey@3 | 123 | source="${javac.source}" |
jlaskey@3 | 124 | target="${javac.target}" |
jlaskey@3 | 125 | debug="${javac.debug}" |
jlaskey@3 | 126 | encoding="${javac.encoding}" |
sundar@414 | 127 | includeantruntime="false" fork="true"> |
sundar@414 | 128 | <compilerarg value="-J-Djava.ext.dirs="/> |
attila@963 | 129 | <compilerarg value="-Xlint:all"/> |
jlaskey@3 | 130 | <compilerarg value="-XDignore.symbol.file"/> |
sundar@771 | 131 | <compilerarg value="-Xdiags:verbose"/> |
jlaskey@3 | 132 | </javac> |
jlaskey@3 | 133 | <copy todir="${build.classes.dir}/META-INF/services"> |
jlaskey@3 | 134 | <fileset dir="${meta.inf.dir}/services/"/> |
jlaskey@3 | 135 | </copy> |
jlaskey@3 | 136 | <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources"> |
jlaskey@3 | 137 | <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/> |
jlaskey@3 | 138 | </copy> |
jlaskey@3 | 139 | <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources"> |
jlaskey@3 | 140 | <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/> |
jlaskey@3 | 141 | </copy> |
jlaskey@3 | 142 | <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources"> |
jlaskey@3 | 143 | <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/> |
jlaskey@3 | 144 | </copy> |
attila@90 | 145 | <copy file="${src.dir}/jdk/internal/dynalink/support/messages.properties" todir="${build.classes.dir}/jdk/internal/dynalink/support"/> |
attila@90 | 146 | |
jlaskey@3 | 147 | <echo message="full=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/> |
jlaskey@3 | 148 | <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo> |
jlaskey@3 | 149 | <echo message="release=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/> |
jlaskey@3 | 150 | </target> |
jlaskey@3 | 151 | |
jlaskey@392 | 152 | <target name="jar" depends="compile, run-nasgen, generate-cc-template" description="Creates nashorn.jar" unless="compile.suppress.jar"> |
jlaskey@3 | 153 | <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge"> |
jlaskey@3 | 154 | <fileset dir="${build.classes.dir}"/> |
jlaskey@3 | 155 | <manifest> |
jlaskey@3 | 156 | <attribute name="Archiver-Version" value="n/a"/> |
jlaskey@3 | 157 | <attribute name="Build-Jdk" value="${java.runtime.version}"/> |
jlaskey@3 | 158 | <attribute name="Built-By" value="n/a"/> |
jlaskey@3 | 159 | <attribute name="Created-By" value="Ant jar task"/> |
jlaskey@3 | 160 | <section name="jdk/nashorn/"> |
jlaskey@3 | 161 | <attribute name="Implementation-Title" value="${nashorn.product.name}"/> |
jlaskey@3 | 162 | <attribute name="Implementation-Version" value="${nashorn.version}"/> |
jlaskey@3 | 163 | </section> |
jlaskey@3 | 164 | </manifest> |
jlaskey@3 | 165 | </jar> |
jlaskey@3 | 166 | </target> |
jlaskey@392 | 167 | |
jlaskey@392 | 168 | <target name="use-promoted-nashorn" depends="init"> |
jlaskey@392 | 169 | <delete file="${dist.dir}/nashorn.jar"/> |
jlaskey@392 | 170 | <copy file="${java.home}/lib/ext/nashorn.jar" todir="${dist.dir}"/> |
jlaskey@392 | 171 | <property name="compile.suppress.jar" value="defined"/> |
jlaskey@392 | 172 | </target> |
jlaskey@392 | 173 | |
jlaskey@161 | 174 | <target name="build-fxshell" depends="jar"> |
jlaskey@161 | 175 | <description>Builds the javafx shell.</description> |
jlaskey@161 | 176 | <mkdir dir="${fxshell.classes.dir}"/> |
jlaskey@161 | 177 | <javac srcdir="${fxshell.dir}" |
jlaskey@161 | 178 | destdir="${fxshell.classes.dir}" |
jlaskey@161 | 179 | classpath="${dist.jar}:${javac.classpath}" |
jlaskey@161 | 180 | debug="${javac.debug}" |
jlaskey@161 | 181 | encoding="${javac.encoding}" |
jlaskey@161 | 182 | includeantruntime="false"> |
jlaskey@161 | 183 | </javac> |
jlaskey@161 | 184 | <jar jarfile="${fxshell.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge"> |
jlaskey@161 | 185 | <fileset dir="${fxshell.classes.dir}"/> |
jlaskey@161 | 186 | <manifest> |
jlaskey@161 | 187 | <attribute name="Archiver-Version" value="n/a"/> |
jlaskey@161 | 188 | <attribute name="Build-Jdk" value="${java.runtime.version}"/> |
jlaskey@161 | 189 | <attribute name="Built-By" value="n/a"/> |
jlaskey@161 | 190 | <attribute name="Created-By" value="Ant jar task"/> |
jlaskey@161 | 191 | <section name="jdk/nashorn/"> |
jlaskey@161 | 192 | <attribute name="Implementation-Title" value="Oracle Nashorn FXShell"/> |
jlaskey@161 | 193 | <attribute name="Implementation-Version" value="${nashorn.version}"/> |
jlaskey@161 | 194 | </section> |
jlaskey@161 | 195 | </manifest> |
jlaskey@161 | 196 | </jar> |
jlaskey@161 | 197 | </target> |
jlaskey@3 | 198 | |
sundar@864 | 199 | <target name="javadoc" depends="jar"> |
sundar@864 | 200 | <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" |
sundar@864 | 201 | extdirs="${nashorn.ext.path}" windowtitle="${nashorn.product.name} ${nashorn.version}" |
sundar@864 | 202 | additionalparam="-quiet" failonerror="true"> |
jlaskey@3 | 203 | <classpath> |
jlaskey@3 | 204 | <pathelement location="${build.classes.dir}"/> |
jlaskey@3 | 205 | </classpath> |
jlaskey@3 | 206 | <fileset dir="${src.dir}" includes="**/*.java"/> |
sundar@10 | 207 | <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/> |
sundar@864 | 208 | <link href="http://docs.oracle.com/javase/8/docs/api/"/> |
sundar@10 | 209 | <!-- The following tags are used only in ASM sources - just ignore these --> |
sundar@10 | 210 | <tag name="label" description="label tag in ASM sources" enabled="false"/> |
sundar@10 | 211 | <tag name="linked" description="linked tag in ASM sources" enabled="false"/> |
sundar@10 | 212 | <tag name="associates" description="associates tag in ASM sources" enabled="false"/> |
jlaskey@3 | 213 | </javadoc> |
jlaskey@3 | 214 | </target> |
jlaskey@3 | 215 | |
sundar@864 | 216 | <!-- generate javadoc only for nashorn extension api classes --> |
sundar@864 | 217 | <target name="javadocapi" depends="jar"> |
sundar@864 | 218 | <javadoc destdir="${dist.javadoc.dir}" use="yes" extdirs="${nashorn.ext.path}" |
sundar@864 | 219 | windowtitle="${nashorn.product.name}" additionalparam="-quiet" failonerror="true"> |
sundar@864 | 220 | <classpath> |
sundar@864 | 221 | <pathelement location="${build.classes.dir}"/> |
sundar@864 | 222 | </classpath> |
sundar@864 | 223 | <fileset dir="${src.dir}" includes="jdk/nashorn/api/**/*.java"/> |
sundar@864 | 224 | <link href="http://docs.oracle.com/javase/8/docs/api/"/> |
sundar@864 | 225 | </javadoc> |
sundar@864 | 226 | </target> |
sundar@864 | 227 | |
sundar@864 | 228 | |
jlaskey@3 | 229 | <!-- generate shell.html for shell tool documentation --> |
jlaskey@3 | 230 | <target name="shelldoc" depends="jar"> |
jlaskey@3 | 231 | <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true"> |
jlaskey@3 | 232 | <jvmarg line="${ext.class.path}"/> |
jlaskey@3 | 233 | <arg value="-scripting"/> |
jlaskey@3 | 234 | <arg value="docs/genshelldoc.js"/> |
jlaskey@3 | 235 | </java> |
jlaskey@3 | 236 | </target> |
jlaskey@3 | 237 | |
jlaskey@3 | 238 | <!-- generate all docs --> |
jlaskey@3 | 239 | <target name="docs" depends="javadoc, shelldoc"/> |
jlaskey@3 | 240 | |
jlaskey@3 | 241 | <!-- create .zip and .tar.gz for nashorn binaries and scripts. --> |
jlaskey@3 | 242 | <target name="dist" depends="jar"> |
jlaskey@3 | 243 | <zip destfile="${build.zip}" basedir=".." |
jlaskey@3 | 244 | excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/> |
jlaskey@3 | 245 | <tar destfile="${build.gzip}" basedir=".." compression="gzip" |
jlaskey@3 | 246 | excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/> |
jlaskey@3 | 247 | </target> |
jlaskey@3 | 248 | |
jlaskey@3 | 249 | <target name="compile-test" depends="compile, run-nasgen" if="testng.available"> |
jlaskey@3 | 250 | <!-- testng task --> |
jlaskey@3 | 251 | <taskdef name="testng" classname="org.testng.TestNGAntTask" |
jlaskey@3 | 252 | classpath="${file.reference.testng.jar}"/> |
jlaskey@3 | 253 | |
jlaskey@3 | 254 | <javac srcdir="${test.src.dir}" |
jlaskey@3 | 255 | destdir="${build.test.classes.dir}" |
jlaskey@3 | 256 | classpath="${javac.test.classpath}" |
jlaskey@3 | 257 | source="${javac.source}" |
jlaskey@3 | 258 | target="${javac.target}" |
jlaskey@3 | 259 | debug="${javac.debug}" |
jlaskey@3 | 260 | encoding="${javac.encoding}" |
sundar@428 | 261 | includeantruntime="false" fork="true"> |
sundar@428 | 262 | <compilerarg value="-J-Djava.ext.dirs="/> |
sundar@428 | 263 | <compilerarg value="-Xlint:unchecked"/> |
sundar@428 | 264 | <compilerarg value="-Xlint:deprecation"/> |
sundar@771 | 265 | <compilerarg value="-Xdiags:verbose"/> |
sundar@278 | 266 | </javac> |
sundar@77 | 267 | |
sundar@552 | 268 | <copy todir="${build.test.classes.dir}/META-INF/services"> |
sundar@552 | 269 | <fileset dir="${test.src.dir}/META-INF/services/"/> |
sundar@552 | 270 | </copy> |
sundar@552 | 271 | |
sundar@587 | 272 | <copy todir="${build.test.classes.dir}/jdk/nashorn/internal/runtime/resources"> |
sundar@587 | 273 | <fileset dir="${test.src.dir}/jdk/nashorn/internal/runtime/resources"/> |
sundar@587 | 274 | </copy> |
sundar@587 | 275 | |
hannesw@769 | 276 | <copy todir="${build.test.classes.dir}/jdk/nashorn/api/scripting/resources"> |
hannesw@769 | 277 | <fileset dir="${test.src.dir}/jdk/nashorn/api/scripting/resources"/> |
hannesw@769 | 278 | </copy> |
hannesw@769 | 279 | |
sundar@77 | 280 | <!-- tests that check nashorn internals and internal API --> |
sundar@77 | 281 | <jar jarfile="${nashorn.internal.tests.jar}"> |
sundar@136 | 282 | <fileset dir="${build.test.classes.dir}" excludes="**/api/**"/> |
sundar@77 | 283 | </jar> |
sundar@77 | 284 | |
sundar@77 | 285 | <!-- tests that check nashorn script engine (jsr-223) API --> |
sundar@77 | 286 | <jar jarfile="${nashorn.api.tests.jar}"> |
sundar@136 | 287 | <fileset dir="${build.test.classes.dir}" includes="**/api/**"/> |
sundar@552 | 288 | <fileset dir="${build.test.classes.dir}" includes="**/META-INF/**"/> |
sundar@587 | 289 | <fileset dir="${build.test.classes.dir}" includes="**/resources/*.js"/> |
sundar@77 | 290 | </jar> |
sundar@77 | 291 | |
jlaskey@3 | 292 | </target> |
jlaskey@3 | 293 | |
attila@92 | 294 | <target name="generate-policy-file" depends="prepare"> |
attila@404 | 295 | <echo file="${build.dir}/nashorn.policy"> |
sundar@77 | 296 | |
attila@963 | 297 | grant codeBase "file:/${toString:nashorn.ext.path}/nashorn.jar" { |
attila@963 | 298 | permission java.security.AllPermission; |
attila@963 | 299 | }; |
attila@963 | 300 | |
attila@404 | 301 | grant codeBase "file:/${basedir}/${nashorn.internal.tests.jar}" { |
attila@404 | 302 | permission java.security.AllPermission; |
attila@404 | 303 | }; |
jlaskey@392 | 304 | |
attila@404 | 305 | grant codeBase "file:/${basedir}/${file.reference.testng.jar}" { |
attila@404 | 306 | permission java.security.AllPermission; |
attila@404 | 307 | }; |
attila@963 | 308 | //// in case of absolute path: |
attila@963 | 309 | grant codeBase "file:/${nashorn.internal.tests.jar}" { |
attila@963 | 310 | permission java.security.AllPermission; |
attila@963 | 311 | }; |
attila@963 | 312 | |
attila@963 | 313 | grant codeBase "file:/${file.reference.testng.jar}" { |
attila@963 | 314 | permission java.security.AllPermission; |
attila@963 | 315 | }; |
jlaskey@3 | 316 | |
attila@404 | 317 | grant codeBase "file:/${basedir}/test/script/trusted/*" { |
attila@404 | 318 | permission java.security.AllPermission; |
attila@404 | 319 | }; |
jlaskey@3 | 320 | |
sundar@762 | 321 | grant codeBase "file:/${basedir}/test/script/maptests/*" { |
sundar@762 | 322 | permission java.io.FilePermission "${basedir}/test/script/maptests/*","read"; |
sundar@762 | 323 | permission java.lang.RuntimePermission "nashorn.debugMode"; |
sundar@762 | 324 | }; |
sundar@762 | 325 | |
attila@404 | 326 | grant codeBase "file:/${basedir}/test/script/basic/*" { |
attila@404 | 327 | permission java.io.FilePermission "${basedir}/test/script/-", "read"; |
attila@404 | 328 | permission java.io.FilePermission "$${user.dir}", "read"; |
attila@404 | 329 | permission java.util.PropertyPermission "user.dir", "read"; |
attila@404 | 330 | permission java.util.PropertyPermission "nashorn.test.*", "read"; |
attila@404 | 331 | }; |
attila@404 | 332 | |
sundar@551 | 333 | grant codeBase "file:/${basedir}/test/script/basic/parser/*" { |
sundar@551 | 334 | permission java.io.FilePermission "${basedir}/test/script/-", "read"; |
sundar@551 | 335 | permission java.io.FilePermission "$${user.dir}", "read"; |
sundar@551 | 336 | permission java.util.PropertyPermission "user.dir", "read"; |
sundar@551 | 337 | permission java.util.PropertyPermission "nashorn.test.*", "read"; |
sundar@551 | 338 | }; |
sundar@551 | 339 | |
attila@404 | 340 | grant codeBase "file:/${basedir}/test/script/basic/JDK-8010946-privileged.js" { |
attila@404 | 341 | permission java.util.PropertyPermission "java.security.policy", "read"; |
attila@404 | 342 | }; |
attila@458 | 343 | |
attila@458 | 344 | grant codeBase "file:/${basedir}/test/script/basic/classloader.js" { |
attila@458 | 345 | permission java.lang.RuntimePermission "nashorn.JavaReflection"; |
attila@458 | 346 | }; |
attila@458 | 347 | |
attila@963 | 348 | grant codeBase "file:/${basedir}/test/script/markdown.js" { |
attila@963 | 349 | permission java.io.FilePermission "${basedir}/test/script/external/showdown/-", "read"; |
attila@963 | 350 | }; |
attila@963 | 351 | |
attila@404 | 352 | </echo> |
jlaskey@3 | 353 | |
jlaskey@3 | 354 | <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Windows - to make URLs with normal path separators --> |
jlaskey@3 | 355 | <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace> <!--hack for Unix - to avoid leading // in URLs --> |
jlaskey@3 | 356 | |
jlaskey@3 | 357 | </target> |
jlaskey@3 | 358 | |
jlaskey@3 | 359 | <target name="check-external-tests"> |
jlaskey@3 | 360 | <available file="${test.external.dir}/prototype" property="test-sys-prop.external.prototype"/> |
jlaskey@3 | 361 | <available file="${test.external.dir}/sunspider" property="test-sys-prop.external.sunspider"/> |
jlaskey@3 | 362 | <available file="${test.external.dir}/underscore" property="test-sys-prop.external.underscore"/> |
jlaskey@3 | 363 | <available file="${test.external.dir}/octane" property="test-sys-prop.external.octane"/> |
jlaskey@3 | 364 | <available file="${test.external.dir}/yui" property="test-sys-prop.external.yui"/> |
jlaskey@3 | 365 | <available file="${test.external.dir}/jquery" property="test-sys-prop.external.jquery"/> |
jlaskey@3 | 366 | <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/> |
attila@963 | 367 | <available file="${test.external.dir}/showdown" property="test-sys-prop.external.markdown"/> |
jlaskey@3 | 368 | </target> |
jlaskey@3 | 369 | |
jlaskey@3 | 370 | <target name="check-testng" unless="testng.available"> |
jlaskey@3 | 371 | <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under test/lib directory."/> |
jlaskey@3 | 372 | </target> |
jlaskey@3 | 373 | |
sundar@870 | 374 | <!-- only to be invoked as dependency of "test" target --> |
sundar@870 | 375 | <target name="-test-classes-all" depends="jar" unless="test.class"> |
sundar@870 | 376 | <fileset id="test.classes" dir="${build.test.classes.dir}"> |
sundar@870 | 377 | <include name="**/api/javaaccess/*Test.class"/> |
sundar@870 | 378 | <include name="**/api/scripting/*Test.class"/> |
sundar@870 | 379 | <include name="**/codegen/*Test.class"/> |
sundar@870 | 380 | <include name="**/parser/*Test.class"/> |
sundar@870 | 381 | <include name="**/runtime/*Test.class"/> |
sundar@870 | 382 | <include name="**/runtime/regexp/*Test.class"/> |
sundar@870 | 383 | <include name="**/runtime/regexp/joni/*Test.class"/> |
sundar@870 | 384 | <include name="**/framework/*Test.class"/> |
sundar@870 | 385 | </fileset> |
sundar@870 | 386 | </target> |
jlaskey@3 | 387 | |
sundar@870 | 388 | <!-- only to be invoked as dependency of "test" target --> |
sundar@870 | 389 | <target name="-test-classes-single" depends="jar" if="test.class"> |
sundar@870 | 390 | <fileset id="test.classes" dir="${build.test.classes.dir}"> |
sundar@870 | 391 | <include name="${test.class}*"/> |
sundar@870 | 392 | </fileset> |
sundar@870 | 393 | </target> |
sundar@870 | 394 | |
sundar@870 | 395 | <!-- only to be invoked as dependency of "test" target --> |
sundar@870 | 396 | <target name="-test-nosecurity" unless="test.class"> |
sundar@855 | 397 | <fileset id="test.nosecurity.classes" dir="${build.test.classes.dir}"> |
sundar@855 | 398 | <include name="**/framework/ScriptTest.class"/> |
sundar@855 | 399 | </fileset> |
sundar@855 | 400 | <testng outputdir="${build.nosecurity.test.results.dir}" classfilesetref="test.nosecurity.classes" |
sundar@855 | 401 | verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}"> |
sundar@855 | 402 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 403 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} -Dbuild.dir=${build.dir}"/> |
attila@963 | 404 | <sysproperty key="nashorn.jar" value="${dist.dir}/nashorn.jar"/> |
sundar@855 | 405 | <propertyset> |
sundar@855 | 406 | <propertyref prefix="nashorn."/> |
sundar@855 | 407 | </propertyset> |
sundar@855 | 408 | <propertyset> |
sundar@855 | 409 | <propertyref prefix="test-sys-prop-no-security."/> |
sundar@855 | 410 | <mapper from="test-sys-prop-no-security.*" to="*" type="glob"/> |
sundar@855 | 411 | </propertyset> |
sundar@855 | 412 | <classpath> |
sundar@855 | 413 | <pathelement path="${run.test.classpath}"/> |
sundar@855 | 414 | </classpath> |
sundar@855 | 415 | </testng> |
jlaskey@3 | 416 | </target> |
jlaskey@3 | 417 | |
sundar@870 | 418 | <!-- only to be invoked as dependency of "test" target --> |
sundar@870 | 419 | <target name="-test-security"> |
sundar@870 | 420 | <delete dir="${build.dir}/nashorn_code_cache"/> |
sundar@870 | 421 | <property name="debug.test.jvmargs" value=""/> |
sundar@870 | 422 | <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes" |
sundar@870 | 423 | verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}"> |
sundar@870 | 424 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 425 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/> |
sundar@870 | 426 | <jvmarg line="${debug.test.jvmargs}"/> |
sundar@870 | 427 | <propertyset> |
attila@963 | 428 | <propertyref prefix="nashorn."/> |
attila@963 | 429 | </propertyset> |
attila@963 | 430 | <propertyset> |
sundar@870 | 431 | <propertyref prefix="test-sys-prop."/> |
sundar@870 | 432 | <mapper from="test-sys-prop.*" to="*" type="glob"/> |
sundar@870 | 433 | </propertyset> |
sundar@870 | 434 | <sysproperty key="test.js.excludes.file" value="${exclude.list}"/> |
sundar@870 | 435 | <classpath> |
sundar@870 | 436 | <pathelement path="${run.test.classpath}"/> |
sundar@870 | 437 | </classpath> |
sundar@870 | 438 | </testng> |
sundar@870 | 439 | </target> |
sundar@870 | 440 | |
sundar@870 | 441 | <target name="test" depends="jar, -test-classes-all,-test-classes-single, check-testng, check-external-tests, compile-test, generate-policy-file, -test-security, -test-nosecurity" if="testng.available"/> |
sundar@870 | 442 | |
kshefov@638 | 443 | <target name="check-jemmy.jfx.testng" unless="jemmy.jfx.testng.available"> |
kshefov@638 | 444 | <echo message="WARNING: Jemmy or JavaFX or TestNG not available, will not run tests. Please copy testng.jar, JemmyCore.jar, JemmyFX.jar, JemmyAWTInput.jar under test${file.separator}lib directory. And make sure you have jfxrt.jar in ${java.home}${file.separator}lib${file.separator}ext dir."/> |
kshefov@638 | 445 | </target> |
kshefov@638 | 446 | |
kshefov@638 | 447 | <target name="testjfx" depends="jar, check-jemmy.jfx.testng, compile-test" if="jemmy.jfx.testng.available"> |
kshefov@638 | 448 | <fileset id="test.classes" dir="${build.test.classes.dir}"> |
kshefov@638 | 449 | <include name="**/framework/*Test.class"/> |
kshefov@638 | 450 | </fileset> |
attila@963 | 451 | |
kshefov@638 | 452 | <copy file="${file.reference.jfxrt.jar}" todir="dist"/> |
attila@963 | 453 | |
kshefov@667 | 454 | <condition property="jfx.prism.order" value="-Dprism.order=j2d" else=" "> |
attila@963 | 455 | <not> |
kshefov@667 | 456 | <os family="mac"/> |
kshefov@667 | 457 | </not> |
attila@963 | 458 | </condition> |
attila@963 | 459 | |
kshefov@638 | 460 | <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes" |
kshefov@638 | 461 | verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}"> |
kshefov@638 | 462 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 463 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} -Dbuild.dir=${build.dir}"/> |
kshefov@638 | 464 | <propertyset> |
kshefov@638 | 465 | <propertyref prefix="testjfx-test-sys-prop."/> |
kshefov@638 | 466 | <mapper from="testjfx-test-sys-prop.*" to="*" type="glob"/> |
kshefov@638 | 467 | </propertyset> |
kshefov@667 | 468 | <sysproperty key="test.fork.jvm.options" value="${testjfx-test-sys-prop.test.fork.jvm.options} ${jfx.prism.order}"/> |
kshefov@638 | 469 | <classpath> |
kshefov@638 | 470 | <pathelement path="${testjfx.run.test.classpath}"/> |
kshefov@638 | 471 | </classpath> |
kshefov@638 | 472 | </testng> |
kshefov@638 | 473 | </target> |
attila@963 | 474 | |
attila@963 | 475 | <target name="testmarkdown" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available"> |
attila@963 | 476 | <fileset id="test.classes" dir="${build.test.classes.dir}"> |
attila@963 | 477 | <include name="**/framework/*Test.class"/> |
attila@963 | 478 | </fileset> |
attila@963 | 479 | |
attila@963 | 480 | <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes" |
attila@963 | 481 | verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}"> |
attila@963 | 482 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 483 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/> |
attila@963 | 484 | <propertyset> |
attila@963 | 485 | <propertyref prefix="testmarkdown-test-sys-prop."/> |
attila@963 | 486 | <mapper from="testmarkdown-test-sys-prop.*" to="*" type="glob"/> |
attila@963 | 487 | </propertyset> |
attila@963 | 488 | <classpath> |
attila@963 | 489 | <pathelement path="${run.test.classpath}"/> |
attila@963 | 490 | </classpath> |
attila@963 | 491 | </testng> |
attila@963 | 492 | </target> |
attila@963 | 493 | |
sundar@87 | 494 | <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available"> |
jlaskey@3 | 495 | <fileset id="test.classes" dir="${build.test.classes.dir}"> |
jlaskey@3 | 496 | <include name="**/framework/*Test.class"/> |
jlaskey@3 | 497 | </fileset> |
jlaskey@3 | 498 | |
jlaskey@3 | 499 | <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes" |
jlaskey@3 | 500 | verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}"> |
jlaskey@3 | 501 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 502 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/> |
attila@963 | 503 | <propertyset> |
attila@963 | 504 | <propertyref prefix="nashorn."/> |
attila@963 | 505 | </propertyset> |
jlaskey@3 | 506 | <propertyset> |
jlaskey@3 | 507 | <propertyref prefix="test262-test-sys-prop."/> |
jlaskey@3 | 508 | <mapper from="test262-test-sys-prop.*" to="*" type="glob"/> |
jlaskey@3 | 509 | </propertyset> |
jlaskey@3 | 510 | <classpath> |
jlaskey@3 | 511 | <pathelement path="${run.test.classpath}"/> |
jlaskey@3 | 512 | </classpath> |
jlaskey@3 | 513 | </testng> |
jlaskey@3 | 514 | </target> |
jlaskey@3 | 515 | |
jlaskey@3 | 516 | <target name="test262parallel" depends="test262-parallel"/> |
jlaskey@3 | 517 | |
sundar@87 | 518 | <target name="test262-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available"> |
jlaskey@3 | 519 | <!-- use just build.test.classes.dir to avoid referring to TestNG --> |
sundar@87 | 520 | <java classname="${parallel.test.runner}" dir="${basedir}" fork="true"> |
jlaskey@3 | 521 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 522 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs} -Dbuild.dir=${build.dir}"/> |
attila@963 | 523 | <!-- avoid too many typeinfo cache files. Each script is run only once anyway --> |
attila@963 | 524 | <jvmarg line="-Dnashorn.typeInfo.disabled=true"/> |
sundar@87 | 525 | <classpath> |
sundar@87 | 526 | <pathelement path="${run.test.classpath}"/> |
sundar@87 | 527 | </classpath> |
jlaskey@3 | 528 | <syspropertyset> |
jlaskey@3 | 529 | <propertyref prefix="test262-test-sys-prop."/> |
jlaskey@3 | 530 | <mapper type="glob" from="test262-test-sys-prop.*" to="*"/> |
jlaskey@3 | 531 | </syspropertyset> |
jlaskey@3 | 532 | </java> |
jlaskey@3 | 533 | </target> |
jlaskey@3 | 534 | |
attila@963 | 535 | <target name="testparallel" depends="test-parallel"/> |
attila@963 | 536 | |
attila@963 | 537 | <target name="test-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available"> |
attila@963 | 538 | <!-- use just build.test.classes.dir to avoid referring to TestNG --> |
attila@963 | 539 | <java classname="${parallel.test.runner}" dir="${basedir}" |
attila@963 | 540 | failonerror="true" |
attila@963 | 541 | fork="true"> |
attila@963 | 542 | <jvmarg line="${ext.class.path}"/> |
attila@963 | 543 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/> |
attila@963 | 544 | <classpath> |
attila@963 | 545 | <pathelement path="${run.test.classpath}"/> |
attila@963 | 546 | <pathelement path="${build.test.classes.dir}"/> |
attila@963 | 547 | </classpath> |
attila@963 | 548 | <syspropertyset> |
attila@963 | 549 | <propertyref prefix="test-sys-prop."/> |
attila@963 | 550 | <mapper type="glob" from="test-sys-prop.*" to="*"/> |
attila@963 | 551 | </syspropertyset> |
attila@963 | 552 | </java> |
attila@963 | 553 | </target> |
attila@963 | 554 | |
jlaskey@3 | 555 | <target name="all" depends="test, docs" |
jlaskey@3 | 556 | description="Build, test and generate docs for nashorn"/> |
jlaskey@3 | 557 | |
jlaskey@3 | 558 | <target name="run" depends="jar" |
jlaskey@3 | 559 | description="Run the shell with a sample script"> |
jlaskey@3 | 560 | <java classname="${nashorn.shell.tool}" fork="true" dir="samples"> |
jlaskey@3 | 561 | <jvmarg line="${ext.class.path}"/> |
hannesw@562 | 562 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/> |
jlaskey@3 | 563 | <arg value="-dump-on-error"/> |
jlaskey@3 | 564 | <arg value="test.js"/> |
jlaskey@3 | 565 | </java> |
jlaskey@3 | 566 | </target> |
jlaskey@3 | 567 | |
jlaskey@3 | 568 | <target name="debug" depends="jar" |
jlaskey@3 | 569 | description="Debug the shell with a sample script"> |
jlaskey@3 | 570 | <java classname="${nashorn.shell.tool}" fork="true" dir="samples"> |
jlaskey@3 | 571 | <jvmarg line="${ext.class.path}"/> |
hannesw@562 | 572 | <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/> |
jlaskey@3 | 573 | <arg value="--print-code"/> |
jlaskey@3 | 574 | <arg value="--verify-code"/> |
jlaskey@3 | 575 | <arg value="--print-symbols"/> |
jlaskey@3 | 576 | <jvmarg value="-Dnashorn.codegen.debug=true"/> |
jlaskey@3 | 577 | <arg value="test.js"/> |
jlaskey@3 | 578 | </java> |
jlaskey@3 | 579 | </target> |
sundar@19 | 580 | |
sundar@19 | 581 | <!-- targets to get external script tests --> |
sundar@19 | 582 | |
sundar@19 | 583 | <!-- test262 test suite --> |
sundar@19 | 584 | <target name="get-test262" depends="init" unless="${test-sys-prop.external.test262}"> |
sundar@775 | 585 | <!-- clone test262 git repo --> |
sundar@775 | 586 | <exec executable="${git.executable}"> |
sundar@19 | 587 | <arg value="clone"/> |
attila@963 | 588 | <arg value="--branch"/> |
attila@963 | 589 | <arg value="es5-tests"/> |
sundar@775 | 590 | <arg value="https://github.com/tc39/test262"/> |
sundar@19 | 591 | <arg value="${test.external.dir}/test262"/> |
sundar@19 | 592 | </exec> |
sundar@19 | 593 | </target> |
sundar@19 | 594 | <target name="update-test262" depends="init" if="${test-sys-prop.external.test262}"> |
sundar@775 | 595 | <!-- update test262 git repo --> |
sundar@775 | 596 | <exec executable="${git.executable}" dir="${test.external.dir}/test262"> |
sundar@19 | 597 | <arg value="pull"/> |
sundar@19 | 598 | </exec> |
sundar@19 | 599 | </target> |
sundar@19 | 600 | |
sundar@19 | 601 | <!-- octane benchmark --> |
sundar@19 | 602 | <target name="get-octane" depends="init" unless="${test-sys-prop.external.octane}"> |
sundar@19 | 603 | <!-- checkout octane benchmarks --> |
sundar@19 | 604 | <exec executable="${svn.executable}"> |
sundar@19 | 605 | <arg value="--non-interactive"/> |
sundar@19 | 606 | <arg value="--trust-server-cert"/> |
sundar@19 | 607 | <arg value="checkout"/> |
sundar@19 | 608 | <arg value="http://octane-benchmark.googlecode.com/svn/trunk/"/> |
sundar@19 | 609 | <arg value="${test.external.dir}/octane"/> |
sundar@19 | 610 | </exec> |
sundar@19 | 611 | </target> |
sundar@19 | 612 | <target name="update-octane" depends="init" if="${test-sys-prop.external.octane}"> |
sundar@19 | 613 | <!-- update octane benchmarks --> |
sundar@19 | 614 | <exec executable="${svn.executable}" dir="${test.external.dir}/octane"> |
sundar@19 | 615 | <arg value="--non-interactive"/> |
sundar@19 | 616 | <arg value="--trust-server-cert"/> |
sundar@19 | 617 | <arg value="update"/> |
sundar@19 | 618 | </exec> |
sundar@19 | 619 | </target> |
sundar@19 | 620 | |
sundar@19 | 621 | <!-- sunspider benchmark --> |
sundar@19 | 622 | <target name="get-sunspider" depends="init" unless="${test-sys-prop.external.sunspider}"> |
sundar@19 | 623 | <!-- checkout sunspider --> |
sundar@19 | 624 | <exec executable="${svn.executable}"> |
sundar@19 | 625 | <arg value="--non-interactive"/> |
sundar@19 | 626 | <arg value="--trust-server-cert"/> |
sundar@19 | 627 | <arg value="checkout"/> |
sundar@19 | 628 | <arg value="http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/SunSpider"/> |
sundar@19 | 629 | <arg value="${test.external.dir}/sunspider"/> |
sundar@19 | 630 | </exec> |
sundar@19 | 631 | </target> |
sundar@19 | 632 | <target name="update-sunspider" depends="init" if="${test-sys-prop.external.sunspider}"> |
sundar@19 | 633 | <!-- update sunspider --> |
sundar@19 | 634 | <exec executable="${svn.executable}" dir="${test.external.dir}/sunspider"> |
sundar@19 | 635 | <arg value="--non-interactive"/> |
sundar@19 | 636 | <arg value="--trust-server-cert"/> |
sundar@19 | 637 | <arg value="update"/> |
sundar@19 | 638 | </exec> |
sundar@19 | 639 | </target> |
sundar@19 | 640 | |
sundar@19 | 641 | <!-- get all external test scripts --> |
sundar@26 | 642 | <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider"> |
sundar@19 | 643 | <!-- make external test dir --> |
jlaskey@392 | 644 | <mkdir dir="${test.external.dir}"/> |
sundar@19 | 645 | |
sundar@19 | 646 | <!-- jquery --> |
jlaskey@392 | 647 | <mkdir dir="${test.external.dir}/jquery"/> |
sundar@19 | 648 | <get src="http://code.jquery.com/jquery-1.7.2.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 649 | <get src="http://code.jquery.com/jquery-1.7.2.min.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 650 | |
sundar@19 | 651 | <!-- prototype --> |
jlaskey@392 | 652 | <mkdir dir="${test.external.dir}/prototype"/> |
sundar@19 | 653 | <get src="http://ajax.googleapis.com/ajax/libs/prototype/1.7.0/prototype.js" dest="${test.external.dir}/prototype" usetimestamp="true" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 654 | |
sundar@19 | 655 | <!-- underscorejs --> |
jlaskey@392 | 656 | <mkdir dir="${test.external.dir}/underscore"/> |
sundar@19 | 657 | <get src="http://underscorejs.org/underscore.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 658 | <get src="http://underscorejs.org/underscore-min.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 659 | |
sundar@19 | 660 | <!-- yui --> |
jlaskey@392 | 661 | <mkdir dir="${test.external.dir}/yui"/> |
sundar@19 | 662 | <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 663 | <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/> |
sundar@19 | 664 | |
attila@963 | 665 | <!-- showdown --> |
attila@963 | 666 | <mkdir dir="${test.external.dir}/showdown"/> |
attila@963 | 667 | <get src="https://raw.github.com/coreyti/showdown/master/src/showdown.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/> |
attila@963 | 668 | <get src="https://raw.github.com/coreyti/showdown/master/src/extensions/table.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/> |
attila@963 | 669 | |
sundar@19 | 670 | </target> |
sundar@19 | 671 | |
sundar@19 | 672 | <!-- update external test suites that are pulled from source control systems --> |
sundar@26 | 673 | <target name="update-externals" depends="init, check-external-tests, update-test262, update-octane, update-sunspider"/> |
sundar@26 | 674 | |
sundar@26 | 675 | <!-- run all perf tests --> |
sundar@26 | 676 | <target name="perf" depends="externals, update-externals, sunspider, octane"/> |
sundar@26 | 677 | |
sundar@26 | 678 | <!-- run all tests --> |
sundar@26 | 679 | <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}"> |
sundar@26 | 680 | <fail message="Exiting.."/> |
sundar@26 | 681 | </target> |
sundar@26 | 682 | |
sundar@26 | 683 | <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/> |
sundar@19 | 684 | |
attila@963 | 685 | <import file="build-benchmark.xml"/> |
attila@963 | 686 | |
jlaskey@3 | 687 | </project> |