Skip to content

Commit

Permalink
Merge pull request #141 from melissalinkert/9599
Browse files Browse the repository at this point in the history
Use relative test target names
  • Loading branch information
melissalinkert committed Sep 18, 2012
2 parents b111635 + cd70ab3 commit 2e7644f
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 42 deletions.
60 changes: 32 additions & 28 deletions ant/toplevel.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,10 @@ Type "ant -p" for a list of targets.
</copy>
</target>

<target name="testing-deps"
description="performs any work necessary for testing"
depends="copy-jars"/>

<!-- LOCI common library -->

<target name="deps-common"/>
Expand Down Expand Up @@ -221,7 +225,7 @@ Type "ant -p" for a list of targets.
<ant dir="components/common" target="common.utils"/>
</target>

<target name="test-common" depends="jar-common"
<target name="test-common" depends="jar-common, testing-deps"
description="compile and run tests for LOCI common library">
<ant dir="components/common" target="test"/>
</target>
Expand Down Expand Up @@ -255,9 +259,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/forks/jai" target="jai.clean"/>
</target>

<target name="test-jai" depends="jar-jai"
<target name="test-jai" depends="jar-jai, testing-deps"
description="compile and run tests for JAI Image I/O Tools library">
<ant dir="components/forks/jai" target="jai.test"/>
<ant dir="components/forks/jai" target="test"/>
</target>

<!-- Apache POI Java library -->
Expand Down Expand Up @@ -291,9 +295,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/forks/poi" target="poi-loci.clean"/>
</target>

<target name="test-poi-loci" depends="jar-poi-loci"
<target name="test-poi-loci" depends="jar-poi-loci, testing-deps"
description="compile and run tests for Apache POI library">
<ant dir="components/forks/poi" target="poi-loci.test"/>
<ant dir="components/forks/poi" target="test"/>
</target>

<!-- MDB Tools Java library -->
Expand Down Expand Up @@ -325,9 +329,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/forks/mdbtools" target="mdbtools.clean"/>
</target>

<target name="test-mdbtools" depends="jar-mdbtools"
<target name="test-mdbtools" depends="jar-mdbtools, testing-deps"
description="compile and run tests for MDB Tools Java library">
<ant dir="components/forks/mdbtools" target="mdbtools.test"/>
<ant dir="components/forks/mdbtools" target="test"/>
</target>

<!-- Metakit library -->
Expand Down Expand Up @@ -361,9 +365,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/metakit" target="metakit.clean"/>
</target>

<target name="test-metakit" depends="jar-metakit"
<target name="test-metakit" depends="jar-metakit, testing-deps"
description="compile and run tests for Metakit Java library">
<ant dir="components/metakit" target="metakit.test"/>
<ant dir="components/metakit" target="test"/>
</target>

<!-- OME-XML Java library -->
Expand Down Expand Up @@ -395,9 +399,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/ome-xml" target="ome-xml.clean"/>
</target>

<target name="test-ome-xml" depends="jar-ome-xml"
<target name="test-ome-xml" depends="jar-ome-xml, testing-deps"
description="compile and run tests for OME-XML Java library">
<ant dir="components/ome-xml" target="ome-xml.test"/>
<ant dir="components/ome-xml" target="test"/>
</target>

<!-- LWF stubs -->
Expand Down Expand Up @@ -429,9 +433,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/stubs/lwf-stubs" target="lwf-stubs.clean"/>
</target>

<target name="test-lwf-stubs" depends="jar-lwf-stubs"
<target name="test-lwf-stubs" depends="jar-lwf-stubs, testing-deps"
description="compile and run tests for LWF stubs">
<ant dir="components/stubs/lwf-stubs" target="lwf-stubs.test"/>
<ant dir="components/stubs/lwf-stubs" target="test"/>
</target>

<!-- SCIFIO -->
Expand Down Expand Up @@ -471,7 +475,7 @@ Type "ant -p" for a list of targets.
<ant dir="components/scifio" target="scifio.clean"/>
</target>

<target name="test-scifio" depends="jar-scifio"
<target name="test-scifio" depends="jar-scifio, testing-deps"
description="compile and run tests for SCIFIO">
<ant dir="components/scifio" target="test"/>
</target>
Expand Down Expand Up @@ -522,7 +526,7 @@ Type "ant -p" for a list of targets.
<ant dir="components/bio-formats" target="formats.utils"/>
</target>

<target name="test-formats" depends="jar-formats"
<target name="test-formats" depends="jar-formats, testing-deps"
description="compile and run tests for Bio-Formats">
<ant dir="components/bio-formats" target="test"/>
</target>
Expand Down Expand Up @@ -560,9 +564,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/autogen" target="autogen.clean"/>
</target>

<target name="test-autogen" depends="jar-autogen"
<target name="test-autogen" depends="jar-autogen, testing-deps"
description="compile and run tests for LOCI autogen">
<ant dir="components/autogen" target="autogen.test"/>
<ant dir="components/autogen" target="test"/>
</target>

<!-- LOCI Plugins for ImageJ -->
Expand Down Expand Up @@ -607,9 +611,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/loci-plugins" target="loci-plugins.utils"/>
</target>

