Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport xtext repo test #2693

Merged
merged 2 commits into from
Aug 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"));
verifier.verifyErrorFreeLog();
}
}