directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r1378068 - in /directory/apacheds/branches/apacheds-txns/interceptors/subtree: ./ src/test/java/org/apache/directory/server/core/subtree/
Date Tue, 28 Aug 2012 10:27:55 GMT
Author: akarasulu
Date: Tue Aug 28 10:27:54 2012
New Revision: 1378068

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

Added:
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorIT.java
      - copied, changed from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorTest.java
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorIT.java
      - copied, changed from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorTest.java
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorIT.java
      - copied, changed from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorTest.java
Removed:
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorTest.java
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorTest.java
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorTest.java
Modified:
    directory/apacheds/branches/apacheds-txns/interceptors/subtree/pom.xml

Modified: directory/apacheds/branches/apacheds-txns/interceptors/subtree/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/interceptors/subtree/pom.xml?rev=1378068&r1=1378067&r2=1378068&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/interceptors/subtree/pom.xml (original)
+++ directory/apacheds/branches/apacheds-txns/interceptors/subtree/pom.xml Tue Aug 28 10:27:54
2012
@@ -147,5 +147,141 @@
       </resource>
     </resources>
   </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>
+        
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>copy</id>
+                <phase>process-test-resources</phase>
+                <goals>
+                  <goal>copy</goal>
+                </goals>
+                <configuration>
+                  <artifactItems>
+                    <artifactItem>
+                      <groupId>org.apache.directory.shared</groupId>
+                      <artifactId>shared-ldap-extras-codec</artifactId>
+                      <version>${org.apache.directory.shared.version}</version>
+                      <outputDirectory>${codec.plugin.directory}</outputDirectory>
+                    </artifactItem>
+                  </artifactItems>
+                </configuration>
+              </execution>
+            </executions>
+          </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>
+                <apacheds.partition.factory>org.apache.directory.server.core.factory.LdifPartitionFactory</apacheds.partition.factory>
+                <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>
+
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-dependency-plugin</artifactId>
+            <executions>
+              <execution>
+                <id>copy</id>
+                <phase>process-test-resources</phase>
+                <goals>
+                  <goal>copy</goal>
+                </goals>
+                <configuration>
+                  <artifactItems>
+                    <artifactItem>
+                      <groupId>org.apache.directory.shared</groupId>
+                      <artifactId>shared-ldap-extras-codec</artifactId>
+                      <version>${org.apache.directory.shared.version}</version>
+                      <outputDirectory>${codec.plugin.directory}</outputDirectory>
+                    </artifactItem>
+                  </artifactItems>
+                </configuration>
+              </execution>
+            </executions>
+          </plugin>     
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
+    
 </project>
 

Copied: directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorIT.java
(from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorTest.java)
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorIT.java?p2=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorIT.java&p1=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorTest.java&r1=1377773&r2=1378068&rev=1378068&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorTest.java
(original)
+++ directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementEvaluatorIT.java
Tue Aug 28 10:27:54 2012
@@ -53,7 +53,7 @@ import com.mycila.junit.concurrent.Concu
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class RefinementEvaluatorTest
+public class RefinementEvaluatorIT
 {
     /** the SchemaManager instance */
     private static SchemaManager schemaManager;

Copied: directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorIT.java
(from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorTest.java)
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorIT.java?p2=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorIT.java&p1=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorTest.java&r1=1377773&r2=1378068&rev=1378068&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorTest.java
(original)
+++ directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/RefinementLeafEvaluatorIT.java
Tue Aug 28 10:27:54 2012
@@ -53,7 +53,7 @@ import org.junit.runner.RunWith;
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class RefinementLeafEvaluatorTest
+public class RefinementLeafEvaluatorIT
 {
     /** the SchemaManager instance */
     private static SchemaManager schemaManager;

Copied: directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorIT.java
(from r1377773, directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorTest.java)
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorIT.java?p2=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorIT.java&p1=directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorTest.java&r1=1377773&r2=1378068&rev=1378068&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorTest.java
(original)
+++ directory/apacheds/branches/apacheds-txns/interceptors/subtree/src/test/java/org/apache/directory/server/core/subtree/SubtreeEvaluatorIT.java
Tue Aug 28 10:27:54 2012
@@ -65,7 +65,7 @@ import com.mycila.junit.concurrent.Concu
  */
 @RunWith(ConcurrentJunitRunner.class)
 @Concurrency()
-public class SubtreeEvaluatorTest
+public class SubtreeEvaluatorIT
 {
     private static DnFactory dnFactory;
     private static SchemaManager schemaManager;
@@ -80,7 +80,7 @@ public class SubtreeEvaluatorTest
 
         if ( workingDirectory == null )
         {
-            String path = SubtreeEvaluatorTest.class.getResource( "" ).getPath();
+            String path = SubtreeEvaluatorIT.class.getResource( "" ).getPath();
             int targetPos = path.indexOf( "target" );
             workingDirectory = path.substring( 0, targetPos + 6 );
         }



Mime
View raw message