lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r615187 - in /lucene/java/trunk/src/test/org/apache/lucene/index: TestBackwardsCompatibility.java index.23.cfs.zip index.23.nocfs.zip
Date Fri, 25 Jan 2008 11:45:13 GMT
Author: mikemccand
Date: Fri Jan 25 03:45:12 2008
New Revision: 615187

URL: http://svn.apache.org/viewvc?rev=615187&view=rev
Log:
LUCENE-1120: also add 2.3 index tests to the backwards compatibility test

Added:
    lucene/java/trunk/src/test/org/apache/lucene/index/index.23.cfs.zip   (with props)
    lucene/java/trunk/src/test/org/apache/lucene/index/index.23.nocfs.zip   (with props)
Modified:
    lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java?rev=615187&r1=615186&r2=615187&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/index/TestBackwardsCompatibility.java Fri
Jan 25 03:45:12 2008
@@ -48,16 +48,22 @@
 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.<VERSION>.cfs.zip *"; cd to
+  // build/test/index.nocfs and run "zip
+  // index.<VERSION>.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 @@
                              "21.cfs",
                              "21.nocfs",
                              "22.cfs",
-                             "22.nocfs"};
+                             "22.nocfs",
+                             "23.cfs",
+                             "23.nocfs",
+  };
 
   public void testSearchOldIndex() throws IOException {
     for(int i=0;i<oldNames.length;i++) {

Added: lucene/java/trunk/src/test/org/apache/lucene/index/index.23.cfs.zip
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/index.23.cfs.zip?rev=615187&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lucene/java/trunk/src/test/org/apache/lucene/index/index.23.cfs.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lucene/java/trunk/src/test/org/apache/lucene/index/index.23.nocfs.zip
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/index/index.23.nocfs.zip?rev=615187&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lucene/java/trunk/src/test/org/apache/lucene/index/index.23.nocfs.zip
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream



Mime
View raw message