You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2013/02/01 04:33:31 UTC

svn commit: r1441304 - /lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java

Author: rmuir
Date: Fri Feb  1 03:33:30 2013
New Revision: 1441304

URL: http://svn.apache.org/viewvc?rev=1441304&view=rev
Log:
scale up random testing @ jenkins/night

Modified:
    lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java

Modified: lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java?rev=1441304&r1=1441303&r2=1441304&view=diff
==============================================================================
--- lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java (original)
+++ lucene/dev/branches/lucene4547/lucene/test-framework/src/java/org/apache/lucene/index/BaseDocValuesFormatTestCase.java Fri Feb  1 03:33:30 2013
@@ -1091,23 +1091,38 @@ public abstract class BaseDocValuesForma
   }
   
   public void testBooleanNumericsVsStoredFields() throws Exception {
-    doTestNumericsVsStoredFields(0, 1);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestNumericsVsStoredFields(0, 1);
+    }
   }
   
   public void testByteNumericsVsStoredFields() throws Exception {
-    doTestNumericsVsStoredFields(Byte.MIN_VALUE, Byte.MAX_VALUE);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestNumericsVsStoredFields(Byte.MIN_VALUE, Byte.MAX_VALUE);
+    }
   }
   
   public void testShortNumericsVsStoredFields() throws Exception {
-    doTestNumericsVsStoredFields(Short.MIN_VALUE, Short.MAX_VALUE);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestNumericsVsStoredFields(Short.MIN_VALUE, Short.MAX_VALUE);
+    }
   }
   
   public void testIntNumericsVsStoredFields() throws Exception {
-    doTestNumericsVsStoredFields(Integer.MIN_VALUE, Integer.MAX_VALUE);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestNumericsVsStoredFields(Integer.MIN_VALUE, Integer.MAX_VALUE);
+    }
   }
   
   public void testLongNumericsVsStoredFields() throws Exception {
-    doTestNumericsVsStoredFields(Long.MIN_VALUE, Long.MAX_VALUE);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestNumericsVsStoredFields(Long.MIN_VALUE, Long.MAX_VALUE);
+    }
   }
   
   private void doTestBinaryVsStoredFields(int minLength, int maxLength) throws Exception {
@@ -1167,12 +1182,18 @@ public abstract class BaseDocValuesForma
   }
   
   public void testBinaryFixedLengthVsStoredFields() throws Exception {
-    int fixedLength = _TestUtil.nextInt(random(), 1, 10);
-    doTestBinaryVsStoredFields(fixedLength, fixedLength);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      int fixedLength = _TestUtil.nextInt(random(), 1, 10);
+      doTestBinaryVsStoredFields(fixedLength, fixedLength);
+    }
   }
   
   public void testBinaryVariableLengthVsStoredFields() throws Exception {
-    doTestBinaryVsStoredFields(1, 10);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestBinaryVsStoredFields(1, 10);
+    }
   }
   
   private void doTestSortedVsStoredFields(int minLength, int maxLength) throws Exception {
@@ -1232,11 +1253,17 @@ public abstract class BaseDocValuesForma
   }
   
   public void testSortedFixedLengthVsStoredFields() throws Exception {
-    int fixedLength = _TestUtil.nextInt(random(), 1, 10);
-    doTestSortedVsStoredFields(fixedLength, fixedLength);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      int fixedLength = _TestUtil.nextInt(random(), 1, 10);
+      doTestSortedVsStoredFields(fixedLength, fixedLength);
+    }
   }
   
   public void testSortedVariableLengthVsStoredFields() throws Exception {
-    doTestSortedVsStoredFields(1, 10);
+    int numIterations = atLeast(1);
+    for (int i = 0; i < numIterations; i++) {
+      doTestSortedVsStoredFields(1, 10);
+    }
   }
 }