aboutsummaryrefslogtreecommitdiff
path: root/buildScripts/tests.ant.xml
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 00:40:22 +0100
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2023-01-12 00:40:22 +0100
commit073ec78dd523e6108f18325f321204912b311f26 (patch)
treedaf106051643d435f734e7425dd4fe8767149f78 /buildScripts/tests.ant.xml
parentc16f6e90849ea2186adc6f81c0303b1d0720ffc0 (diff)
parentffd364b964e671eac8fb6ae700834d5d977b5b00 (diff)
downloadlombok-073ec78dd523e6108f18325f321204912b311f26.tar.gz
lombok-073ec78dd523e6108f18325f321204912b311f26.tar.bz2
lombok-073ec78dd523e6108f18325f321204912b311f26.zip
Merge branch 'Rawi01-eclipse-tests'
Diffstat (limited to 'buildScripts/tests.ant.xml')
-rw-r--r--buildScripts/tests.ant.xml50
1 files changed, 50 insertions, 0 deletions
diff --git a/buildScripts/tests.ant.xml b/buildScripts/tests.ant.xml
index 0eeff097..f20f76ae 100644
--- a/buildScripts/tests.ant.xml
+++ b/buildScripts/tests.ant.xml
@@ -55,6 +55,24 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn
</ivy:compile>
</target>
+ <target name="test.eclipse.compile" depends="deps.eclipse.oxygen, compile" description="compiles the eclipse tests" unless="skip.tests">
+ <mkdir dir="build/tests" />
+ <path id="cp.eclipse">
+ <fileset dir="testenv/eclipse-oxygen/plugins">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+ <ivy:compile destdir="build/tests" source="1.8" target="1.8" ecj="true" nowarn="true">
+ <bootclasspath path="${jdk8-rt.loc}" />
+ <classpath refid="cp.eclipse" />
+ <classpath refid="cp.test" />
+ <classpath refid="cp.javac8" />
+ <classpath refid="packing.basedirs.path" />
+ <classpath path="build/tests" />
+ <src path="test/eclipse/src" />
+ </ivy:compile>
+ </target>
+
<target name="test.ecj11.call" depends="deps, dist" description="Runs a few ecj-specific tests" unless="skip.tests">
<java jar="lib/ecj11/org.eclipse.jdt-ecj.jar" fork="true" failonerror="true">
<jvmarg value="-javaagent:dist/lombok.jar=ecj" />
@@ -195,6 +213,38 @@ This buildfile is part of projectlombok.org. It takes care of compiling and runn
<test.eclipse-X version="202006" compiler.compliance.level="8" />
</target>
+ <macrodef name="test.eclipse-X-full">
+ <attribute name="version" />
+ <sequential>
+ <path id="cp.eclipse-@{version}">
+ <fileset dir="testenv/eclipse-@{version}/plugins">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+ <echo>Running EclipseTests on eclipse-@{version} on JVM${ant.java.version}</echo>
+ <junit haltonfailure="yes" fork="true" forkmode="once">
+ <formatter classname="lombok.ant.SimpleTestFormatter" usefile="false" unless="tests.quiet" />
+ <jvmarg value="-javaagent:dist/lombok.jar" />
+ <jvmarg value="-Dlombok.testenv=testenv/eclipse-@{version}" />
+ <classpath refid="cp.eclipse-@{version}" />
+ <classpath location="build/ant" />
+ <classpath refid="cp.test" />
+ <classpath refid="cp.eclipse-@{version}" />
+ <classpath refid="packing.basedirs.path" />
+ <classpath location="build/tests" />
+ <test name="lombok.eclipse.EclipseTests" />
+ </junit>
+ </sequential>
+ </macrodef>
+
+ <target name="test.eclipse-oxygen-full" depends="test.formatter.compile, test.eclipse.compile, deps.eclipse.oxygen" description="runs the full eclipse tests on your default VM, testing the oxygen release of eclipse">
+ <test.eclipse-X-full version="oxygen" />
+ </target>
+
+ <target name="test.eclipse-2022-03-full" depends="test.formatter.compile, test.eclipse.compile, deps.eclipse.2022-03" description="runs the full eclipse tests on your default VM, testing the 2022-03 release of eclipse">
+ <test.eclipse-X-full version="2022-03" />
+ </target>
+
<macrodef name="test.ecj-X">
<attribute name="version" />
<sequential>