Changeset fcdf837 for build.xml


Ignore:
Timestamp:
May 16, 2013 5:57:33 PM (7 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
a374f00
Parents:
febc0a5
Message:
  • New buildTest and prepTest targets
  • Fix UDPEndpoint usage in unit tests:
    • Restore receive()
    • Handle null UDPTransport
  • Fix UDPEndpointTestStandalone compilation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • build.xml

    rfebc0a5 rfcdf837  
    12931293
    12941294    <!-- unit tests -->
    1295     <target name="updateTest" depends="prepupdate">
     1295    <target name="buildTest">
    12961296        <ant dir="core/java/" target="jarTest" />
    1297         <copy file="core/java/build/i2ptest.jar" todir="pkg-temp/lib" />
    1298         <zip destfile="i2pupdate.zip" basedir="pkg-temp" />
    1299     </target>
     1297        <ant dir="router/java/" target="jarTest" />
     1298        <copy file="core/java/build/i2ptest.jar" todir="build" />
     1299        <copy file="router/java/build/routertest.jar" todir="build" />
     1300    </target>
     1301    <target name="prepTest" depends="prepupdate, buildTest">
     1302        <!-- overwrite i2p.jar and router.jar with the test versions -->
     1303        <copy file="build/i2ptest.jar" tofile="pkg-temp/lib/i2p.jar" overwrite="true" />
     1304        <copy file="build/routertest.jar" tofile="pkg-temp/lib/router.jar" overwrite="true" />
     1305    </target>
     1306    <target name="updateTest" depends="prepTest, zipit" />
    13001307    <target name="junit.test" depends="buildProperties, jbigi" >
    13011308        <ant dir="core/java/" target="junit.test" />
     
    13041311    <target name="scalatest.test" depends="buildProperties, jbigi" >
    13051312        <ant dir="core/java/" target="scalatest.test" />
     1313        <!-- note there are no router scala tests yet -->
    13061314        <ant dir="router/java/" target="scalatest.test" />
    13071315    </target>
    13081316    <target name="test" depends="buildProperties, jbigi" >
     1317        <!-- both junit and scala -->
    13091318        <ant dir="core/java/" target="test" />
    13101319        <ant dir="router/java/" target="test" />
Note: See TracChangeset for help on using the changeset viewer.