directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1378042 - in /directory/jdbm/branches/txn/jdbm2: pom.xml src/test/java/jdbm/btree/BTreeIT.java src/test/java/jdbm/btree/SnapshotBTreeIT.java src/test/java/jdbm/btree/TestBTree.java src/test/java/jdbm/btree/TestSnapshotBTree.java
Date Tue, 28 Aug 2012 09:38:19 GMT
Author: akarasulu
Date: Tue Aug 28 09:38:18 2012
New Revision: 1378042

URL: http://svn.apache.org/viewvc?rev=1378042&view=rev
Log:
making long running integration tests require the use of the -Dintegration switch

Added:
    directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/BTreeIT.java
      - copied, changed from r1377773, directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestBTree.java
    directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/SnapshotBTreeIT.java
      - copied, changed from r1377773, directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java
Removed:
    directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestBTree.java
    directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java
Modified:
    directory/jdbm/branches/txn/jdbm2/pom.xml

Modified: directory/jdbm/branches/txn/jdbm2/pom.xml
URL: http://svn.apache.org/viewvc/directory/jdbm/branches/txn/jdbm2/pom.xml?rev=1378042&r1=1378041&r2=1378042&view=diff
==============================================================================
--- directory/jdbm/branches/txn/jdbm2/pom.xml (original)
+++ directory/jdbm/branches/txn/jdbm2/pom.xml Tue Aug 28 09:38:18 2012
@@ -94,4 +94,90 @@
       </plugin>
     </plugins>
   </build>
+  
+  <profiles>
+    <profile>
+      <id>integration</id>
+      <activation>
+        <property><name>integration</name></property>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <includes>
+                <include>**/*IT.java</include>
+                <include>**/*Test.java</include>
+              </includes>
+              <excludes>
+                <exclude>**/*PerfIT.java</exclude>
+                <exclude>**/*PerfTest.java</exclude>
+              </excludes>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+
+    <profile>
+      <id>quicktest</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <exclude>**/*PerfIT.java</exclude>
+                <exclude>**/*PerfTest.java</exclude>
+                <exclude>**/*ITest.java</exclude>
+                <exclude>**/*IT.java</exclude>
+              </excludes>
+              <systemPropertyVariables>
+                <felix.cache.rootdir>
+                  ${project.build.directory}
+                </felix.cache.rootdir>
+                <felix.cache.locking>
+                  false
+                </felix.cache.locking>
+                <org.osgi.framework.storage.clean>
+                  onFirstInit
+                </org.osgi.framework.storage.clean>
+                <org.osgi.framework.storage>
+                  ${project.build.directory}/osgi-cache
+                </org.osgi.framework.storage>
+              </systemPropertyVariables>
+            </configuration>
+          </plugin>
+
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <configuration>
+                  <tasks>
+                    <echo>
+=================================================================
+                   Q U I C K   T E S T S
+                   ---------------------
+                  
+WARNING: Long running integration tests have been disabled!
+=================================================================
+                    </echo>
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>

Copied: directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/BTreeIT.java (from r1377773,
directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestBTree.java)
URL: http://svn.apache.org/viewvc/directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/BTreeIT.java?p2=directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/BTreeIT.java&p1=directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestBTree.java&r1=1377773&r2=1378042&rev=1378042&view=diff
==============================================================================
--- directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestBTree.java (original)
+++ directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/BTreeIT.java Tue Aug 28 09:38:18
2012
@@ -81,7 +81,7 @@ import org.junit.runner.RunWith;
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class TestBTree
+public class BTreeIT
 {
     @Rule
     public TemporaryFolder folder = new TemporaryFolder();

Copied: directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/SnapshotBTreeIT.java (from
r1377773, directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java)
URL: http://svn.apache.org/viewvc/directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/SnapshotBTreeIT.java?p2=directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/SnapshotBTreeIT.java&p1=directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java&r1=1377773&r2=1378042&rev=1378042&view=diff
==============================================================================
--- directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/TestSnapshotBTree.java (original)
+++ directory/jdbm/branches/txn/jdbm2/src/test/java/jdbm/btree/SnapshotBTreeIT.java Tue Aug
28 09:38:18 2012
@@ -44,7 +44,7 @@ import org.junit.rules.TemporaryFolder;
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
-public class TestSnapshotBTree
+public class SnapshotBTreeIT
 {
     @Rule
     public TemporaryFolder folder = new TemporaryFolder();



Mime
View raw message