File: junit.xml

package info (click to toggle)
rdp-classifier 2.10.2-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 5,280 kB
  • sloc: java: 9,679; xml: 1,522; sh: 56; makefile: 20
file content (44 lines) | stat: -rw-r--r-- 1,264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!-- Snippet to drive junit tests in deb build. Build rdp-readseq.jar first. -->
<project>
<target name="junit">
        <taskdef resource="net/sf/antcontrib/antlib.xml">
            <classpath>
                <pathelement location="/usr/share/java/ant-contrib.jar" />
            </classpath>
        </taskdef>


    <property name="cp" value="rdp_classifier.jar:/usr/share/java/junit4.jar:test"/>

    <javac srcdir="test" source="1.8" target="1.8">
	<classpath path="${cp}"/>
    </javac>

    <echo>Using java version ${java.version}</echo>
    <if><equals arg1="${ant.java.version}" arg2="1.8" />
    <then>
    <junit haltonfailure="yes" printsummary="yes" showoutput="true">
        <classpath path="${cp}"/>

        <formatter type="xml"/>

        <batchtest fork="yes">
            <fileset dir="test" includes="**/rrnaclassifier/**/*Test.java"/>
        </batchtest> 
    </junit>
    </then>
    <else>
    <junit haltonfailure="yes" printsummary="yes" showoutput="true">
      <jvmarg line=""/>
        <classpath path="${cp}"/>

        <formatter type="xml"/>

        <batchtest fork="yes">
            <fileset dir="test" includes="**/rrnaclassifier/**/*Test.java"/>
        </batchtest>
    </junit>
    </else>
    </if>
</target>
</project>