You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2007/09/24 03:31:24 UTC

svn commit: r578617 - in /maven/components/trunk: ./ maven-core-it-runner/ maven-core-it-runner/src/ maven-core-it-runner/src/test/ maven-core-it-runner/src/test/java/ maven-core-it-runner/src/test/java/org/ maven-core-it-runner/src/test/java/org/apach...

Author: brett
Date: Sun Sep 23 18:31:22 2007
New Revision: 578617

URL: http://svn.apache.org/viewvc?rev=578617&view=rev
Log:
utilise the bundled integration tests and add an optional module to be able to run against the just-built Maven

Added:
    maven/components/trunk/maven-core-it-runner/   (with props)
    maven/components/trunk/maven-core-it-runner/pom.xml   (with props)
    maven/components/trunk/maven-core-it-runner/src/
    maven/components/trunk/maven-core-it-runner/src/test/
    maven/components/trunk/maven-core-it-runner/src/test/java/
    maven/components/trunk/maven-core-it-runner/src/test/java/org/
    maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/
    maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/
    maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/
    maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java   (with props)
Modified:
    maven/components/trunk/pom.xml

Propchange: maven/components/trunk/maven-core-it-runner/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Sun Sep 23 18:31:22 2007
@@ -0,0 +1,6 @@
+target
+*.iml
+*.ipr
+*.iws
+.project
+.classpath

Added: maven/components/trunk/maven-core-it-runner/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-it-runner/pom.xml?rev=578617&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it-runner/pom.xml (added)
+++ maven/components/trunk/maven-core-it-runner/pom.xml Sun Sep 23 18:31:22 2007
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <parent>
+    <artifactId>maven</artifactId>
+    <groupId>org.apache.maven</groupId>
+    <version>2.1-SNAPSHOT</version>
+  </parent>
+  <artifactId>maven-core-it-runner</artifactId>
+  <dependencies>
+    <dependency>
+      <groupId>org.apache.maven</groupId>
+      <artifactId>maven-embedder</artifactId>
+      <version>2.1-SNAPSHOT</version>
+      <classifier>bin</classifier>
+      <type>tar.gz</type>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.maven.its</groupId>
+      <artifactId>core-integration-tests</artifactId>
+      <version>2.1-SNAPSHOT</version>
+      <classifier>tests</classifier>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-surefire-plugin</artifactId>
+        <version>2.3</version>
+        <configuration>
+          <systemProperties>
+            <property>
+              <name>maven.home</name>
+              <value>${basedir}/target/maven-installation/apache-maven-${project.version}</value>
+            </property>
+          </systemProperties>
+          <includes>
+            <include>**/Suite.java</include>
+          </includes>
+        </configuration>
+      </plugin>
+      <plugin>
+        <artifactId>maven-dependency-plugin</artifactId>
+        <executions>
+          <execution>
+            <configuration>
+              <artifactItems>
+                <artifactItem>
+                  <groupId>org.apache.maven</groupId>
+                  <artifactId>maven-embedder</artifactId>
+                  <version>${project.version}</version>
+                  <classifier>bin</classifier>
+                  <type>tar.gz</type>
+                </artifactItem>
+              </artifactItems>
+              <outputDirectory>target/maven-installation</outputDirectory>
+            </configuration>
+            <goals>
+              <goal>unpack</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <artifactId>maven-antrun-plugin</artifactId>
+        <executions>
+          <execution>
+            <configuration>
+              <tasks>
+                <chmod file="${basedir}/target/maven-installation/apache-maven-${project.version}/bin/mvn" perm="755"/>
+              </tasks>
+            </configuration>
+            <phase>process-sources</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+          </execution>
+        </executions>
+      </plugin>
+    </plugins>
+  </build>
+</project>

Propchange: maven/components/trunk/maven-core-it-runner/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Added: maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java?rev=578617&view=auto
==============================================================================
--- maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java (added)
+++ maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java Sun Sep 23 18:31:22 2007
@@ -0,0 +1,16 @@
+package org.apache.maven.its;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import org.apache.maven.integrationtests.IntegrationTestSuite;
+import org.apache.maven.it.VerificationException;
+
+public class Suite
+    extends TestCase
+{
+    public static Test suite()
+        throws VerificationException
+    {
+        return IntegrationTestSuite.suite();
+    }
+}

Propchange: maven/components/trunk/maven-core-it-runner/src/test/java/org/apache/maven/its/Suite.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: maven/components/trunk/pom.xml
URL: http://svn.apache.org/viewvc/maven/components/trunk/pom.xml?rev=578617&r1=578616&r2=578617&view=diff
==============================================================================
--- maven/components/trunk/pom.xml (original)
+++ maven/components/trunk/pom.xml Sun Sep 23 18:31:22 2007
@@ -259,6 +259,12 @@
         </plugins>
       </build>
     </profile>
+    <profile>
+      <id>run-its</id>
+      <modules>
+        <module>maven-core-it-runner</module>
+      </modules>
+    </profile>
   </profiles>
   
 </project>