You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2009/02/22 16:37:07 UTC
svn commit: r746737 - in /incubator/sling/trunk: ./ contrib/
launchpad/testing/
launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/apt/
launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcr...
Author: cziegeler
Date: Sun Feb 22 15:37:06 2009
New Revision: 746737
URL: http://svn.apache.org/viewvc?rev=746737&view=rev
Log:
SLING-865 : Remove contrib tests.
Removed:
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/apt/
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/HttpPingTest.java
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/InstallClonedBundlesTest.java
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/JcrinstallTestBase.java
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/StopAndChangeBundlesTest.java
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/StopAndRestartTest.java
incubator/sling/trunk/launchpad/testing/src/test/java/org/apache/sling/launchpad/webapp/integrationtest/jcrinstall/util/
incubator/sling/trunk/launchpad/testing/src/test/resources/integration-test/apt/
Modified:
incubator/sling/trunk/contrib/pom.xml
incubator/sling/trunk/launchpad/testing/pom.xml
incubator/sling/trunk/pom.xml
Modified: incubator/sling/trunk/contrib/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/contrib/pom.xml?rev=746737&r1=746736&r2=746737&view=diff
==============================================================================
--- incubator/sling/trunk/contrib/pom.xml (original)
+++ incubator/sling/trunk/contrib/pom.xml Sun Feb 22 15:37:06 2009
@@ -77,4 +77,18 @@
<module>scripting/velocity</module>
<module>launchpad/jcrapp</module>
</modules>
+ <profiles>
+ <profile>
+ <!--
+ Allow the integration tests to be excluded, as they might be slow
+ -->
+ <id>integrationTests</id>
+ <activation>
+ <activeByDefault>true</activeByDefault>
+ </activation>
+ <modules>
+ <module>launchpad/testing</module>
+ </modules>
+ </profile>
+ </profiles>
</project>
Modified: incubator/sling/trunk/launchpad/testing/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/launchpad/testing/pom.xml?rev=746737&r1=746736&r2=746737&view=diff
==============================================================================
--- incubator/sling/trunk/launchpad/testing/pom.xml (original)
+++ incubator/sling/trunk/launchpad/testing/pom.xml Sun Feb 22 15:37:06 2009
@@ -81,35 +81,7 @@
-->
<integration.test.wait>false</integration.test.wait>
- <!--
- Defines the part of the tree, which must not be compiled in
- normal test scenarios. The jcrinstall-tests profile will
- compile these classes to be included in a full-test scenario.
- -->
- <jcrinstall.integration.test.code.path>
- **/jcrinstall/**
- </jcrinstall.integration.test.code.path>
-
<resources.bundles.path>${project.build.directory}/launchpad-bundles/resources/bundles</resources.bundles.path>
-
- <!--
- Where to copy our test bundles
- Used when profile jcrinstall-tests is active.
- -->
- <jcrinstall.start.level>0</jcrinstall.start.level>
- <sling.testbundles.path>${resources.bundles.path}/${jcrinstall.start.level}</sling.testbundles.path>
-
- <!--
- Can be used to run tests with more or less bundles
- Used when profile jcrinstall-tests is active
- -->
- <sling.test.scale.factor>1</sling.test.scale.factor>
-
- <!--
- How long to wait for the expected number of bundles to be active, in tests
- Used when profile jcrinstall-tests is active
- -->
- <sling.test.bundles.wait.seconds>20</sling.test.bundles.wait.seconds>
</properties>
<build>
@@ -245,25 +217,6 @@
</executions>
</plugin>
- <!--
- Exclude the JCRInstall test classes from default build
- See jcrinstall-tests for the setup of compilation of these
- classes for a full test
- -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <sumpf>gurk</sumpf>
- <testExcludes>
- <testExclude>
- ${jcrinstall.integration.test.code.path}
- </testExclude>
- </testExcludes>
- <verbose>true</verbose>
- </configuration>
- </plugin>
-
<!--
Include sling-app launcher classes and resources, but no Sling
bundles (we want to specify our own versions)
@@ -318,20 +271,6 @@
http://${test.host}:${http.port}/${webdav.workspace.path}
</value>
</property>
-
- <!-- system properties used for profile jcrinstall-tests -->
- <property>
- <name>sling.testbundles.path</name>
- <value>${sling.testbundles.path}</value>
- </property>
- <property>
- <name>sling.test.scale.factor</name>
- <value>${sling.test.scale.factor}</value>
- </property>
- <property>
- <name>sling.test.bundles.wait.seconds</name>
- <value>${sling.test.bundles.wait.seconds}</value>
- </property>
</systemProperties>
</configuration>
</plugin>
@@ -418,19 +357,6 @@
</value>
</property>
- <!-- system properties used for profile jcrinstall-tests -->
- <property>
- <name>sling.testbundles.path</name>
- <value>${sling.testbundles.path}</value>
- </property>
- <property>
- <name>sling.test.scale.factor</name>
- <value>${sling.test.scale.factor}</value>
- </property>
- <property>
- <name>sling.test.bundles.wait.seconds</name>
- <value>${sling.test.bundles.wait.seconds}</value>
- </property>
</systemProperties>
</configuration>
</execution>
@@ -510,97 +436,7 @@
</plugin>
</plugins>
</build>
- </profile>
-
- <!--
- The jcrinstall-tests profile includes the integration tests
- for the JCRInstall functionality in the integration tests. By
- default this profile is disabled.
- For CI builds it is recommended to activate this profile, for
- normal builds you may omit this profile
- -->
- <profile>
- <id>jcrinstall-tests</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-jcrinstall-dependencies</id>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>
- ${resources.bundles.path}/${jcrinstall.start.level}
- </outputDirectory>
- <excludeTransitive>true</excludeTransitive>
- <includeArtifactIds>
- org.apache.sling.jcr.jcrinstall,org.apache.sling.jcr.jcrinstall.testbundles.observer,org.apache.sling.jcr.jcrinstall.servlet,org.apache.sling.runmode
- </includeArtifactIds>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <executions>
- <execution>
- <id>compile-jcrinstall-tests</id>
- <goals>
- <goal>testCompile</goal>
- </goals>
- <configuration>
- <testIncludes>
- <testInclude>
- ${jcrinstall.integration.test.code.path}
- </testInclude>
- </testIncludes>
- <!-- overwrite global setting here -->
- <testExcludes>
- <testExclude>
- dummymarker
- </testExclude>
- </testExcludes>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.jcr.jcrinstall</artifactId>
- <version>2.0.3-incubator-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.jcr.jcrinstall.testbundles.observer</artifactId>
- <version>2.0.3-incubator-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.jcr.jcrinstall.servlet</artifactId>
- <version>2.0.3-incubator-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.runmode</artifactId>
- <version>2.0.3-incubator-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
- </dependencies>
- </profile>
+ </profile>
</profiles>
<dependencies>
@@ -624,14 +460,6 @@
<optional>true</optional>
</dependency>
- <!-- additional bundles for integration tests -->
- <dependency>
- <groupId>org.apache.sling</groupId>
- <artifactId>org.apache.sling.scripting.python</artifactId>
- <version>2.0.3-incubator-SNAPSHOT</version>
- <scope>provided</scope>
- </dependency>
-
<!-- JCR Install - needs to be in a profile -->
<dependency>
<groupId>org.apache.felix</groupId>
Modified: incubator/sling/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/pom.xml?rev=746737&r1=746736&r2=746737&view=diff
==============================================================================
--- incubator/sling/trunk/pom.xml (original)
+++ incubator/sling/trunk/pom.xml Sun Feb 22 15:37:06 2009
@@ -148,7 +148,7 @@
-->
<id>integrationTests</id>
<activation>
- <activeByDefault>false</activeByDefault>
+ <activeByDefault>true</activeByDefault>
</activation>
<modules>
<module>launchpad/testing</module>