From fccc4359c0250c906ede8f6a1f924c7fe6b4cfed Mon Sep 17 00:00:00 2001 From: Tobias Hahnen Date: Tue, 31 Oct 2023 12:32:43 +0100 Subject: [PATCH] Issue 2937: Integration test --- .../issue2937/bundle/META-INF/MANIFEST.MF | 8 +++ .../issue2937/bundle/build.properties | 3 + tycho-its/projects/issue2937/bundle/pom.xml | 15 +++++ tycho-its/projects/issue2937/pom.xml | 57 +++++++++++++++++++ .../issue2937/target-platform/pom.xml | 15 +++++ .../target-platform/target-platform.target | 17 ++++++ .../tycho/test/issue2937/Issue2937Test.java | 16 ++++++ 7 files changed, 131 insertions(+) create mode 100644 tycho-its/projects/issue2937/bundle/META-INF/MANIFEST.MF create mode 100644 tycho-its/projects/issue2937/bundle/build.properties create mode 100644 tycho-its/projects/issue2937/bundle/pom.xml create mode 100644 tycho-its/projects/issue2937/pom.xml create mode 100644 tycho-its/projects/issue2937/target-platform/pom.xml create mode 100644 tycho-its/projects/issue2937/target-platform/target-platform.target create mode 100644 tycho-its/src/test/java/org/eclipse/tycho/test/issue2937/Issue2937Test.java diff --git a/tycho-its/projects/issue2937/bundle/META-INF/MANIFEST.MF b/tycho-its/projects/issue2937/bundle/META-INF/MANIFEST.MF new file mode 100644 index 0000000000..7e050ab6a3 --- /dev/null +++ b/tycho-its/projects/issue2937/bundle/META-INF/MANIFEST.MF @@ -0,0 +1,8 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: bundle +Bundle-SymbolicName: bundle +Bundle-Version: 1.0.0.qualifier +Bundle-RequiredExecutionEnvironment: JavaSE-11 +Automatic-Module-Name: bundle +Require-Bundle: org.python.pydev diff --git a/tycho-its/projects/issue2937/bundle/build.properties b/tycho-its/projects/issue2937/bundle/build.properties new file mode 100644 index 0000000000..b107977f4e --- /dev/null +++ b/tycho-its/projects/issue2937/bundle/build.properties @@ -0,0 +1,3 @@ +source.. = src/ +bin.includes = META-INF/,\ + . diff --git a/tycho-its/projects/issue2937/bundle/pom.xml b/tycho-its/projects/issue2937/bundle/pom.xml new file mode 100644 index 0000000000..9bb3e2e083 --- /dev/null +++ b/tycho-its/projects/issue2937/bundle/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + + tycho-its-project + issue2937 + 1.0.0-SNAPSHOT + + + bundle + 1.0.0-SNAPSHOT + eclipse-plugin + diff --git a/tycho-its/projects/issue2937/pom.xml b/tycho-its/projects/issue2937/pom.xml new file mode 100644 index 0000000000..84e63739bf --- /dev/null +++ b/tycho-its/projects/issue2937/pom.xml @@ -0,0 +1,57 @@ + + 4.0.0 + tycho-its-project + issue2937 + 1.0.0-SNAPSHOT + pom + + + target-platform + bundle + + + + 11 + 11 + + + + + + org.eclipse.tycho + tycho-maven-plugin + ${tycho-version} + true + + + org.eclipse.tycho + tycho-versions-plugin + ${tycho-version} + + + org.eclipse.tycho + tycho-compiler-plugin + ${tycho-version} + + + org.eclipse.tycho + tycho-packaging-plugin + ${tycho-version} + + + org.eclipse.tycho + target-platform-configuration + ${tycho-version} + + + + tycho-its-project + target-platform + 1.0.0-SNAPSHOT + + + + + + + diff --git a/tycho-its/projects/issue2937/target-platform/pom.xml b/tycho-its/projects/issue2937/target-platform/pom.xml new file mode 100644 index 0000000000..a167f2c1e1 --- /dev/null +++ b/tycho-its/projects/issue2937/target-platform/pom.xml @@ -0,0 +1,15 @@ + + + 4.0.0 + + + tycho-its-project + issue2937 + 1.0.0-SNAPSHOT + + + target-platform + 1.0.0-SNAPSHOT + eclipse-target-definition + diff --git a/tycho-its/projects/issue2937/target-platform/target-platform.target b/tycho-its/projects/issue2937/target-platform/target-platform.target new file mode 100644 index 0000000000..5ede9dd6bf --- /dev/null +++ b/tycho-its/projects/issue2937/target-platform/target-platform.target @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/issue2937/Issue2937Test.java b/tycho-its/src/test/java/org/eclipse/tycho/test/issue2937/Issue2937Test.java new file mode 100644 index 0000000000..31daa87952 --- /dev/null +++ b/tycho-its/src/test/java/org/eclipse/tycho/test/issue2937/Issue2937Test.java @@ -0,0 +1,16 @@ +package org.eclipse.tycho.test.issue2937; + +import java.util.List; +import org.apache.maven.it.Verifier; +import org.eclipse.tycho.test.AbstractTychoIntegrationTest; +import org.junit.Test; + +public class Issue2937Test extends AbstractTychoIntegrationTest { + @Test + public void test() throws Exception { + Verifier verifier = getVerifier("issue2937"); + + verifier.executeGoals(List.of("clean", "verify")); + verifier.verifyErrorFreeLog(); + } +}