Changeset 379 for trunk/JavaCommons


Ignore:
Timestamp:
01/31/12 12:11:37 (13 years ago)
Author:
sherbold
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaCommons/build.xml

    r349 r379  
    105105        <property name="coverage.instrumented.javahelperlib" value="${coverage.instrumented}/javahelperlib" /> 
    106106        <property name="coverage.instrumented.eventbenchcore" value="${coverage.instrumented}/eventbenchcore" /> 
     107        <property name="coverage.instrumented.eventbenchconsole" value="${coverage.instrumented}/eventbenchconsole" /> 
    107108        <path id="emma.classpath"> 
    108109                <pathelement location="lib-test/emma.jar" /> 
     
    124125        </path> 
    125126 
     127        <!-- JUnit Test EventBenchConsole Properties --> 
     128        <property name="test.location.eventbenchconsole" value="${build.location}/eventbenchconsole-test" /> 
     129        <property name="EventBenchConsoleTest.location" value="../EventBenchConsoleTest" /> 
     130        <property name="test.eventbenchconsole.main-class" value="de.ugoe.cs.eventbench.jfc.TestAll" /> 
     131        <property name="test.eventbenchconsole.results" value="${test.location.results}/eventbenchconsole" /> 
     132        <path id="EventBenchConsoleJUnitCompile.classpath"> 
     133                <pathelement location="${test.location.eventbenchconsole}" /> 
     134                <path refid="EventBenchConsole.classpath" /> 
     135                <path refid="EventBenchCore.classpath" /> 
     136                <path refid="JUnit.classpath" /> 
     137        </path> 
     138        <path id="EventBenchConsoleJUnitExecute.classpath"> 
     139                <pathelement location="${coverage.instrumented.eventbenchconsole}" /> 
     140                <path refid="EventBenchConsoleJUnitCompile.classpath" /> 
     141                <path refid="emma.classpath" /> 
     142        </path> 
     143         
    126144        <!-- JUnit Test EventBenchCore Properties --> 
    127145        <property name="test.location.eventbenchcore" value="${build.location}/eventbenchcore-test" /> 
     
    131149        <path id="EventBenchCoreJUnitCompile.classpath"> 
    132150                <pathelement location="${test.location.eventbenchcore}" /> 
    133                 <!--<pathelement location="${coverage.instrumented.eventbenchcore}" /> --> 
    134151                <path refid="EventBenchCore.classpath" /> 
    135152                <path refid="JUnit.classpath" /> 
     
    196213                <mkdir dir="${test.location.data}" /> 
    197214                <mkdir dir="${test.location.output}" /> 
     215        </target> 
     216        <target depends="init.junit" name="init.eventbenchconsole-test"> 
     217                <mkdir dir="${test.location.eventbenchconsole}" /> 
    198218        </target> 
    199219        <target depends="init.junit" name="init.eventbenchcore-test"> 
     
    375395 
    376396        <!-- JUnit Targets --> 
     397        <target depends="init.eventbenchconsole-test, emma.instrument.eventbenchconsole" 
     398                name="build.eventbenchconsole-test"> 
     399                <javac debug="true" debuglevel="${debuglevel}" destdir="${test.location.eventbenchconsole}" 
     400                        source="${source}" target="${target}" includeantruntime="false"> 
     401                        <src path="${EventBenchConsoleTest.location}/src" /> 
     402                        <classpath refid="EventBenchConsoleJUnitCompile.classpath" /> 
     403                </javac> 
     404        </target> 
    377405        <target depends="init.eventbenchcore-test, emma.instrument.eventbenchcore" 
    378406                name="build.eventbenchcore-test"> 
     
    392420        </target> 
    393421 
     422        <target depends="emma.instrument.eventbenchconsole,build.eventbenchconsole-test" 
     423                        name="junit.eventbenchconsole"> 
     424                        <junit fork="on" printsummary="yes" haltonfailure="no"> 
     425                                <classpath refid="EventBenchConsoleJUnitExecute.classpath" /> 
     426                                <test name="${test.eventbenchconsole.main-class}" haltonfailure="no" 
     427                                        outfile="${test.eventbenchconsole.results}"> 
     428                                        <formatter type="xml" /> 
     429                                </test> 
     430                                <jvmarg 
     431                                        value="-Demma.coverage.out.file=${coverage.location}/eventbenchconsole.emma" /> 
     432                                <jvmarg value="-Demma.coverage.out.merge=true" /> 
     433                        </junit> 
     434                </target> 
    394435        <target depends="emma.instrument.eventbenchcore,build.eventbenchcore-test" 
    395436                name="junit.eventbenchcore"> 
     
    419460        </target> 
    420461 
    421         <target depends="junit.javahelperlib,junit.eventbenchcore" name="junit" /> 
     462        <target depends="junit.javahelperlib,junit.eventbenchcore,junit.eventbenchconsole" name="junit" /> 
    422463 
    423464        <!-- Emma Targets --> 
     
    434475                </emma> 
    435476        </target> 
     477        <target depends="build.eventbenchconsole, init.emma" name="emma.instrument.eventbenchconsole"> 
     478                        <emma enabled="true"> 
     479                                <instr instrpath="${build.location.eventbenchconsole}" destdir="${coverage.instrumented.eventbenchconsole}" 
     480                                        metadatafile="${coverage.location}/eventbenchconsole.emma" merge="true" /> 
     481                        </emma> 
     482                </target> 
    436483        <target depends="junit" name="emma.report"> 
    437484                <emma enabled="true"> 
Note: See TracChangeset for help on using the changeset viewer.