scale up random testing @ jenkins/night

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/branches/lucene4547@1441304 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2013-02-01 03:33:30 +00:00
parent ad04c854ec
commit a95815c362
1 changed files with 38 additions and 11 deletions

View File

@ -1091,23 +1091,38 @@ public abstract class BaseDocValuesFormatTestCase extends LuceneTestCase {
} }
public void testBooleanNumericsVsStoredFields() throws Exception { 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 { 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 { 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 { 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 { 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 { private void doTestBinaryVsStoredFields(int minLength, int maxLength) throws Exception {
@ -1167,12 +1182,18 @@ public abstract class BaseDocValuesFormatTestCase extends LuceneTestCase {
} }
public void testBinaryFixedLengthVsStoredFields() throws Exception { public void testBinaryFixedLengthVsStoredFields() throws Exception {
int fixedLength = _TestUtil.nextInt(random(), 1, 10); int numIterations = atLeast(1);
doTestBinaryVsStoredFields(fixedLength, fixedLength); for (int i = 0; i < numIterations; i++) {
int fixedLength = _TestUtil.nextInt(random(), 1, 10);
doTestBinaryVsStoredFields(fixedLength, fixedLength);
}
} }
public void testBinaryVariableLengthVsStoredFields() throws Exception { 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 { private void doTestSortedVsStoredFields(int minLength, int maxLength) throws Exception {
@ -1232,11 +1253,17 @@ public abstract class BaseDocValuesFormatTestCase extends LuceneTestCase {
} }
public void testSortedFixedLengthVsStoredFields() throws Exception { public void testSortedFixedLengthVsStoredFields() throws Exception {
int fixedLength = _TestUtil.nextInt(random(), 1, 10); int numIterations = atLeast(1);
doTestSortedVsStoredFields(fixedLength, fixedLength); for (int i = 0; i < numIterations; i++) {
int fixedLength = _TestUtil.nextInt(random(), 1, 10);
doTestSortedVsStoredFields(fixedLength, fixedLength);
}
} }
public void testSortedVariableLengthVsStoredFields() throws Exception { public void testSortedVariableLengthVsStoredFields() throws Exception {
doTestSortedVsStoredFields(1, 10); int numIterations = atLeast(1);
for (int i = 0; i < numIterations; i++) {
doTestSortedVsStoredFields(1, 10);
}
} }
} }