From 2ba136849a45fee06532b4533a1e4ff7924a439a Mon Sep 17 00:00:00 2001 From: Jason Faust Date: Sat, 26 Mar 2022 23:55:15 -0400 Subject: [PATCH] Minimal test for issue 230 --- .../pom.xml | 30 +++++++++++++++++++ .../src/main/java/ex/A.java | 2 ++ .../src/main/java/module-info.java | 1 + .../src/test/java/ex/ATest.java | 2 ++ .../compiler/MavenCompilerPluginTest.java | 7 +++++ 5 files changed, 42 insertions(+) create mode 100644 tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/pom.xml create mode 100644 tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/ex/A.java create mode 100644 tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/module-info.java create mode 100644 tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/test/java/ex/ATest.java diff --git a/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/pom.xml b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/pom.xml new file mode 100644 index 0000000000..8af2e8b2ea --- /dev/null +++ b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/pom.xml @@ -0,0 +1,30 @@ + + 4.0.0 + tycho-its-project.compiler.mavenCompilerPlugin.moduleWithTests + c.m.m + 0.0.1-SNAPSHOT + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.10.1 + + jdt + 11 + 11 + 11 + + + + org.eclipse.tycho + tycho-compiler-jdt + ${tycho-version} + + + + + + + \ No newline at end of file diff --git a/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/ex/A.java b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/ex/A.java new file mode 100644 index 0000000000..89537b5e3b --- /dev/null +++ b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/ex/A.java @@ -0,0 +1,2 @@ +package ex; +public class A {} \ No newline at end of file diff --git a/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/module-info.java b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/module-info.java new file mode 100644 index 0000000000..8d4c35cf59 --- /dev/null +++ b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/main/java/module-info.java @@ -0,0 +1 @@ +module ex {} \ No newline at end of file diff --git a/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/test/java/ex/ATest.java b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/test/java/ex/ATest.java new file mode 100644 index 0000000000..fd09f60793 --- /dev/null +++ b/tycho-its/projects/compiler.mavenCompilerPlugin.moduleWithTests/src/test/java/ex/ATest.java @@ -0,0 +1,2 @@ +package ex; +class ATest {} \ No newline at end of file diff --git a/tycho-its/src/test/java/org/eclipse/tycho/test/compiler/MavenCompilerPluginTest.java b/tycho-its/src/test/java/org/eclipse/tycho/test/compiler/MavenCompilerPluginTest.java index 568ab6219a..596b319e66 100644 --- a/tycho-its/src/test/java/org/eclipse/tycho/test/compiler/MavenCompilerPluginTest.java +++ b/tycho-its/src/test/java/org/eclipse/tycho/test/compiler/MavenCompilerPluginTest.java @@ -34,6 +34,13 @@ public void testJDTCompilerId() throws Exception { } } + @Test + public void testMavenCompilerPluginModuleWithTests() throws Exception { + Verifier verifier = getVerifier("compiler.mavenCompilerPlugin.moduleWithTests", false); + verifier.executeGoal("verify"); + verifier.verifyErrorFreeLog(); + } + @Test public void testAdditionalBundles() throws Exception { Verifier verifier = getVerifier("compiler.additional.bundles", true);