Skip to content

Commit

Permalink
Add integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
tivervac authored and laeubi committed Aug 1, 2023
1 parent 22b713c commit 0d47daf
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 0 deletions.
52 changes: 52 additions & 0 deletions tycho-its/projects/brokenp2data/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- The main pom used by all plugins, except the test plugins. See pom-test.xml -->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<groupId>tycho-its-project.maven.brokenp2data</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>

<packaging>pom</packaging>

<modules>
<module>tycho-its-project.maven.brokenp2data.feature/pom.xml</module>
</modules>

<build>
<plugins>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>${tycho-version}</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-packaging-plugin</artifactId>
<version>${tycho-version}</version>
<configuration>
<deployableFeature>true</deployableFeature>
</configuration>
</plugin>
</plugins>
</build>

<repositories>
<repository>
<id>tmf</id>
<url>https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.29.0</url>
<layout>p2</layout>
</repository>
<repository>
<id>mwe2</id>
<url>https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.14.0</url>
<layout>p2</layout>
</repository>
<repository>
<id>2021-03</id>
<url>https://download.eclipse.org/releases/2021-03/</url>
<layout>p2</layout>
</repository>
</repositories>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<feature
id="feature"
version="1.0.0.qualifier">

<includes id="org.eclipse.emf.mwe2.language.sdk" version="0.0.0" />

<includes id="org.eclipse.emf.mwe2.runtime.sdk" version="0.0.0" />

<includes id="org.eclipse.xtext.sdk" version="2.29.0.qualifier" />
</feature>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>

<groupId>tycho-its-project.maven.brokenp2data</groupId>
<artifactId>feature</artifactId>
<version>1.0.0-SNAPSHOT</version>

<parent>
<groupId>tycho-its-project.maven.brokenp2data</groupId>
<artifactId>parent</artifactId>
<version>1.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<packaging>eclipse-feature</packaging>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package org.eclipse.tycho.test.brokenp2data;

import java.util.List;

import org.apache.maven.it.Verifier;
import org.eclipse.tycho.test.AbstractTychoIntegrationTest;
import org.junit.Test;

// See #2625
public class BrokenP2DataTest extends AbstractTychoIntegrationTest {

@Test
public void test() throws Exception {
Verifier verifier = getVerifier("brokenp2data");

verifier.executeGoals(List.of("clean", "verify", "-Dtycho-version=3.0.5"));
verifier.verifyErrorFreeLog();
}
}

0 comments on commit 0d47daf

Please sign in to comment.