Browse files

run test.bc as part of tests on 2.10.x

also added test.bc-opt target as binary compatibility differs between (non)optimized builds...
  • Loading branch information...
1 parent 6620758 commit 86bea6ae304197cf6f9cdb17258c21faab5dea35 @adriaanm adriaanm committed Mar 25, 2013
Showing with 10 additions and 7 deletions.
  1. +10 −7 build.xml
View
17 build.xml
@@ -1452,14 +1452,16 @@ targets exercised:
</partest>
</target>
-<!-- currently disabled: test.ant, test.bc, test.positions, test.classload -->
- <target name="test.done" depends="test.osgi, test.sbt, test.interactive, test.continuations.suite, test.suite, test.scaladoc, test.stability"/>
+<!-- currently disabled: test.ant, test.positions, test.classload -->
+ <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
============================================================================ -->
<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"/>
<!-- Obtain mima -->
<mkdir dir="${bc-build.dir}"/>
@@ -1468,9 +1470,9 @@ targets exercised:
<dependency groupId="com.typesafe" artifactId="mima-reporter_2.9.2" version="0.1.5"/>
</artifact:dependencies>
<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-library" version="2.10.0"/>
- <dependency groupId="org.scala-lang" artifactId="scala-reflect" 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="${bc-reference-version}"/>
+ <dependency groupId="org.scala-lang" artifactId="scala-reflect" version="${bc-reference-version}"/>
</artifact:dependencies>
<property name="maven-deps-done-mima" value="true"/>
</target>
@@ -1481,8 +1483,8 @@ targets exercised:
<attribute name="curr"/>
<attribute name="direction"/>
<sequential>
- <echo message="Checking @{direction} binary compatibility for @{jar-name}"/>
- <java
+ <echo message="Checking @{direction} binary compatibility for @{jar-name} (against ${bc-reference-version})"/>
+ <java taskname="mima"
fork="true"
failonerror="true"
classname="com.typesafe.tools.mima.cli.Main">
@@ -1516,6 +1518,7 @@ targets exercised:
</sequential>
</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">
<bc.check jar-name="scala-library"/>
<bc.check jar-name="scala-reflect"/>

0 comments on commit 86bea6a

Please sign in to comment.