Skip to content

Commit

Permalink
skip osgi tests under Java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
ceki committed Mar 21, 2017
1 parent e44f0d7 commit 916959d
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions integration/osgi-build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
<echo message="test classpath: ${test_classpath}" />
<echo message="basedir: ${basedir}" />

<echo message="ant.java.version: ${ant.java.version}" />

<property name="iBundleJar" value="target/iBundle.jar"/>
<property name="bundlesDir" value="bundle"/>

Expand All @@ -24,6 +26,10 @@
classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask" />
-->

<condition property="jdk9">
<matches pattern="9.*" string="${ant.java.version}" />
</condition>

<path id="minimal">
<pathelement location="target/test-classes/" />
</path >
Expand Down Expand Up @@ -63,30 +69,41 @@
invoked from the parent dir, which messes up theses tests. Hence, the
fork="yes" dir="${basedir}" -->

<target name="nop">
<!--
<jvmarg line="MINUS_MINUSadd-opens java.base/java.net=ALL-UNNAMED"/>
<jvmarg line="MINUS_MINUSadd-opens java.base/java.security=ALL-UNNAMED"/>
-->

<target name="nop" unless="jdk9">
<prepareOSGiHarness binding="nop"/>
<junit printsummary="yes" fork="yes" dir="${basedir}" haltonfailure="yes">
<classpath path="${test_classpath}"/>
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.test_osgi.BundleTest" />
<test todir="target/unit-reports"
name="org.slf4j.test_osgi.BundleTest"
outfile="OSGI-nop" />
</junit>
</target>

<target name="simple">
<target name="simple" unless="jdk9">
<prepareOSGiHarness binding="simple"/>
<junit printsummary="yes" fork="yes" dir="${basedir}" haltonfailure="yes">
<classpath path="${test_classpath}"/>
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.test_osgi.BundleTest" />
<test fork="yes" todir="target/unit-reports"
name="org.slf4j.test_osgi.BundleTest"
outfile="OSGI-simple" />
</junit>
</target>

<target name="jdk14">
<target name="jdk14" unless="jdk9">
<prepareOSGiHarness binding="jdk14"/>
<junit printsummary="yes" fork="yes" dir="${basedir}" haltonfailure="yes">
<classpath path="${test_classpath}"/>
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.test_osgi.BundleTest" />
<test fork="yes" todir="target/unit-reports"
name="org.slf4j.test_osgi.BundleTest"
outfile="OSGI-jdk14"/>
</junit>
</target>

Expand Down

0 comments on commit 916959d

Please sign in to comment.