lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/6] lucenenet git commit: Marking more LongRunningTests
Date Sat, 07 Mar 2015 17:29:18 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master dd7dba7a6 -> 9a920eb10


Marking more LongRunningTests


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/326d856e
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/326d856e
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/326d856e

Branch: refs/heads/master
Commit: 326d856e755c74d6c0c24c6433f8b2affe5f00f7
Parents: dd7dba7
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Thu Mar 5 23:43:18 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Thu Mar 5 23:43:18 2015 +0200

----------------------------------------------------------------------
 .../Codecs/Lucene41/TestBlockPostingsFormat3.cs   |  3 ++-
 .../core/Index/TestBinaryDocValuesUpdates.cs      |  3 ++-
 .../core/Index/TestIndexWriterReader.cs           |  5 +++--
 .../core/Index/TestTermdocPerf.cs                 |  3 ++-
 .../core/Store/TestLockFactory.cs                 |  4 ++--
 .../core/Util/Automaton/TestUTF32ToUTF8.cs        |  3 ++-
 .../core/Util/Packed/TestEliasFanoSequence.cs     | 18 +++++++++++++++---
 7 files changed, 28 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
index a519b86..6552584 100644
--- a/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
+++ b/src/Lucene.Net.Tests/core/Codecs/Lucene41/TestBlockPostingsFormat3.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
 using Lucene.Net.Support;
@@ -71,7 +72,7 @@ namespace Lucene.Net.Codecs.Lucene41
         internal static readonly int MAXDOC = Lucene41PostingsFormat.BLOCK_SIZE * 20;
 
         // creates 8 fields with different options and does "duels" of fields against each
other
-        [Test]
+        [Test, LongRunningTest]
         public virtual void Test()
         {
             Directory dir = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Index/TestBinaryDocValuesUpdates.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestBinaryDocValuesUpdates.cs b/src/Lucene.Net.Tests/core/Index/TestBinaryDocValuesUpdates.cs
index cd262d6..9f49a59 100644
--- a/src/Lucene.Net.Tests/core/Index/TestBinaryDocValuesUpdates.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestBinaryDocValuesUpdates.cs
@@ -1,6 +1,7 @@
 using Apache.NMS.Util;
 using System;
 using System.Collections.Generic;
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 
 namespace Lucene.Net.Index
@@ -1577,7 +1578,7 @@ namespace Lucene.Net.Index
             dir.Dispose();
         }
 
-        [Test]
+        [Test, LongRunningTest]
         public virtual void TestTonsOfUpdates()
         {
             // LUCENE-5248: make sure that when there are many updates, we don't use too
much RAM

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Index/TestIndexWriterReader.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestIndexWriterReader.cs b/src/Lucene.Net.Tests/core/Index/TestIndexWriterReader.cs
index 7cfeda1..93013d1 100644
--- a/src/Lucene.Net.Tests/core/Index/TestIndexWriterReader.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestIndexWriterReader.cs
@@ -2,6 +2,7 @@ using System;
 using System.Collections.Generic;
 using System.Diagnostics;
 using System.Threading;
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 
 namespace Lucene.Net.Index
@@ -843,7 +844,7 @@ namespace Lucene.Net.Index
         }
 
         // Stress test reopen during addIndexes
-        [Test]
+        [Test, LongRunningTest]
         public virtual void TestDuringAddIndexes()
         {
             Directory dir1 = GetAssertNoDeletesDirectory(NewDirectory());
@@ -967,7 +968,7 @@ namespace Lucene.Net.Index
         }
 
         // Stress test reopen during add/delete
-        [Test]
+        [Test, LongRunningTest]
         public virtual void TestDuringAddDelete()
         {
             Directory dir1 = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs b/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
index 5160a75..8f32a38 100644
--- a/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
+++ b/src/Lucene.Net.Tests/core/Index/TestTermdocPerf.cs
@@ -1,4 +1,5 @@
 using Lucene.Net.Analysis.Tokenattributes;
+using Lucene.Net.Attributes;
 using Lucene.Net.Documents;
 using NUnit.Framework;
 using System;
@@ -165,7 +166,7 @@ namespace Lucene.Net.Index
             return ret;
         }
 
