Ignore:
Timestamp:
08/19/09 16:03:20 (4 years ago)
Author:
zach
Message:

Adding test suite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fl5/build/build.xml

    r275 r276  
    7373                </exec> 
    7474        </target> 
     75         
     76        <target name="build-test"> 
     77                <exec executable="${amxmlc.exe}" dir="${basedir}"> 
     78                        <!-- Point to the main class .as file --> 
     79                        <arg line="'${test.dir}/PlayerTestRunner.as'" /> 
     80 
     81                        <!-- Place the built .swf file in the "bin" directory --> 
     82                        <arg line="-output '${basedir}/bin-test/TestRunner.swf'" /> 
     83 
     84                        <!-- Define source directories for "src" and "tests" --> 
     85                        <arg line="-compiler.source-path '${test.dir}'" /> 
     86                        <arg line="-compiler.source-path '${src.dir}'" /> 
     87 
     88                        <!-- Include the necessary framework libraries in the class path --> 
     89                        <arg line="-compiler.library-path '${flexsdk.lib.dir}'" /> 
     90                        <arg line="-compiler.library-path '${flexunit.lib.dir}'" />      
     91                        <arg line="-compiler.library-path '${lib.dir}'" /> 
     92 
     93                        <!-- Include locale-specific items in the path --> 
     94                        <arg line="-locale ${flexsdk.locale}" /> 
     95                        <arg line="-compiler.library-path '${flexsdk.locale.dir}'" /> 
     96 
     97                        <!-- Compile with network sandbox --> 
     98                        <arg line="-use-network=true" /> 
     99 
     100                        <!-- Ignore missing type definitions --> 
     101                        <arg line="-warnings=false" /> 
     102                </exec> 
     103        </target> 
    75104 
    76105        <target name="test-unit" depends="check-properties"> 
    77                 <exec executable="${flashDebugPlayer.exe}" spawn="yes"> 
    78                         <arg line="'${debug.dir}/player.swf'" /> 
     106                <exec executable="${airDebugLauncher.exe}"> 
     107                        <arg line="'${basedir}/bin-test/TestRunner-app.xml'" /> 
    79108                </exec> 
    80109        </target> 
Note: See TracChangeset for help on using the changeset viewer.