flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [04/18] git commit: [flex-falcon] [refs/heads/develop] - refactor tests script so sdk-dependent are in separate targets and not in the main target
Date Mon, 12 Oct 2015 20:37:00 GMT
refactor tests script so sdk-dependent are in separate targets and not in the main target


Project: http://git-wip-us.apache.org/repos/asf/flex-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-falcon/commit/804e9ff7
Tree: http://git-wip-us.apache.org/repos/asf/flex-falcon/tree/804e9ff7
Diff: http://git-wip-us.apache.org/repos/asf/flex-falcon/diff/804e9ff7

Branch: refs/heads/develop
Commit: 804e9ff7e153009eaf9aa35a95b219354237cc16
Parents: a0da9b3
Author: Alex Harui <aharui@apache.org>
Authored: Fri Oct 9 13:30:39 2015 -0700
Committer: Alex Harui <aharui@apache.org>
Committed: Fri Oct 9 13:30:39 2015 -0700

----------------------------------------------------------------------
 compiler.tests/build.xml | 77 +++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 75 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-falcon/blob/804e9ff7/compiler.tests/build.xml
----------------------------------------------------------------------
diff --git a/compiler.tests/build.xml b/compiler.tests/build.xml
index 737e3d7..8cb1ab6 100644
--- a/compiler.tests/build.xml
+++ b/compiler.tests/build.xml
@@ -67,10 +67,13 @@
         <property name="FLEX_HOME" value="${sdk}"/>
         <property name="FALCON_HOME" value="${falcon}"/>
         <taskdef resource="flexTasks.tasks" classpath="${falcon}/lib/falcon-flexTasks.jar"/>
-        <mxmlc file="${compiler.tests}/Hello.as" target-player="${playerglobal.version}"/>
+        <mxmlc file="${compiler.tests}/Hello.as" target-player="${playerglobal.version}">
+            <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
+        </mxmlc>
         <delete file="${compiler.tests}/Hello.swf"/>
         <compc output="Hello.swc" include-classes="Hello" target-player="${playerglobal.version}">
             <source-path path-element="${compiler.tests}"/>
+            <arg value="+env.PLAYERGLOBAL_HOME=${env.PLAYERGLOBAL_HOME}" />
         </compc>
         <delete file="${compiler.tests}/Hello.swc"/>
     </target>
@@ -107,12 +110,46 @@
             <batchtest todir="${compiler.tests}/results">
                 <fileset dir="${compiler.tests}/classes">
                     <include name="**/*Tests.class"/>
+                    <exclude name="**/MXMLDesignLayerNodeTests.class"/>
+                    <exclude name="**/MXMLHTTPServiceNodeTests.class"/>
+                    <exclude name="**/MXMLModelNodeTests.class"/>
+                    <exclude name="**/MXMLRemoteObjectNodeTests.class"/>
+                    <exclude name="**/MXMLStateNodeTests.class"/>
+                    <exclude name="**/MXMLWebServiceNodeTests.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
         </junit>
     </target>
 	
+    <target name="unit.tests.sdk" depends="download, compile.unit.tests">
+        <mkdir dir="${compiler.tests}/results"/>
+        <mkdir dir="${compiler.tests}/temp"/>
+        <junit dir="${compiler.tests}"
+            fork="yes" forkMode="perBatch" maxmemory="${maxmem}m" timeout="${test.timeout}"
+            printsummary="true" showoutput="true"
+            haltonerror="true" haltonfailure="true"
+            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="**/MXMLDesignLayerNodeTests.class"/>
+                    <include name="**/MXMLHTTPServiceNodeTests.class"/>
+                    <include name="**/MXMLModelNodeTests.class"/>
+                    <include name="**/MXMLRemoteObjectNodeTests.class"/>
+                    <include name="**/MXMLStateNodeTests.class"/>
+                    <include name="**/MXMLWebServiceNodeTests.class"/>
+                </fileset>
+            </batchtest>
+            <formatter type="xml"/>
+        </junit>
+    </target>
+    
     <target name="compile.feature.tests">
     	<delete dir="${compiler.tests}/classes"/>
         <mkdir dir="${compiler.tests}/classes"/>
@@ -145,12 +182,47 @@
             <batchtest todir="${compiler.tests}/results">
                 <fileset dir="${compiler.tests}/classes">
                     <include name="**/*Tests.class"/>
+                    <exclude name="**/MXMLComponentTagTests.class"/>
+                    <exclude name="**/MXMLHTTPServiceTagTests.class"/>
+                    <exclude name="**/MXMLModelTagTests.class"/>
+                    <exclude name="**/MXMLRemoteObjectTagTests.class"/>
+                    <exclude name="**/MXMLWebServiceTagTests.class"/>
+                    <exclude name="**/MXMLProperty*.class"/>
                 </fileset>
             </batchtest>
             <formatter type="xml"/>
         </junit>
     </target>
 	
+    <target name="feature.tests.sdk" depends="download, compile.feature.tests">
+        <mkdir dir="${compiler.tests}/results"/>
+        <mkdir dir="${compiler.tests}/temp"/>
+        <junit dir="${compiler.tests}"
+            fork="yes" forkMode="perBatch" maxmemory="${maxmem}m" timeout="${test.timeout}"
+            printsummary="true" showoutput="true"
+            haltonerror="true" haltonfailure="true"
+            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="**/MXMLComponentTagTests.class"/>
+                    <include name="**/MXMLHTTPServiceTagTests.class"/>
+                    <include name="**/MXMLModelTagTests.class"/>
+                    <include name="**/MXMLRemoteObjectTagTests.class"/>
+                    <include name="**/MXMLWebServiceTagTests.class"/>
+                    <include name="**/MXMLProperty*.class"/>
+                    <exclude name="**/MXMLPropertyTestsBase.class"/>
+                </fileset>
+            </batchtest>
+            <formatter type="xml"/>
+        </junit>
+    </target>
+    
     <target name="compile.functional.tests">
     	<delete dir="${compiler.tests}/classes" />
         <mkdir dir="${compiler.tests}/classes"/>
@@ -189,7 +261,8 @@
         </junit>
     </target>
 
-    <target name="main" depends="unit.tests, feature.tests, functional.tests, jar.tests,
ant.tests"/>
+    <target name="main" depends="unit.tests, feature.tests, jar.tests"/>
+    <target name="all" depends="main, unit.tests.sdk, feature.tests.sdk, functional.tests,
ant.tests"/>
 
     <target name="clean">
         <delete dir="${compiler.tests}/bin"/>


Mime
View raw message