Skip to content

Commit

Permalink
run test.bc as part of tests on 2.10.x
Browse files Browse the repository at this point in the history
also added test.bc-opt target as binary compatibility differs between (non)optimized builds...
  • Loading branch information
adriaanm committed Mar 26, 2013
1 parent 6620758 commit 86bea6a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions build.xml
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1452,14 +1452,16 @@ targets exercised:
</partest> </partest>
</target> </target>


<!-- currently disabled: test.ant, test.bc, test.positions, test.classload --> <!-- currently disabled: test.ant, test.positions, test.classload -->
<target name="test.done" depends="test.osgi, test.sbt, test.interactive, test.continuations.suite, test.suite, test.scaladoc, test.stability"/> <target name="test.done" depends="test.osgi, test.sbt, test.bc, test.interactive, test.continuations.suite, test.suite, test.scaladoc, test.stability"/>




<!-- =========================================================================== <!-- ===========================================================================
BINARY COMPATIBILITY TESTING BINARY COMPATIBILITY TESTING
============================================================================ --> ============================================================================ -->
<target name="bc.init" depends="init" unless="maven-deps-done-mima"> <target name="bc.init" depends="init" unless="maven-deps-done-mima">
<property name="bc-reference-version" value="2.10.0"/>

<property name="bc-build.dir" value="${build.dir}/bc"/> <property name="bc-build.dir" value="${build.dir}/bc"/>
<!-- Obtain mima --> <!-- Obtain mima -->
<mkdir dir="${bc-build.dir}"/> <mkdir dir="${bc-build.dir}"/>
Expand All @@ -1468,9 +1470,9 @@ targets exercised:
<dependency groupId="com.typesafe" artifactId="mima-reporter_2.9.2" version="0.1.5"/> <dependency groupId="com.typesafe" artifactId="mima-reporter_2.9.2" version="0.1.5"/>
</artifact:dependencies> </artifact:dependencies>
<artifact:dependencies pathId="old.bc.classpath"> <artifact:dependencies pathId="old.bc.classpath">
<dependency groupId="org.scala-lang" artifactId="scala-swing" version="2.10.0"/> <dependency groupId="org.scala-lang" artifactId="scala-swing" version="${bc-reference-version}"/>
<dependency groupId="org.scala-lang" artifactId="scala-library" version="2.10.0"/> <dependency groupId="org.scala-lang" artifactId="scala-library" version="${bc-reference-version}"/>
<dependency groupId="org.scala-lang" artifactId="scala-reflect" version="2.10.0"/> <dependency groupId="org.scala-lang" artifactId="scala-reflect" version="${bc-reference-version}"/>
</artifact:dependencies> </artifact:dependencies>
<property name="maven-deps-done-mima" value="true"/> <property name="maven-deps-done-mima" value="true"/>
</target> </target>
Expand All @@ -1481,8 +1483,8 @@ targets exercised:
<attribute name="curr"/> <attribute name="curr"/>
<attribute name="direction"/> <attribute name="direction"/>
<sequential> <sequential>
<echo message="Checking @{direction} binary compatibility for @{jar-name}"/> <echo message="Checking @{direction} binary compatibility for @{jar-name} (against ${bc-reference-version})"/>
<java <java taskname="mima"
fork="true" fork="true"
failonerror="true" failonerror="true"
classname="com.typesafe.tools.mima.cli.Main"> classname="com.typesafe.tools.mima.cli.Main">
Expand Down Expand Up @@ -1516,6 +1518,7 @@ targets exercised:
</sequential> </sequential>
</macrodef> </macrodef>


<target name="test.bc-opt" description="Optimized version of test.bc."> <optimized name="test.bc"/></target>
<target name="test.bc" depends="bc.init, pack.lib, pack.reflect, pack.swing"> <target name="test.bc" depends="bc.init, pack.lib, pack.reflect, pack.swing">
<bc.check jar-name="scala-library"/> <bc.check jar-name="scala-library"/>
<bc.check jar-name="scala-reflect"/> <bc.check jar-name="scala-reflect"/>
Expand Down

0 comments on commit 86bea6a

Please sign in to comment.