source: branches/4.2/components/bio-formats/build.xml @ 6072

Revision 6072, 4.3 KB checked in by melissa, 10 years ago (diff)
  • Added more generic metadata configuration test.
  • Fixed a handful of bugs exposed during testing.
Line 
1<!--
2build.xml
3
4Ant build file for Bio-Formats project.
5Download Apache Ant from http://ant.apache.org/.
6Type "ant -p" for a list of targets.
7-->
8
9<project name="formats" default="jar" basedir=".">
10  <description>Build file for Bio-Formats project</description>
11  <property name="root.dir" location="../.."/>
12  <import file="${root.dir}/ant/java.xml"/>
13  <property file="build.properties"/>
14
15  <target name="test"
16    depends="jar,compile-tests,test-no-mdb,test-no-netcdf,test-no-ome-xml,
17    test-no-poi,test-no-jai,test-no-lurawave"
18    description="run tests" if="doTests">
19    <copy tofile="${build.dir}/testng.xml" overwrite="true"
20      file="${tests.dir}/loci/formats/utests/testng.xml"/>
21    <testng classpath="${test-classes.dir}:${classes.dir}:${component.classpath}"
22      groups="all" testname="${component.name}">
23      <xmlfileset file="${build.dir}/testng.xml"/>
24      <jvmarg value="-mx${testng.memory}"/>
25      <jvmarg value="-Dlurawave.license=XXX"/>
26    </testng>
27  </target>
28
29  <target name="test-no-mdb" depends="compile-tests"
30    description="run missing MDB tools JAR tests" if="doTests">
31    <copy tofile="${build.dir}/testng.xml" overwrite="true"
32      file="${tests.dir}/loci/formats/utests/testng-no-mdb.xml"/>
33    <testng classpath=
34      "${test-classes.dir}:${classes.dir}:${component.cp.no-mdb}">
35    <!--<testng classpath="${test-classes.dir}:${classes.dir}:${artifact.dir}/loci-common.jar">-->
36      <xmlfileset file="${build.dir}/testng.xml"/>
37      <jvmarg value="-mx${testng.memory}"/>
38    </testng>
39  </target>
40
41  <target name="test-no-netcdf" depends="compile-tests"
42    description="run missing NetCDF JAR tests" if="doTests">
43    <copy tofile="${build.dir}/testng.xml" overwrite="true"
44      file="${tests.dir}/loci/formats/utests/testng-no-netcdf.xml"/>
45    <testng classpath=
46      "${test-classes.dir}:${classes.dir}:${component.cp.no-netcdf}">
47      <xmlfileset file="${build.dir}/testng.xml"/>
48      <jvmarg value="-mx${testng.memory}"/>
49    </testng>
50  </target>
51
52  <target name="test-no-ome-xml" depends="compile-tests"
53    description="run missing OME-XML JAR tests" if="doTests">
54    <copy tofile="${build.dir}/testng.xml" overwrite="true"
55      file="${tests.dir}/loci/formats/utests/testng-no-ome-xml.xml"/>
56    <testng classpath=
57    "${test-classes.dir}:${classes.dir}:${component.cp.no-xml}">
58      <xmlfileset file="${build.dir}/testng.xml"/>
59      <jvmarg value="-mx${testng.memory}"/>
60    </testng>
61  </target>
62
63  <target name="test-no-poi" depends="compile-tests"
64    description="run missing POI JAR tests" if="doTests">
65    <copy tofile="${build.dir}/testng.xml" overwrite="true"
66      file="${tests.dir}/loci/formats/utests/testng-no-poi.xml"/>
67    <testng classpath=
68      "${test-classes.dir}:${classes.dir}:${component.cp.no-poi}">
69      <xmlfileset file="${build.dir}/testng.xml"/>
70      <jvmarg value="-mx${testng.memory}"/>
71    </testng>
72  </target>
73
74  <target name="test-no-jai" depends="compile-tests"
75    description="run missing JAI ImageIO JAR tests" if="doTests">
76    <copy tofile="${build.dir}/testng.xml" overwrite="true"
77      file="${tests.dir}/loci/formats/utests/testng-no-jai.xml"/>
78    <testng classpath=
79      "${test-classes.dir}:${classes.dir}:${component.cp.no-jai}">
80      <xmlfileset file="${build.dir}/testng.xml"/>
81      <jvmarg value="-mx${testng.memory}"/>
82    </testng>
83  </target>
84
85  <target name="test-no-lurawave" depends="compile-tests"
86    description="run missing LuraWave JAR tests" if="doTests">
87    <copy tofile="${build.dir}/testng.xml" overwrite="true"
88      file="${tests.dir}/loci/formats/utests/testng-no-lurawave.xml"/>
89    <testng classpath=
90      "${test-classes.dir}:${classes.dir}:${component.cp.no-lurawave}">
91      <xmlfileset file="${build.dir}/testng.xml"/>
92      <jvmarg value="-mx${testng.memory}"/>
93    </testng>
94  </target>
95
96  <target name="test-metadata" depends="compile-tests"
97    description="test metadata level support for a single file" if="doTests">
98    <testng sourcedir="${test.dir}"
99      classpath="${test-classes.dir}:${classes.dir}:${component.classpath}"
100      testname="Metadata tests">
101      <classfileset file="${test-classes.dir}/loci/formats/utests/MetadataConfigurableTest.class"/>
102      <sysproperty key="testng.filename" value="${testng.filename}"/>
103      <jvmarg value="-mx${testng.memory}"/>
104    </testng>
105  </target>
106
107</project>
Note: See TracBrowser for help on using the repository browser.