From eb415f517143a8ebd1240df5570188e20b5d4f9f Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Fri, 25 Jan 2008 11:45:12 +0000 Subject: [PATCH] LUCENE-1120: also add 2.3 index tests to the backwards compatibility test git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@615187 13f79535-47bb-0310-9956-ffa450edef68 --- .../index/TestBackwardsCompatibility.java | 19 +++++++++++++----- .../org/apache/lucene/index/index.23.cfs.zip | Bin 0 -> 1109 bytes .../apache/lucene/index/index.23.nocfs.zip | Bin 0 -> 1916 bytes 3 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 src/test/org/apache/lucene/index/index.23.cfs.zip create mode 100644 src/test/org/apache/lucene/index/index.23.nocfs.zip diff --git a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java index 6e14aeb8deb..52d8bd8eb14 100644 --- a/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java +++ b/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java @@ -48,16 +48,22 @@ import org.apache.lucene.document.Field; public class TestBackwardsCompatibility extends LuceneTestCase { - // Uncomment these cases & run in a pre-lockless checkout - // to create indices: + // Uncomment these cases & run them on an older Lucene + // version, to generate an index to test backwards + // compatibility. Then, cd to build/test/index.cfs and + // run "zip index..cfs.zip *"; cd to + // build/test/index.nocfs and run "zip + // index..nocfs.zip *". Then move those 2 zip + // files to your trunk checkout and add them to the + // oldNames array. /* public void testCreatePreLocklessCFS() throws IOException { - createIndex("src/test/org/apache/lucene/index/index.cfs", true); + createIndex("index.cfs", true); } public void testCreatePreLocklessNoCFS() throws IOException { - createIndex("src/test/org/apache/lucene/index/index.nocfs", false); + createIndex("index.nocfs", false); } */ @@ -116,7 +122,10 @@ public class TestBackwardsCompatibility extends LuceneTestCase "21.cfs", "21.nocfs", "22.cfs", - "22.nocfs"}; + "22.nocfs", + "23.cfs", + "23.nocfs", + }; public void testSearchOldIndex() throws IOException { for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