Add moreterms and dvupdates indices for backward-compatibility tests.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1661622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Adrien Grand 2015-02-23 09:01:58 +00:00
parent 9b112b58d4
commit 7b03d6082f
5 changed files with 3 additions and 4 deletions

View File

@ -75,7 +75,6 @@ import org.apache.lucene.util.TestUtil;
import org.apache.lucene.util.Version; import org.apache.lucene.util.Version;
import org.junit.AfterClass; import org.junit.AfterClass;
import org.junit.BeforeClass; import org.junit.BeforeClass;
import org.junit.Ignore;
/* /*
Verify we can read the pre-5.0 file format, do searches 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 { public class TestBackwardsCompatibility extends LuceneTestCase {
// To generate backcompat indexes with the current default codec, run the following ant command: // 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 // -Dtests.codec=default -Dtests.useSecurityManager=false
// Also add testmethod with one of the index creation methods below, for example: // Also add testmethod with one of the index creation methods below, for example:
// -Dtestmethod=testCreateCFS // -Dtestmethod=testCreateCFS
@ -312,6 +311,8 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
}; };
final static String[] oldSingleSegmentNames = { final static String[] oldSingleSegmentNames = {
"5.0.0.singlesegment-cfs",
"5.0.0.singlesegment-nocfs"
}; };
static Map<String,Directory> oldIndexDirs; static Map<String,Directory> oldIndexDirs;
@ -1228,7 +1229,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
public static final String moreTermsIndex = "moreterms.5.0.0.zip"; public static final String moreTermsIndex = "moreterms.5.0.0.zip";
@Ignore("needs a 5.0 index once released")
public void testMoreTerms() throws Exception { public void testMoreTerms() throws Exception {
Path oldIndexDir = createTempDir("moreterms"); Path oldIndexDir = createTempDir("moreterms");
TestUtil.unzip(getDataInputStream(moreTermsIndex), oldIndexDir); TestUtil.unzip(getDataInputStream(moreTermsIndex), oldIndexDir);
@ -1269,7 +1269,6 @@ public class TestBackwardsCompatibility extends LuceneTestCase {
reader.close(); reader.close();
} }
@Ignore("needs a 5.0 index once released")
public void testDocValuesUpdates() throws Exception { public void testDocValuesUpdates() throws Exception {
Path oldIndexDir = createTempDir("dvupdates"); Path oldIndexDir = createTempDir("dvupdates");
TestUtil.unzip(getDataInputStream(dvUpdatesIndex), oldIndexDir); TestUtil.unzip(getDataInputStream(dvUpdatesIndex), oldIndexDir);