mirror of https://github.com/apache/lucene.git
LUCENE-1446: Add compatibility tag to common-build.xml and run backwards-compatibility tests in the nightly build.
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@712920 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b179b038a1
commit
b69ab2b50a
|
@ -82,6 +82,9 @@ Build
|
|||
and executing the junit testcases from an older release for
|
||||
backwards-compatibility testing. (Michael Busch)
|
||||
|
||||
2. LUCENE-1446: Add compatibility tag to common-build.xml and run
|
||||
backwards-compatibility tests in the nightly build. (Michael Busch)
|
||||
|
||||
Test Cases
|
||||
|
||||
======================= Release 2.4.0 2008-10-06 =======================
|
||||
|
|
11
build.xml
11
build.xml
|
@ -89,7 +89,7 @@
|
|||
description="Runs all unit tests (including contribs)"
|
||||
/>
|
||||
|
||||
<property name="tag" value="lucene_2_4_0"/>
|
||||
<property name="tag" value="${compatibility.tag}"/>
|
||||
|
||||
<path id="tag.test.classpath">
|
||||
<path refid="demo.classpath"/>
|
||||
|
@ -110,7 +110,7 @@
|
|||
<sequential>
|
||||
<mkdir dir="${tags.dir}/${tag}"/>
|
||||
<exec dir="${tags.dir}/${tag}" executable="svn"
|
||||
failifexecutionfails="true">
|
||||
failifexecutionfails="false">
|
||||
<arg line="checkout http://svn.apache.org/repos/asf/lucene/java/tags/${tag}/src/test/"/>
|
||||
</exec>
|
||||
</sequential>
|
||||
|
@ -119,6 +119,11 @@
|
|||
<target name="test-tag" depends="download-tag, compile-core, compile-demo"
|
||||
description="Runs tests of a previous Lucene version. Specify tag version like this: -Dtag=lucene_2_4_0">
|
||||
<sequential>
|
||||
<available property="tag.available" file="${tags.dir}/${tag}/test" />
|
||||
|
||||
<fail unless="tag.available">
|
||||
Specified tag '${tag}' could not be found in directory '${tags.dir}/${tag}'.
|
||||
</fail>
|
||||
<mkdir dir="${build.dir}/${tag}/test"/>
|
||||
<compile-test-macro srcdir="${tags.dir}/${tag}/test" destdir="${build.dir}/${tag}/classes/test"
|
||||
test.classpath="tag.test.classpath"/>
|
||||
|
@ -353,7 +358,7 @@
|
|||
</copy>
|
||||
</target>
|
||||
|
||||
<target name="nightly" depends="test, package-tgz, changes-to-html">
|
||||
<target name="nightly" depends="test, test-tag, package-tgz, changes-to-html">
|
||||
</target>
|
||||
|
||||
<!-- ================================================================== -->
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
<property name="name" value="${ant.project.name}"/>
|
||||
<property name="Name" value="Lucene"/>
|
||||
<property name="version" value="2.9-dev"/>
|
||||
<property name="compatibility.tag" value="lucene_2_4_0"/>
|
||||
<property name="spec.version" value="${version}"/>
|
||||
<property name="year" value="2000-${current.year}"/>
|
||||
<property name="final.name" value="lucene-${name}-${version}"/>
|
||||
|
|
Loading…
Reference in New Issue