File: jel-test.xml

package info (click to toggle)
jel 2.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,328 kB
  • sloc: javascript: 15,979; java: 6,767; xml: 1,729; makefile: 6
file content (60 lines) | stat: -rw-r--r-- 1,804 bytes parent folder | download | duplicates (3)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?xml version="1.0"?>

<project name="JEL CI tests" default="test" basedir=".">
  
  <property name="build.dir" value="build"/>
  <property name="src.dir" value="../../source/src"/>
  <property name="build.tests" value="${build.dir}/tests"/>
  <property name="tests.dir" value="${src.dir}/tests"/>

  <property name="junit.fork" value="true"/>
  <property name="junit.filtertrace" value="off"/>
  <property name="junit.summary" value="no"/>

  <path id="tests-classpath">
    <pathelement location="/usr/share/java/jel.jar"/>
    <pathelement location="/usr/share/java/junit.jar"/>
    <pathelement location="${build.tests}"/>
    <pathelement location="${tests.dir}"/>
  </path>

  <target name="compile-tests">
    <mkdir dir="${build.tests}"/>

    <javac srcdir="${tests.dir}"
           destdir="${build.tests}"
	   includeantruntime="false" >
      <classpath refid="tests-classpath"/>
    </javac>
  </target>

  <target name="test" depends="run-tests" description="-> run JUnit tests"/>

  <target name="run-tests" depends="compile-tests">

    <junit printsummary="${junit.summary}" haltonfailure="yes"
           filtertrace="${junit.filtertrace}"
           fork="${junit.fork}">

      <jvmarg value="-enableassertions"/>
      <classpath refid="tests-classpath"/>

      <sysproperty key="java.io.tmpdir" value="${build.tests}"/>
      <sysproperty key="build.tests" value="${build.tests}"/>
      <sysproperty key="tests-classpath.value"
                   value="${tests-classpath.value}"/>
      <sysproperty key="java.awt.headless" value="${java.awt.headless}"/>

      <formatter type="plain" usefile="false"/>

      <batchtest>
        <fileset dir="${tests.dir}">
          <include name="**/*Test.java"/>
        </fileset>
      </batchtest>

    </junit>
  </target>

</project>