directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r360255 - in /directory/trunk: apacheds-core-unit/pom.xml apacheds-server-unit/pom.xml
Date Sat, 31 Dec 2005 06:49:27 GMT
Author: akarasulu
Date: Fri Dec 30 22:49:25 2005
New Revision: 360255

URL: http://svn.apache.org/viewcvs?rev=360255&view=rev
Log:
Added profiles to enable and disable regression tests.  By default regression 
tests have been disabled.  They can be turned on by using the -Dregressions 
switch when building.  At this point all tests in the core-unit and server-unit
modules are disabled (all are regression tests).  These should be renamed and
the excludes need to be adjusted to just ignore *RegressionTest.java.

Modified:
    directory/trunk/apacheds-core-unit/pom.xml
    directory/trunk/apacheds-server-unit/pom.xml

Modified: directory/trunk/apacheds-core-unit/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunk/apacheds-core-unit/pom.xml?rev=360255&r1=360254&r2=360255&view=diff
==============================================================================
--- directory/trunk/apacheds-core-unit/pom.xml (original)
+++ directory/trunk/apacheds-core-unit/pom.xml Fri Dec 30 22:49:25 2005
@@ -48,5 +48,63 @@
       </plugin>
     </plugins>
   </build>
+
+  <profiles>
+  	<profile>
+  	  <id>no-regression-tests</id>
+  	  <activation>
+  	  	<activeByDefault>true</activeByDefault>
+  	  </activation>
+  	  <build>
+  	    <plugins>
+          <plugin>
+            <artifactId>maven-surefire-plugin</artifactId>
+            <configuration>
+              <excludes>
+                <!-- TODO
+                   Need to rename all regression tests to have Regression
+                   in the name of the test so we can change the exclude below
+                   to only refer to these tests rather than all tests like so:
+                
+                   <exclude>**/*Regression*Test*</exclude>
+                 -->
+                <exclude>**/*Test.java</exclude>
+              </excludes>
+            </configuration>
+          </plugin>
+          <plugin>
+            <artifactId>maven-antrun-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <configuration>
+                  <tasks>
+                    <echo>
+=================================================================
+                          W A R N I N G
+                          -------------
+                  
+Regression tests have been disabled.  To enable regression tests
+run maven with the -Dregressions switch or -P regressions switch.
+=================================================================
+                    </echo>
+                  </tasks>
+                </configuration>
+                <goals>
+                  <goal>run</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+   	    </plugins>
+      </build>
+	</profile>
+  	<profile>
+      <id>regressions</id>
+      <activation>
+        <property><name>regressions</name></property>
+      </activation>
+  	</profile>
+  </profiles>
 </project>
 

Modified: directory/trunk/apacheds-server-unit/pom.xml
URL: http://svn.apache.org/viewcvs/directory/trunk/apacheds-server-unit/pom.xml?rev=360255&r1=360254&r2=360255&view=diff
==============================================================================
--- directory/trunk/apacheds-server-unit/pom.xml (original)
+++ directory/trunk/apacheds-server-unit/pom.xml Fri Dec 30 22:49:25 2005
@@ -46,5 +46,62 @@
       </plugin>
     </plugins>
   </build>
-</project>
 
+  <profiles>
+    <profile>
+      <id>no-regression-tests</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <build>
+        <plugins>
+            <plugin>
+              <artifactId>maven-surefire-plugin</artifactId>
+              <configuration>
+                <excludes>
+                  <!-- TODO
+                     Need to rename all regression tests to have Regression
+                     in the name of the test so we can change the exclude below
+                     to only refer to these tests rather than all tests like so:
+                
+                     <exclude>**/*Regression*Test*</exclude>
+                   -->
+                  <exclude>**/*Test.java</exclude>
+                </excludes>
+              </configuration>
+            </plugin>
+            <plugin>
+              <artifactId>maven-antrun-plugin</artifactId>
+              <executions>
+                <execution>
+                  <phase>validate</phase>
+                  <configuration>
+                    <tasks>
+                      <echo>
+=================================================================
+                          W A R N I N G
+                          -------------
+                  
+Regression tests have been disabled.  To enable regression tests
+run maven with the -Dregressions switch or -P regressions switch.
+=================================================================
+                      </echo>
+                    </tasks>
+                  </configuration>
+                  <goals>
+                    <goal>run</goal>
+                  </goals>
+                </execution>
+              </executions>
+            </plugin>
+         </plugins>
+       </build>
+    </profile>
+    <profile>
+      <id>regressions</id>
+      <activation>
+        <property><name>regressions</name></property>
+      </activation>
+    </profile>
+  </profiles>
+</project>
\ No newline at end of file



Mime
View raw message