1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 |
2 |
3 <!-- |
3 <!-- |
4 Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
4 Copyright (c) 2010, 2015, Oracle and/or its affiliates. All rights reserved. |
5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
6 |
6 |
7 This code is free software; you can redistribute it and/or modify it |
7 This code is free software; you can redistribute it and/or modify it |
8 under the terms of the GNU General Public License version 2 only, as |
8 under the terms of the GNU General Public License version 2 only, as |
9 published by the Free Software Foundation. |
9 published by the Free Software Foundation. |
386 <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/> |
386 <available file="${test.external.dir}/test262" property="test-sys-prop.external.test262"/> |
387 <available file="${test.external.dir}/showdown" property="test-sys-prop.external.markdown"/> |
387 <available file="${test.external.dir}/showdown" property="test-sys-prop.external.markdown"/> |
388 </target> |
388 </target> |
389 |
389 |
390 <target name="check-testng" unless="testng.available"> |
390 <target name="check-testng" unless="testng.available"> |
391 <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under test/lib directory."/> |
391 <echo message="WARNING: TestNG not available, will not run tests. Please copy testng.jar under ${test.lib} directory."/> |
392 </target> |
392 </target> |
393 |
393 |
394 <!-- only to be invoked as dependency of "test" target --> |
394 <!-- only to be invoked as dependency of "test" target --> |
395 <target name="-test-classes-all" depends="jar" unless="test.class"> |
395 <target name="-test-classes-all" depends="jar" unless="test.class"> |
396 <fileset id="test.classes" dir="${build.test.classes.dir}"> |
396 <fileset id="test.classes" dir="${build.test.classes.dir}"> |
683 <arg value="update"/> |
683 <arg value="update"/> |
684 </exec> |
684 </exec> |
685 </target> |
685 </target> |
686 |
686 |
687 <!-- get all external test scripts --> |
687 <!-- get all external test scripts --> |
688 <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider"> |
688 <target name="externals" depends="init, check-external-tests, get-test262, get-octane, get-sunspider, get-testng"> |
689 <!-- make external test dir --> |
689 <!-- make external test dir --> |
690 <mkdir dir="${test.external.dir}"/> |
690 <mkdir dir="${test.external.dir}"/> |
691 |
691 |
692 <!-- jquery --> |
692 <!-- jquery --> |
693 <mkdir dir="${test.external.dir}/jquery"/> |
693 <mkdir dir="${test.external.dir}/jquery"/> |
724 <!-- run all tests --> |
724 <!-- run all tests --> |
725 <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}"> |
725 <target name="exit-if-no-testng" depends="init, check-testng" unless="${testng.available}"> |
726 <fail message="Exiting.."/> |
726 <fail message="Exiting.."/> |
727 </target> |
727 </target> |
728 |
728 |
|
729 <!-- download and install testng.jar --> |
|
730 <target name="get-testng" unless="testng.available"> |
|
731 <get src="http://testng.org/testng-6.8.zip" dest="${test.lib}" skipexisting="true" ignoreerrors="true"/> |
|
732 <unzip src="${test.lib}${file.separator}testng-6.8.zip" dest="${test.lib}"> |
|
733 <patternset> |
|
734 <include name="testng-6.8/testng-6.8.jar"/> |
|
735 </patternset> |
|
736 </unzip> |
|
737 <move file="${test.lib}${file.separator}testng-6.8${file.separator}testng-6.8.jar" tofile="${test.lib}${file.separator}testng.jar"/> |
|
738 <delete dir="${test.lib}${file.separator}testng-6.8"/> |
|
739 </target> |
|
740 |
729 <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/> |
741 <target name="alltests" depends="exit-if-no-testng, externals, update-externals, test, test262parallel, perf"/> |
730 |
742 |
731 <import file="build-benchmark.xml"/> |
743 <import file="build-benchmark.xml"/> |
732 |
744 |
733 </project> |
745 </project> |