source: branches/4.0.0/components/test-suite/build.xml @ 4814

Revision 4814, 4.9 KB checked in by melissa, 11 years ago (diff)

Sync 4.0 branch with trunk. r4803 is omitted because it breaks some signed data - see ticket #359.

Line 
1<!--
2build.xml
3
4Ant build file for LOCI testing framework project.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7-->
8
9<project name="tests" default="jar" basedir=".">
10  <description>
11    Build file for LOCI testing framework project
12  </description>
13  <property file="base.properties"/>
14  <import file="${root.dir}/common.xml"/>
15  <property file="build.properties"/>
16
17  <taskdef name="testng" classpath="${component.classpath}"
18    classname="org.testng.TestNGAntTask"/>
19
20  <target name="test-convert" depends="compile"
21    description="run automated tests on writers">
22    <testng sourcedir="${dest.dir}"
23      classpath="${classes.dir}:${component.classpath}"
24      annotations="Javadoc" groups="all" testname="Writer tests"
25      listener="loci.tests.testng.DotTestListener"
26      suitename="LOCI software test suite">
27      <classfileset file="${classes.dir}/${writer-test.class}"/>
28      <sysproperty key="testng.filename" value="${testng.filename}"/>
29      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
30      <jvmarg value="-mx${testng.memory}"/>
31    </testng>
32  </target>
33
34  <target name="test-all" depends="compile"
35    description="run all automated tests">
36    <testng sourcedir="${dest.dir}"
37      classpath="${classes.dir}:${component.classpath}"
38      annotations="Javadoc" groups="all" testname="All tests"
39      listener="loci.tests.testng.DotTestListener"
40      suitename="LOCI software test suite">
41      <classfileset file="${classes.dir}/${reader-test.class}"/>
42      <sysproperty key="testng.filename" value="${testng.filename}"/>
43      <sysproperty key="testng.directory" value="${testng.directory}"/>
44      <sysproperty key="testng.multiplier" value="${testng.multiplier}"/>
45      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
46      <jvmarg value="-mx${testng.memory}"/>
47    </testng>
48  </target>
49
50  <target name="test-config" depends="compile"
51    description="generate config files for automated test suite">
52    <testng sourcedir="${dest.dir}"
53      classpath="${classes.dir}:${component.classpath}"
54      annotations="Javadoc" groups="config" testname="Config generation"
55      listener="loci.tests.testng.DotTestListener"
56      suitename="LOCI software test suite">
57      <classfileset file="${classes.dir}/${reader-test.class}"/>
58      <sysproperty key="testng.filename" value="${testng.filename}"/>
59      <sysproperty key="testng.directory" value="${testng.directory}"/>
60      <sysproperty key="testng.multiplier" value="${testng.multiplier}"/>
61      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
62      <jvmarg value="-mx${testng.memory}"/>
63    </testng>
64  </target>
65
66  <target name="test-fast" depends="compile"
67    description="run automated tests in group 'fast'">
68    <testng sourcedir="${dest.dir}"
69      classpath="${classes.dir}:${component.classpath}"
70      annotations="Javadoc" groups="fast" testname="Fast tests"
71      listener="loci.tests.testng.DotTestListener"
72      suitename="LOCI software test suite">
73      <classfileset file="${classes.dir}/${reader-test.class}"/>
74      <sysproperty key="testng.filename" value="${testng.filename}"/>
75      <sysproperty key="testng.directory" value="${testng.directory}"/>
76      <sysproperty key="testng.multiplier" value="${testng.multiplier}"/>
77      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
78      <jvmarg value="-mx${testng.memory}"/>
79    </testng>
80  </target>
81
82  <target name="test-pixels" depends="compile"
83    description="run automated tests in group 'pixels'">
84    <testng sourcedir="${dest.dir}"
85      classpath="${classes.dir}:${component.classpath}"
86      annotations="Javadoc" groups="pixels" testname="Pixels tests"
87      listener="loci.tests.testng.DotTestListener"
88      suitename="LOCI software test suite">
89      <classfileset file="${classes.dir}/${reader-test.class}"/>
90      <sysproperty key="testng.filename" value="${testng.filename}"/>
91      <sysproperty key="testng.directory" value="${testng.directory}"/>
92      <sysproperty key="testng.multiplier" value="${testng.multiplier}"/>
93      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
94      <jvmarg value="-mx${testng.memory}"/>
95    </testng>
96  </target>
97
98  <target name="test-xml" depends="compile"
99    description="run automated tests in group 'xml'">
100    <testng sourcedir="${dest.dir}"
101      classpath="${classes.dir}:${component.classpath}"
102      annotations="Javadoc" groups="xml" testname="XML tests"
103      listener="loci.tests.testng.DotTestListener"
104      suitename="LOCI software test suite">
105      <classfileset file="${classes.dir}/${reader-test.class}"/>
106      <sysproperty key="testng.filename" value="${testng.filename}"/>
107      <sysproperty key="testng.directory" value="${testng.directory}"/>
108      <sysproperty key="testng.multiplier" value="${testng.multiplier}"/>
109      <sysproperty key="lurawave.license" value="${lurawave.license}"/>
110      <jvmarg value="-mx${testng.memory}"/>
111    </testng>
112  </target>
113
114</project>
Note: See TracBrowser for help on using the repository browser.