nashorn/make/build.xml
changeset 24768 ae21f28f0ddc
parent 24767 0b8af588070b
child 24769 de4dcfa9380f
equal deleted inserted replaced
24767:0b8af588070b 24768:ae21f28f0ddc
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
       
     2 
     2 <!--
     3 <!--
     3  Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
     4  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  DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     5 
     6 
     6  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
    19 
    20 
    20  Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    21  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  or visit www.oracle.com if you need additional information or have any
    22  questions.
    23  questions.
    23 -->
    24 -->
       
    25 
    24 <project name="nashorn" default="test" basedir="..">
    26 <project name="nashorn" default="test" basedir="..">
    25   <import file="build-nasgen.xml"/>
    27   <import file="build-nasgen.xml"/>
    26   <import file="code_coverage.xml"/>
    28   <import file="code_coverage.xml"/>
    27 
    29 
    28   <target name="init-conditions">
    30   <target name="init-conditions">
    44     <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
    46     <available property="asm.available" classname="jdk.internal.org.objectweb.asm.Type"/>
    45     <!-- check if testng.jar is avaiable -->
    47     <!-- check if testng.jar is avaiable -->
    46     <available property="testng.available" file="${file.reference.testng.jar}"/>
    48     <available property="testng.available" file="${file.reference.testng.jar}"/>
    47     <!-- check if Jemmy ang testng.jar are avaiable -->
    49     <!-- check if Jemmy ang testng.jar are avaiable -->
    48     <condition property="jemmy.jfx.testng.available" value="true">
    50     <condition property="jemmy.jfx.testng.available" value="true">
    49       <and> 
    51       <and>
    50         <available file="${file.reference.jemmyfx.jar}"/>
    52         <available file="${file.reference.jemmyfx.jar}"/>
    51         <available file="${file.reference.jemmycore.jar}"/>
    53         <available file="${file.reference.jemmycore.jar}"/>
    52         <available file="${file.reference.jemmyawtinput.jar}"/>
    54         <available file="${file.reference.jemmyawtinput.jar}"/>
    53         <available file="${file.reference.jfxrt.jar}"/>
    55         <available file="${file.reference.jfxrt.jar}"/>
    54         <isset property="testng.available"/>
    56         <isset property="testng.available"/>
   379 
   381 
   380   <target name="testjfx" depends="jar, check-jemmy.jfx.testng, compile-test" if="jemmy.jfx.testng.available">
   382   <target name="testjfx" depends="jar, check-jemmy.jfx.testng, compile-test" if="jemmy.jfx.testng.available">
   381     <fileset id="test.classes" dir="${build.test.classes.dir}">
   383     <fileset id="test.classes" dir="${build.test.classes.dir}">
   382        <include name="**/framework/*Test.class"/>
   384        <include name="**/framework/*Test.class"/>
   383     </fileset>
   385     </fileset>
   384     
   386 
   385     <copy file="${file.reference.jfxrt.jar}" todir="dist"/>
   387     <copy file="${file.reference.jfxrt.jar}" todir="dist"/>
   386     
   388 
   387     <condition property="jfx.prism.order" value="-Dprism.order=j2d" else=" ">
   389     <condition property="jfx.prism.order" value="-Dprism.order=j2d" else=" ">
   388 		<not>
   390         <not>
   389             <os family="mac"/>
   391             <os family="mac"/>
   390         </not>
   392         </not>
   391 	</condition>
   393     </condition>
   392     
   394 
   393     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   395     <testng outputdir="${build.test.results.dir}" classfilesetref="test.classes"
   394        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   396        verbose="${testng.verbose}" haltonfailure="true" useDefaultListeners="false" listeners="${testng.listeners}" workingDir="${basedir}">
   395       <jvmarg line="${ext.class.path}"/>
   397       <jvmarg line="${ext.class.path}"/>
   396       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
   398       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx}"/>
   397       <propertyset>
   399       <propertyset>
   402       <classpath>
   404       <classpath>
   403           <pathelement path="${testjfx.run.test.classpath}"/>
   405           <pathelement path="${testjfx.run.test.classpath}"/>
   404       </classpath>
   406       </classpath>
   405     </testng>
   407     </testng>
   406   </target>
   408   </target>
   407   
   409 
   408   <target name="testmarkdown" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   410   <target name="testmarkdown" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   409     <fileset id="test.classes" dir="${build.test.classes.dir}">
   411     <fileset id="test.classes" dir="${build.test.classes.dir}">
   410        <include name="**/framework/*Test.class"/>
   412        <include name="**/framework/*Test.class"/>
   411     </fileset>
   413     </fileset>
   412 
   414 
   421       <classpath>
   423       <classpath>
   422           <pathelement path="${run.test.classpath}"/>
   424           <pathelement path="${run.test.classpath}"/>
   423       </classpath>
   425       </classpath>
   424     </testng>
   426     </testng>
   425   </target>
   427   </target>
   426   
   428 
   427   <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   429   <target name="test262" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   428     <fileset id="test.classes" dir="${build.test.classes.dir}">
   430     <fileset id="test.classes" dir="${build.test.classes.dir}">
   429        <include name="**/framework/*Test.class"/>
   431        <include name="**/framework/*Test.class"/>
   430     </fileset>
   432     </fileset>
   431 
   433 
   461           <mapper type="glob" from="test262-test-sys-prop.*" to="*"/>
   463           <mapper type="glob" from="test262-test-sys-prop.*" to="*"/>
   462       </syspropertyset>
   464       </syspropertyset>
   463     </java>
   465     </java>
   464   </target>
   466   </target>
   465 
   467 
   466 <!--	    classpath="${build.test.classes.dir}"-->
       
   467 
       
   468   <target name="testparallel" depends="test-parallel"/>
   468   <target name="testparallel" depends="test-parallel"/>
   469 
   469 
   470   <target name="test-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   470   <target name="test-parallel" depends="jar, check-testng, check-external-tests, compile-test, generate-policy-file" if="testng.available">
   471       <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   471       <!-- use just build.test.classes.dir to avoid referring to TestNG -->
   472       <java classname="${parallel.test.runner}" dir="${basedir}"
   472       <java classname="${parallel.test.runner}" dir="${basedir}"
   473 	    failonerror="true" 
   473         failonerror="true"
   474 	    fork="true">
   474         fork="true">
   475       <jvmarg line="${ext.class.path}"/>
   475       <jvmarg line="${ext.class.path}"/>
   476       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
   476       <jvmarg line="${run.test.jvmargs} -Xmx${run.test.xmx} ${run.test.jvmsecurityargs}"/>
   477       <classpath>
   477       <classpath>
   478           <pathelement path="${run.test.classpath}"/>
   478           <pathelement path="${run.test.classpath}"/>
   479 	  <pathelement path="${build.test.classes.dir}"/>
   479       <pathelement path="${build.test.classes.dir}"/>
   480       </classpath>
   480       </classpath>
   481       <syspropertyset>
   481       <syspropertyset>
   482           <propertyref prefix="test-sys-prop."/>
   482           <propertyref prefix="test-sys-prop."/>
   483           <mapper type="glob" from="test-sys-prop.*" to="*"/>
   483           <mapper type="glob" from="test-sys-prop.*" to="*"/>
   484       </syspropertyset>
   484       </syspropertyset>
   591 
   591 
   592     <!-- yui -->
   592     <!-- yui -->
   593     <mkdir dir="${test.external.dir}/yui"/>
   593     <mkdir dir="${test.external.dir}/yui"/>
   594     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   594     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   595     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   595     <get src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js" dest="${test.external.dir}/yui" skipexisting="true" ignoreerrors="true"/>
   596     
   596 
   597     <!-- showdown -->
   597     <!-- showdown -->
   598     <mkdir dir="${test.external.dir}/showdown"/>
   598     <mkdir dir="${test.external.dir}/showdown"/>
   599     <get src="https://raw.github.com/coreyti/showdown/master/src/showdown.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/>
   599     <get src="https://raw.github.com/coreyti/showdown/master/src/showdown.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/>
   600     <get src="https://raw.github.com/coreyti/showdown/master/src/extensions/table.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/>
   600     <get src="https://raw.github.com/coreyti/showdown/master/src/extensions/table.js" dest="${test.external.dir}/showdown" skipexisting="true" ignoreerrors="true"/>
   601 
   601