build.xml revision 691:a26f4de458d4
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
4 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
6 This code is free software; you can redistribute it and/or modify it
7 under the terms of the GNU General Public License version 2 only, as
8 published by the Free Software Foundation.
9
10 This code is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13 version 2 for more details (a copy is included in the LICENSE file that
14 accompanied this code).
15
16 You should have received a copy of the GNU General Public License version
17 2 along with this work; if not, write to the Free Software Foundation,
18 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
20 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21 or visit www.oracle.com if you need additional information or have any
22 questions.
23-->
24<project name="nashorn" default="test" basedir="..">
25  <import file="build-nasgen.xml"/>
26  <import file="build-benchmark.xml"/>
27  <import file="code_coverage.xml"/>
28
29
30  <target name="init-conditions">
31    <!-- loading locally defined resources and properties. NB they owerwrite default ones defined later -->
32    <property file="${user.home}/.nashorn.project.local.properties"/>
33
34    <loadproperties srcFile="make/project.properties"/>
35    <path id="nashorn.ext.path">
36      <pathelement location="${dist.dir}"/>
37    </path>
38    <property name="ext.class.path" value="-Djava.ext.dirs=&quot;${toString:nashorn.ext.path}&quot;"/>
39    <condition property="svn.executable" value="/usr/local/bin/svn" else="svn">
40      <available file="/usr/local/bin/svn"/>
41    </condition>
42    <condition property="hg.executable" value="/usr/local/bin/hg" else="hg">
43      <available file="/usr/local/bin/hg"/>
44    </condition>
45    <!-- check if JDK already has ASM classes -->
46    <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
47    <!-- check if testng.jar is avaiable -->
48    <available property="testng.available" file="${file.reference.testng.jar}"/>
49
50    <!-- enable/disable make code coverage -->
51    <condition property="cc.enabled">
52        <istrue value="${make.code.coverage}" />
53    </condition>
54
55    <!-- exclude tests in exclude lists -->
56    <condition property="exclude.list" value="./exclude/exclude_list_cc.txt" else="./exclude/exclude_list.txt">
57      <istrue value="${make.code.coverage}" />
58    </condition>
59
60    <condition property="jfr.options" value="${run.test.jvmargs.jfr}" else="">
61      <istrue value="${jfr}"/>
62    </condition>
63  </target>
64
65  <target name="init" depends="init-conditions, init-cc">
66    <!-- extends jvm args -->
67    <property name="run.test.jvmargs" value="${run.test.jvmargs.main} ${run.test.cc.jvmargs} ${jfr.options}"/>
68    <property name="run.test.jvmargs.octane" value="${run.test.jvmargs.octane.main} ${run.test.cc.jvmargs} ${jfr.options}"/>
69
70    <echo message="run.test.jvmargs=${run.test.jvmargs}"/>
71    <echo message="run.test.jvmargs.octane=${run.test.jvmargs.octane}"/>
72    <echo message="run.test.xms=${run.test.xms}"/>
73    <echo message="run.test.xmx=${run.test.xmx}"/>
74
75  </target>
76
77  <target name="prepare" depends="init">
78    <mkdir dir="${build.dir}"/>
79    <mkdir dir="${build.classes.dir}"/>
80    <mkdir dir="${build.classes.dir}/META-INF/services"/>
81    <mkdir dir="${build.test.classes.dir}"/>
82    <mkdir dir="${dist.dir}"/>
83    <mkdir dir="${dist.javadoc.dir}"/>
84  </target>
85
86  <target name="clean" depends="init, clean-nasgen, init-cc-cleanup">
87    <delete includeemptydirs="true">
88      <fileset dir="${build.dir}" erroronmissingdir="false"/>
89    </delete>
90    <delete dir="${dist.dir}"/>
91  </target>
92
93  <!-- do it only if ASM is not available -->
94  <target name="compile-asm" depends="prepare" unless="asm.available">
95    <javac srcdir="${jdk.asm.src.dir}"
96           destdir="${build.classes.dir}"
97           excludes="**/optimizer/* **/xml/* **/attrs/*"
98           source="${javac.source}"
99           target="${javac.target}"
100           debug="${javac.debug}"
101           encoding="${javac.encoding}"
102           includeantruntime="false"/>
103  </target>
104
105  <target name="compile" depends="compile-asm" description="Compiles nashorn">
106    <javac srcdir="${src.dir}"
107           destdir="${build.classes.dir}"
108           classpath="${javac.classpath}"
109           source="${javac.source}"
110           target="${javac.target}"
111           debug="${javac.debug}"
112           encoding="${javac.encoding}"
113           includeantruntime="false" fork="true">
114      <compilerarg value="-J-Djava.ext.dirs="/>
115      <compilerarg value="-Xlint:unchecked"/>
116      <compilerarg value="-Xlint:deprecation"/>
117      <compilerarg value="-XDignore.symbol.file"/>
118    </javac>
119    <copy todir="${build.classes.dir}/META-INF/services">
120       <fileset dir="${meta.inf.dir}/services/"/>
121    </copy>
122     <copy todir="${build.classes.dir}/jdk/nashorn/api/scripting/resources">
123       <fileset dir="${src.dir}/jdk/nashorn/api/scripting/resources/"/>
124    </copy>
125    <copy todir="${build.classes.dir}/jdk/nashorn/internal/runtime/resources">
126       <fileset dir="${src.dir}/jdk/nashorn/internal/runtime/resources/"/>
127    </copy>
128    <copy todir="${build.classes.dir}/jdk/nashorn/tools/resources">
129       <fileset dir="${src.dir}/jdk/nashorn/tools/resources/"/>
130    </copy>
131    <copy file="${src.dir}/jdk/internal/dynalink/support/messages.properties" todir="${build.classes.dir}/jdk/internal/dynalink/support"/>
132
133    <echo message="full=${nashorn.fullversion}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties"/>
134    <echo file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true">${line.separator}</echo>
135    <echo message="release=${nashorn.version}" file="${build.classes.dir}/jdk/nashorn/internal/runtime/resources/version.properties" append="true"/>
136  </target>
137
138  <target name="jar" depends="compile, run-nasgen, generate-cc-template" description="Creates nashorn.jar" unless="compile.suppress.jar">
139    <jar jarfile="${dist.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
140      <fileset dir="${build.classes.dir}"/>
141      <manifest>
142        <attribute name="Archiver-Version" value="n/a"/>
143        <attribute name="Build-Jdk" value="${java.runtime.version}"/>
144        <attribute name="Built-By" value="n/a"/>
145        <attribute name="Created-By" value="Ant jar task"/>
146        <section name="jdk/nashorn/">
147          <attribute name="Implementation-Title" value="${nashorn.product.name}"/>
148          <attribute name="Implementation-Version" value="${nashorn.version}"/>
149        </section>
150      </manifest>
151    </jar>
152  </target>
153
154  <target name="use-promoted-nashorn" depends="init">
155    <delete file="${dist.dir}/nashorn.jar"/>
156    <copy file="${java.home}/lib/ext/nashorn.jar" todir="${dist.dir}"/>
157    <property name="compile.suppress.jar" value="defined"/>
158  </target>
159
160  <target name="build-fxshell" depends="jar">
161    <description>Builds the javafx shell.</description>
162    <mkdir dir="${fxshell.classes.dir}"/>
163    <javac srcdir="${fxshell.dir}"
164           destdir="${fxshell.classes.dir}"
165           classpath="${dist.jar}:${javac.classpath}"
166           debug="${javac.debug}"
167           encoding="${javac.encoding}"
168           includeantruntime="false">
169    </javac>
170    <jar jarfile="${fxshell.jar}" manifest="${meta.inf.dir}/MANIFEST.MF" index="true" filesetmanifest="merge">
171      <fileset dir="${fxshell.classes.dir}"/>
172      <manifest>
173        <attribute name="Archiver-Version" value="n/a"/>
174        <attribute name="Build-Jdk" value="${java.runtime.version}"/>
175        <attribute name="Built-By" value="n/a"/>
176        <attribute name="Created-By" value="Ant jar task"/>
177        <section name="jdk/nashorn/">
178          <attribute name="Implementation-Title" value="Oracle Nashorn FXShell"/>
179          <attribute name="Implementation-Version" value="${nashorn.version}"/>
180        </section>
181      </manifest>
182    </jar>
183  </target>
184
185  <target name="javadoc" depends="prepare">
186    <javadoc destdir="${dist.javadoc.dir}" use="yes" overview="src/overview.html" windowtitle="${nashorn.product.name} ${nashorn.version}" additionalparam="-quiet" failonerror="true">
187      <classpath>
188        <pathelement location="${build.classes.dir}"/>
189      </classpath>
190      <fileset dir="${src.dir}" includes="**/*.java"/>
191      <fileset dir="${jdk.asm.src.dir}" includes="**/*.java"/>
192      <link href="http://docs.oracle.com/javase/7/docs/api/"/>
193      <!-- The following tags are used only in ASM sources - just ignore these -->
194      <tag name="label" description="label tag in ASM sources" enabled="false"/>
195      <tag name="linked" description="linked tag in ASM sources" enabled="false"/>
196      <tag name="associates" description="associates tag in ASM sources" enabled="false"/>
197    </javadoc>
198  </target>
199
200  <!-- generate shell.html for shell tool documentation -->
201  <target name="shelldoc" depends="jar">
202    <java classname="${nashorn.shell.tool}" dir="${basedir}" output="${dist.dir}/shell.html" failonerror="true" fork="true">
203      <jvmarg line="${ext.class.path}"/>
204      <arg value="-scripting"/>
205      <arg value="docs/genshelldoc.js"/>
206    </java>
207  </target>
208
209  <!-- generate all docs -->
210  <target name="docs" depends="javadoc, shelldoc"/>
211
212  <!-- create .zip and .tar.gz for nashorn binaries and scripts. -->
213  <target name="dist" depends="jar">
214      <zip destfile="${build.zip}" basedir=".."
215          excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
216      <tar destfile="${build.gzip}" basedir=".." compression="gzip"
217          excludes="nashorn/bin/*.sh" includes="nashorn/bin/** nashorn/dist/**"/>
218  </target>
219
220  <target name="compile-test" depends="compile, run-nasgen" if="testng.available">
221    <!-- testng task -->
222    <taskdef name="testng" classname="org.testng.TestNGAntTask"
223        classpath="${file.reference.testng.jar}"/>
224
225    <javac srcdir="${test.src.dir}"
226           destdir="${build.test.classes.dir}"
227           classpath="${javac.test.classpath}"
228           source="${javac.source}"
229           target="${javac.target}"
230           debug="${javac.debug}"
231           encoding="${javac.encoding}"
232           includeantruntime="false" fork="true">
233        <compilerarg value="-J-Djava.ext.dirs="/>
234        <compilerarg value="-Xlint:unchecked"/>
235        <compilerarg value="-Xlint:deprecation"/>
236    </javac>
237
238    <copy todir="${build.test.classes.dir}/META-INF/services">
239       <fileset dir="${test.src.dir}/META-INF/services/"/>
240    </copy>
241
242    <copy todir="${build.test.classes.dir}/jdk/nashorn/internal/runtime/resources">
243       <fileset dir="${test.src.dir}/jdk/nashorn/internal/runtime/resources"/>
244    </copy>
245
246    <!-- tests that check nashorn internals and internal API -->
247    <jar jarfile="${nashorn.internal.tests.jar}">
248      <fileset dir="${build.test.classes.dir}" excludes="**/api/**"/>
249    </jar>
250
251    <!-- tests that check nashorn script engine (jsr-223) API -->
252    <jar jarfile="${nashorn.api.tests.jar}">
253      <fileset dir="${build.test.classes.dir}" includes="**/api/**"/>
254      <fileset dir="${build.test.classes.dir}" includes="**/META-INF/**"/>
255      <fileset dir="${build.test.classes.dir}" includes="**/resources/*.js"/>
256    </jar>
257
258  </target>
259
260  <target name="generate-policy-file" depends="prepare">
261    <echo file="${build.dir}/nashorn.policy">
262
263grant codeBase "file:/${basedir}/${nashorn.internal.tests.jar}" {
264    permission java.security.AllPermission;
265};
266
267grant codeBase "file:/${basedir}/${file.reference.testng.jar}" {
268    permission java.security.AllPermission;
269};
270
271grant codeBase "file:/${basedir}/test/script/trusted/*" {
272    permission java.security.AllPermission;
273};
274
275grant codeBase "file:/${basedir}/test/script/basic/*" {
276    permission java.io.FilePermission "${basedir}/test/script/-", "read";
277    permission java.io.FilePermission "$${user.dir}", "read";
278    permission java.util.PropertyPermission "user.dir", "read";
279    permission java.util.PropertyPermission "nashorn.test.*", "read";
280};
281
282grant codeBase "file:/${basedir}/test/script/basic/parser/*" {
283    permission java.io.FilePermission "${basedir}/test/script/-", "read";
284    permission java.io.FilePermission "$${user.dir}", "read";
285    permission java.util.PropertyPermission "user.dir", "read";
286    permission java.util.PropertyPermission "nashorn.test.*", "read";
287};
288
289grant codeBase "file:/${basedir}/test/script/basic/JDK-8010946-privileged.js" {
290    permission java.util.PropertyPermission "java.security.policy", "read";
291};
292
293grant codeBase "file:/${basedir}/test/script/basic/classloader.js" {
294    permission java.lang.RuntimePermission "nashorn.JavaReflection";
295};
296
297    </echo>
298
299    <replace file="${build.dir}/nashorn.policy"><replacetoken>\</replacetoken><replacevalue>/</replacevalue></replace>    <!--hack for Windows - to make URLs with normal path separators -->
300    <replace file="${build.dir}/nashorn.policy"><replacetoken>//</replacetoken><replacevalue>/</replacevalue></replace>   <!--hack for Unix - to avoid leading // in URLs -->
301
302  </target>
303
304  <target name="check-external-tests">
305      <available file="${test.external.dir}/prototype" property="test-sys-prop.external.prototype"/>
306      <available file="${test.external.dir}/sunspider" property="test-sys-prop.external.sunspider"/>
307      <available file="${test.external.dir}/underscore" property="test-sys-prop.external.underscore"/>
308      <available file="${test.external.dir}/octane" property="test-sys-prop.external.octane"/>
309      <available file="${test.external.dir}/yui" property="test-sys-prop.external.yui"/>
310      <available file="${test.external.dir}/jquery" property="test-sys-prop.external.jquery"/>
311      <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/>
312  </target>
313
314  <target name="check-testng" unless="testng.available">
315    <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under test/lib directory."/>
316  </target>
317
318  <target name="test" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
319    <fileset id="test.classes" dir="${build.test.classes.dir}">
320      <include name="**/api/javaaccess/*Test.class"/>
321      <include name="**/api/scripting/*Test.class"/>
322      <include name="**/codegen/*Test.class"/>
323      <include name="**/parser/*Test.class"/>
324      <include name="**/runtime/*Test.class"/>
325      <include name="**/runtime/regexp/*Test.class"/>
326      <include name="**/runtime/regexp/joni/*Test.class"/>
327      <include name="**/framework/*Test.class"/>
328    </fileset>
329
330    <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
331       verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
332      <jvmarg line="${ext.class.path}"/>
333      <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
334      <propertyset>
335        <propertyref prefix="nashorn."/>
336      </propertyset>
337      <propertyset>
338        <propertyref prefix="test-sys-prop."/>
339        <mapper from="test-sys-prop.*" to="*" type="glob"/>
340      </propertyset>
341      <sysproperty key="test.js.excludes.file" value="${exclude.list}"/>
342      <classpath>
343          <pathelement path="${run.test.classpath}"/>
344      </classpath>
345    </testng>
346  </target>
347
348  <target name="test-basicparallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file">
349      <!-- use just build.test.classes.dir to avoid referring to TestNG -->
350      <java classname="${parallel.test.runner}" dir="${basedir}" classpath="${build.test.classes.dir}" failonerror="true" fork="true">
351      <jvmarg line="${ext.class.path}"/>
352      <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
353      <syspropertyset>
354          <propertyref prefix="test-sys-prop."/>
355          <mapper type="glob" from="test-sys-prop.*" to="*"/>
356      </syspropertyset>
357      </java>
358  </target>
359
360  <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
361    <fileset id="test.classes" dir="${build.test.classes.dir}">
362       <include name="**/framework/*Test.class"/>
363    </fileset>
364
365    <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
366       verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
367      <jvmarg line="${ext.class.path}"/>
368      <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
369      <propertyset>
370        <propertyref prefix="nashorn."/>
371      </propertyset>
372      <propertyset>
373        <propertyref prefix="test262-test-sys-prop."/>
374        <mapper from="test262-test-sys-prop.*" to="*" type="glob"/>
375      </propertyset>
376      <classpath>
377          <pathelement path="${run.test.classpath}"/>
378      </classpath>
379    </testng>
380  </target>
381
382  <target name="test262parallel" depends="test262-parallel"/>
383
384  <target name="test262-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
385    <!-- use just build.test.classes.dir to avoid referring to TestNG -->
386    <java classname="${parallel.test.runner}" dir="${basedir}" fork="true">
387      <jvmarg line="${ext.class.path}"/>
388      <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
389      <classpath>
390          <pathelement path="${run.test.classpath}"/>
391      </classpath>
392      <syspropertyset>
393          <propertyref prefix="test262-test-sys-prop."/>
394          <mapper type="glob" from="test262-test-sys-prop.*" to="*"/>
395      </syspropertyset>
396    </java>
397  </target>
398
399  <target name="all" depends="test, docs"
400      description="Build, test and generate docs for nashorn"/>
401
402  <target name="run" depends="jar"
403      description="Run the shell with a sample script">
404    <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
405        <jvmarg line="${ext.class.path}"/>
406        <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
407        <arg value="-dump-on-error"/>
408        <arg value="test.js"/>
409    </java>
410  </target>
411
412  <target name="debug" depends="jar"
413      description="Debug the shell with a sample script">
414    <java classname="${nashorn.shell.tool}" fork="true" dir="samples">
415        <jvmarg line="${ext.class.path}"/>
416        <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
417        <arg value="--print-code"/>
418        <arg value="--verify-code"/>
419        <arg value="--print-symbols"/>
420        <jvmarg value="-Dnashorn.codegen.debug=true"/>
421        <arg value="test.js"/>
422    </java>
423  </target>
424
425  <!-- targets to get external script tests -->
426
427  <!-- test262 test suite -->
428  <target name="get-test262" depends="init" unless="${test-sys-prop.external.test262}">
429    <!-- clone test262 mercurial repo -->
430    <exec executable="${hg.executable}">
431       <arg value="clone"/>
432       <arg value="http://hg.ecmascript.org/tests/test262"/>
433       <arg value="${test.external.dir}/test262"/>
434    </exec>
435  </target>
436  <target name="update-test262" depends="init" if="${test-sys-prop.external.test262}">
437    <!-- update test262 mercurial repo -->
438    <exec executable="${hg.executable}" dir="${test.external.dir}/test262">
439       <arg value="pull"/>
440       <arg value="-u"/>
441    </exec>
442  </target>
443
444  <!-- octane benchmark -->
445  <target name="get-octane" depends="init" unless="${test-sys-prop.external.octane}">
446    <!-- checkout octane benchmarks -->
447    <exec executable="${svn.executable}">
448       <arg value="--non-interactive"/>
449       <arg value="--trust-server-cert"/>
450       <arg value="checkout"/>
451       <arg value="http://octane-benchmark.googlecode.com/svn/trunk/"/>
452       <arg value="${test.external.dir}/octane"/>
453    </exec>
454  </target>
455  <target name="update-octane" depends="init" if="${test-sys-prop.external.octane}">
456    <!-- update octane benchmarks -->
457    <exec executable="${svn.executable}" dir="${test.external.dir}/octane">
458       <arg value="--non-interactive"/>
459       <arg value="--trust-server-cert"/>
460       <arg value="update"/>
461    </exec>
462  </target>
463
464  <!-- sunspider benchmark -->
465  <target name="get-sunspider" depends="init" unless="${test-sys-prop.external.sunspider}">
466    <!-- checkout sunspider -->
467    <exec executable="${svn.executable}">
468       <arg value="--non-interactive"/>
469       <arg value="--trust-server-cert"/>
470       <arg value="checkout"/>
471       <arg value="http://svn.webkit.org/repository/webkit/trunk/PerformanceTests/SunSpider"/>
472       <arg value="${test.external.dir}/sunspider"/>
473    </exec>
474  </target>
475  <target name="update-sunspider" depends="init" if="${test-sys-prop.external.sunspider}">
476    <!-- update sunspider -->
477    <exec executable="${svn.executable}" dir="${test.external.dir}/sunspider">
478       <arg value="--non-interactive"/>
479       <arg value="--trust-server-cert"/>
480       <arg value="update"/>
481    </exec>
482  </target>
483
484  <!-- get all external test scripts -->
485  <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider">
486    <!-- make external test dir -->
487    <mkdir dir="${test.external.dir}"/>
488
489    <!-- jquery -->
490    <mkdir dir="${test.external.dir}/jquery"/>
491    <get src="http://code.jquery.com/jquery-1.7.2.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
492    <get src="http://code.jquery.com/jquery-1.7.2.min.js" dest="${test.external.dir}/jquery" skipexisting="true" ignoreerrors="true"/>
493
494    <!-- prototype -->
495    <mkdir dir="${test.external.dir}/prototype"/>
496    <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"/>
497
498    <!-- underscorejs -->
499    <mkdir dir="${test.external.dir}/underscore"/>
500    <get src="http://underscorejs.org/underscore.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
501    <get src="http://underscorejs.org/underscore-min.js" dest="${test.external.dir}/underscore" skipexisting="true" ignoreerrors="true"/>
502
503    <!-- yui -->
504    <mkdir dir="${test.external.dir}/yui"/>
505    <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
506    <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
507
508  </target>
509
510  <!-- update external test suites that are pulled from source control systems -->
511  <target name="update-externals" depends="init, check-external-tests, update-test262, update-octane, update-sunspider"/>
512
513  <!-- run all perf tests -->
514  <target name="perf" depends="externals, update-externals, sunspider, octane"/>
515
516  <!-- run all tests -->
517  <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}">
518     <fail message="Exiting.."/>
519  </target>
520
521  <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/>
522
523</project>
524