Apache Solr open-source search software
LUCENE-3313: ignore multipliers/nightly for backwards tests
Robert Muirf484aebb0304
diff --git a/lucene/build.xml b/lucene/build.xmlindex 8916e78a1b4..585470504eb 100644--- a/lucene/build.xml+++ b/lucene/build.xml@@ -96,22 +96,42 @@</sequential></target>- <target name="test-backwards" /><!--add here after 4.0: depends="compile-backwards, junit-backwards-mkdir, junit-backwards-sequential, junit-backwards-parallel"-->+ <target name="test-backwards" /><!--add here after 4.0: depends="compile-backwards, backwards-test-warning, junit-backwards-mkdir, junit-backwards-sequential, junit-backwards-parallel"--><target name="junit-backwards-mkdir"><mkdir dir="${build.dir.backwards}/test"/></target>+ <target name="check-backwards-params">+ <condition property="backwards.ignoring.params">+ <or>+ <istrue value="${tests.nightly}"/>+ <not><equals arg1="${tests.multiplier}" arg2="1"/></not>+ </or>+ </condition>+ </target>++ <target name="backwards-test-warning" depends="check-backwards-params" if="backwards.ignoring.params">+ <echo>+ Warning: Ignoring your multiplier and nightly settings for backwards tests.+ These tests are for API compatibility only!+ </echo>+ </target>+<macrodef name="backwards-test-macro"><attribute name="threadNum" default="1"/><attribute name="threadTotal" default="1"/><sequential>- <!-- run branch tests against trunk jar -->+ <!-- run branch tests against trunk jar:+ Note: we disable multiplier/nightly because the purpose is to find API breaks+ --><test-macrodataDir="${backwards.dir}/src/test"tempDir="${build.dir.backwards}/test"junit.classpath="backwards.junit.classpath"junit.output.dir="${junit.output.dir.backwards}"+ tests.nightly="false"+ tests.multiplier="1"threadNum="@{threadNum}"threadTotal="@{threadTotal}"/></sequential>diff --git a/lucene/common-build.xml b/lucene/common-build.xmlindex ea91fb0f18a..e2104a542b8 100644--- a/lucene/common-build.xml+++ b/lucene/common-build.xml@@ -490,6 +490,8 @@<attribute name="tempDir" default="${build.dir}/test"/><attribute name="threadNum" default="1"/><attribute name="threadTotal" default="1"/>+ <attribute name="tests.nightly" default="${tests.nightly}"/>+ <attribute name="tests.multiplier" default="${tests.multiplier}"/><sequential><condition property="runall">@@ -540,10 +542,10 @@<!-- logging config file --><sysproperty key="java.util.logging.config.file" value="${tests.loggingfile}"/><!-- set whether or not nightly tests should run -->- <sysproperty key="tests.nightly" value="${tests.nightly}"/>+ <sysproperty key="tests.nightly" value="@{tests.nightly}"/><!-- TODO: create propertyset for test properties, so each project can have its own set -->- <sysproperty key="tests.multiplier" value="${tests.multiplier}"/>+ <sysproperty key="tests.multiplier" value="@{tests.multiplier}"/><sysproperty key="tempDir" file="@{tempDir}/@{threadNum}"/><sysproperty key="lucene.version" value="${dev.version}"/>