Apache Lucene open-source search software
Add moreterms and dvupdates indices for backward-compatibility tests.
Adrien Grand7b03d6082ffd
diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.javaindex 03dbe7a1580..343edf6cc3e 100644--- a/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java+++ b/lucene/backward-codecs/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java@@ -75,7 +75,6 @@ import org.apache.lucene.util.TestUtil;import org.apache.lucene.util.Version;import org.junit.AfterClass;import org.junit.BeforeClass;-import org.junit.Ignore;/*Verify we can read the pre-5.0 file format, do searches@@ -84,7 +83,7 @@ import org.junit.Ignore;public class TestBackwardsCompatibility extends LuceneTestCase {// To generate backcompat indexes with the current default codec, run the following ant command:- // ant test -Dtestcase=TestBackwardsCompatibility -Dbwc.indexdir=/path/to/store/indexes+ // ant test -Dtestcase=TestBackwardsCompatibility -Dtests.bwcdir=/path/to/store/indexes// -Dtests.codec=default -Dtests.useSecurityManager=false// Also add testmethod with one of the index creation methods below, for example:// -Dtestmethod=testCreateCFS@@ -312,6 +311,8 @@ public class TestBackwardsCompatibility extends LuceneTestCase {};final static String[] oldSingleSegmentNames = {+ "5.0.0.singlesegment-cfs",+ "5.0.0.singlesegment-nocfs"};static Map<String,Directory> oldIndexDirs;@@ -1228,7 +1229,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {public static final String moreTermsIndex = "moreterms.5.0.0.zip";- @Ignore("needs a 5.0 index once released")public void testMoreTerms() throws Exception {Path oldIndexDir = createTempDir("moreterms");TestUtil.unzip(getDataInputStream(moreTermsIndex), oldIndexDir);@@ -1269,7 +1269,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {reader.close();}- @Ignore("needs a 5.0 index once released")public void testDocValuesUpdates() throws Exception {Path oldIndexDir = createTempDir("dvupdates");TestUtil.unzip(getDataInputStream(dvUpdatesIndex), oldIndexDir);diff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/dvupdates.5.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/index/dvupdates.5.0.0.zipnew file mode 100644index 00000000000..1101c2a1a1fBinary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/index/dvupdates.5.0.0.zip differdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-cfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-cfs.zipnew file mode 100644index 00000000000..68cb26bbc1cBinary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-cfs.zip differdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-nocfs.zip b/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-nocfs.zipnew file mode 100644index 00000000000..ef9d68d8566Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/index/index.5.0.0.singlesegment-nocfs.zip differdiff --git a/lucene/backward-codecs/src/test/org/apache/lucene/index/moreterms.5.0.0.zip b/lucene/backward-codecs/src/test/org/apache/lucene/index/moreterms.5.0.0.zipnew file mode 100644index 00000000000..0adfe6975a1Binary files /dev/null and b/lucene/backward-codecs/src/test/org/apache/lucene/index/moreterms.5.0.0.zip differ