-        [Test]
+        [Test, LongRunningTest]
         public virtual void TestTermDocPerf()
         {
             // performance test for 10% of documents containing a term

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Store/TestLockFactory.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Store/TestLockFactory.cs b/src/Lucene.Net.Tests/core/Store/TestLockFactory.cs
index 674c8b6..55c2002 100644
--- a/src/Lucene.Net.Tests/core/Store/TestLockFactory.cs
+++ b/src/Lucene.Net.Tests/core/Store/TestLockFactory.cs
@@ -149,7 +149,7 @@ namespace Lucene.Net.Store
         // Verify: do stress test, by opening IndexReaders and
         // IndexWriters over & over in 2 threads and making sure
         // no unexpected exceptions are raised:
-        [Test/*, Nightly, Timeout(int.MaxValue)*/]
+        [Test, LongRunningTest]
         public virtual void TestStressLocks()
         {
             _testStressLocks(null, CreateTempDir("index.TestLockFactory6"));
@@ -159,7 +159,7 @@ namespace Lucene.Net.Store
         // IndexWriters over & over in 2 threads and making sure
         // no unexpected exceptions are raised, but use
         // NativeFSLockFactory:
-        [Test/*, Nightly, Timeout(int.MaxValue)*/]
+        [Test, LongRunningTest]
         public virtual void TestStressLocksNativeFSLockFactory()
         {
             DirectoryInfo dir = CreateTempDir("index.TestLockFactory7");

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Util/Automaton/TestUTF32ToUTF8.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/Automaton/TestUTF32ToUTF8.cs b/src/Lucene.Net.Tests/core/Util/Automaton/TestUTF32ToUTF8.cs
index 5e421a8..0349167 100644
--- a/src/Lucene.Net.Tests/core/Util/Automaton/TestUTF32ToUTF8.cs
+++ b/src/Lucene.Net.Tests/core/Util/Automaton/TestUTF32ToUTF8.cs
@@ -1,3 +1,4 @@
+using Lucene.Net.Attributes;
 using Lucene.Net.Randomized.Generators;
 using Lucene.Net.Support;
 using NUnit.Framework;
@@ -235,7 +236,7 @@ namespace Lucene.Net.Util.Automaton
             Assert.IsTrue(bra.Run(bytes, 0, bytes.Length));
         }
 
-        [Test]
+        [Test, LongRunningTest]
         public void TestRandomRegexes()
         {
             int num = AtLeast(250);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/326d856e/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoSequence.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoSequence.cs b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoSequence.cs
index 3fc1717..36201af 100644
--- a/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoSequence.cs
+++ b/src/Lucene.Net.Tests/core/Util/Packed/TestEliasFanoSequence.cs
@@ -293,7 +293,20 @@ namespace Lucene.Net.Util.Packed
         [Test]
         public virtual void TestMonotoneSequences()
         {
-            //for (int s = 2; s < 1222; s++) {
+            for (int s = 2; s < 1222; s++)
+            {
+                long[] values = new long[s];
+                for (int i = 0; i < s; i++)
+                {
+                    values[i] = (i / 2); // upperbound smaller than number of values, only
upper bits encoded
+                }
+                TstEFS2(values);
+            }
+        }
+
+        [Test, LongRunningTest]
+        public virtual void TestMonotoneSequencesLonger()
+        {
             for (int s = 2; s < 4422; s++)
             {
                 long[] values = new long[s];
@@ -320,8 +333,7 @@ namespace Lucene.Net.Util.Packed
             }
         }
 
-        [Test]
-        [LongRunningTest]
+        [Test, LongRunningTest]
         public virtual void TestStrictMonotoneSequencesLonger()
         {
             for (int s = 2; s < 4422; s++)


Mime
View raw message