You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by go...@apache.org on 2012/12/21 21:53:41 UTC

svn commit: r1425138 - /incubator/flex/falcon/trunk/compiler.tests/build.xml

Author: gordonsmith
Date: Fri Dec 21 20:53:40 2012
New Revision: 1425138

URL: http://svn.apache.org/viewvc?rev=1425138&view=rev
Log:
Falcon: 'ant tests' now runs all the JUnit functional tests (i.e., those in compiler.tests/functional-tests), in addition to the unit tests and the feature tests.

Modified:
    incubator/flex/falcon/trunk/compiler.tests/build.xml

Modified: incubator/flex/falcon/trunk/compiler.tests/build.xml
URL: http://svn.apache.org/viewvc/incubator/flex/falcon/trunk/compiler.tests/build.xml?rev=1425138&r1=1425137&r2=1425138&view=diff
==============================================================================
--- incubator/flex/falcon/trunk/compiler.tests/build.xml (original)
+++ incubator/flex/falcon/trunk/compiler.tests/build.xml Fri Dec 21 20:53:40 2012
@@ -106,6 +106,44 @@
         </junit>
     </target>
 	
+    <target name="compile.feature.tests">
+    	<delete dir="${compiler.tests}/classes"/>
+        <mkdir dir="${compiler.tests}/classes"/>
+        <javac debug="${javac.debug}" deprecation="${javac.deprecation}" destdir="${compiler.tests}/classes" includeAntRuntime="true">
+            <src path="${compiler.tests}/feature-tests"/>
+        	<src path="${compiler.tests}/src"/>
+            <compilerarg value="-Xlint:all,-path"/>
+            <classpath>
+                <fileset dir="${compiler}/lib" includes="**/*.jar"/>
+                <fileset dir="${compiler.tests}/lib" includes="**/*.jar"/>
+                <pathelement location="${falcon}/lib/compiler.jar"/>
+            </classpath>
+        </javac>
+    </target>
+
+    <target name="feature.tests" depends="download, compile.feature.tests">
+        <mkdir dir="${compiler.tests}/results"/>
+        <mkdir dir="${compiler.tests}/temp"/>
+        <junit dir="${compiler.tests}"
+               fork="yes" forkMode="perBatch" maxmemory="256m" timeout="300000"
+               printsummary="true" showoutput="true"
+               haltonerror="false" haltonfailure="false"
+               failureproperty="tests.unit.failed">
+            <classpath>
+                <pathelement location="${compiler.tests}/classes"/>
+                <fileset dir="${compiler}/lib" includes="**/*.jar"/>
+                <fileset dir="${compiler.tests}/lib" includes="**/*.jar"/>
+                <pathelement location="${falcon}/lib/compiler.jar"/>
+            </classpath>
+            <batchtest todir="${compiler.tests}/results">
+                <fileset dir="${compiler.tests}/classes">
+                    <include name="**/*Tests.class"/>
+                </fileset>
+            </batchtest>
+            <formatter type="xml"/>
+        </junit>
+    </target>
+	
     <target name="compile.functional.tests">
     	<delete dir="${compiler.tests}/classes" />
         <mkdir dir="${compiler.tests}/classes"/>
@@ -144,7 +182,7 @@
         </junit>
     </target>
 
-    <target name="main" depends="unit.tests, functional.tests, jar.tests, ant.tests"/>
+    <target name="main" depends="unit.tests, feature.tests, functional.tests, jar.tests, ant.tests"/>
 
     <target name="clean">
         <delete dir="${compiler.tests}/bin"/>