<target name="test-loci-plugins" depends="jar-loci-plugins"
<target name="test-loci-plugins" depends="jar-loci-plugins, testing-deps"
description="compile and run tests for LOCI Plugins for ImageJ">
<ant dir="components/loci-plugins" target="loci-plugins.test"/>
<ant dir="components/loci-plugins" target="test"/>
</target>

<!-- OME I/O -->
Expand Down Expand Up @@ -647,7 +651,7 @@ Type "ant -p" for a list of targets.
<ant dir="components/ome-io" target="ome-io.clean"/>
</target>

<target name="test-ome-io" depends="jar-ome-io"
<target name="test-ome-io" depends="jar-ome-io, testing-deps"
description="compile and run tests for OME I/O">
<ant dir="components/ome-io" target="test"/>
</target>
Expand Down Expand Up @@ -689,9 +693,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/ome-plugins" target="ome-plugins.clean"/>
</target>

<target name="test-ome-plugins" depends="jar-ome-plugins"
<target name="test-ome-plugins" depends="jar-ome-plugins, testing-deps"
description="compile and run tests for OME Plugins for ImageJ">
<ant dir="components/ome-plugins" target="ome-plugins.test"/>
<ant dir="components/ome-plugins" target="test"/>
</target>

<!-- LOCI testing framework -->
Expand Down Expand Up @@ -733,9 +737,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/test-suite" target="tests.clean"/>
</target>

<target name="test-tests" depends="jar-tests"
<target name="test-tests" depends="jar-tests, testing-deps"
description="compile and run tests for LOCI testing framework">
<ant dir="components/test-suite" target="tests.test"/>
<ant dir="components/test-suite" target="test"/>
</target>

<!-- OME Notes -->
Expand Down Expand Up @@ -771,9 +775,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/legacy/ome-notes" target="ome-notes.clean"/>
</target>

<target name="test-ome-notes" depends="jar-ome-notes"
<target name="test-ome-notes" depends="jar-ome-notes, testing-deps"
description="compile and run tests for OME Notes">
<ant dir="components/legacy/ome-notes" target="ome-notes.test"/>
<ant dir="components/legacy/ome-notes" target="test"/>
</target>

<!-- OME Metadata Editor -->
Expand Down Expand Up @@ -811,9 +815,9 @@ Type "ant -p" for a list of targets.
<ant dir="components/legacy/ome-editor" target="ome-editor.clean"/>
</target>

<target name="test-ome-editor" depends="jar-ome-editor"
<target name="test-ome-editor" depends="jar-ome-editor, testing-deps"
description="compile and run tests for OME Metadata Editor">
<ant dir="components/legacy/ome-editor" target="ome-editor.test"/>
<ant dir="components/legacy/ome-editor" target="test"/>
</target>

<!-- Tool collections -->
Expand Down
4 changes: 2 additions & 2 deletions components/bio-formats/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Type "ant -p" for a list of targets.
<classpath>
<pathelement location="${test-classes.dir}"/>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<xmlfileset file="${build.dir}/testng.xml"/>
<jvmarg value="-mx${testng.memory}"/>
Expand Down Expand Up @@ -83,7 +83,7 @@ Type "ant -p" for a list of targets.
<classpath>
<pathelement location="${test-classes.dir}"/>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${test-classes.dir}/loci/formats/utests/MetadataConfigurableTest.class"/>
<sysproperty key="testng.filename" value="${testng.filename}"/>
Expand Down
2 changes: 1 addition & 1 deletion components/ome-io/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Type "ant -p" for a list of targets.
<classpath>
<pathelement location="${test-classes.dir}"/>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<xmlfileset file="${build.dir}/testng.xml"/>
<jvmarg value="-mx${testng.memory}"/>
Expand Down
2 changes: 1 addition & 1 deletion components/scifio/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Type "ant -p" for a list of targets.
<classpath>
<pathelement location="${test-classes.dir}"/>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<xmlfileset file="${build.dir}/testng.xml"/>
<jvmarg value="-Dlurawave.license=XXX"/>
Expand Down
20 changes: 10 additions & 10 deletions components/test-suite/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/loci/tests/testng/CompressDecompressTest.class"/>
</testng>
Expand All @@ -74,7 +74,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${writer-test.class}"/>
<sysproperty key="testng.filename" value="${testng.filename}"/>
Expand All @@ -94,7 +94,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest" useDefaultListeners="false">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -119,7 +119,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -144,7 +144,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest" useDefaultListeners="false">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -169,7 +169,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -194,7 +194,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -219,7 +219,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -244,7 +244,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand All @@ -269,7 +269,7 @@ Type "ant -p" for a list of targets.
failureProperty="failedTest">
<classpath>
<pathelement location="${classes.dir}"/>
<pathelement path="${component.classpath}"/>
<pathelement path="${component.runtime-cp}"/>
</classpath>
<classfileset file="${classes.dir}/${reader-test.class}"/>
<sysproperty key="testng.toplevel-config" value="${testng.toplevel-config}"/>
Expand Down

0 comments on commit 2e7644f

Please sign in to comment.