Skip to content

Commit

Permalink
Changes to jenkinsfile and existing test annotations
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Stryker <stryker@redhat.com>
  • Loading branch information
Rob Stryker committed Sep 11, 2024
1 parent 14c7c45 commit bb60fe1
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ pipeline {
# Build and test without DOM-first to ensure no regression takes place
mvn -U clean verify --batch-mode --fail-at-end -Dmaven.repo.local=$WORKSPACE/.m2/repository \
-Ptest-on-javase-23 -Pbree-libs -Papi-check -Pjavadoc -Pp2-repo \
-DexcludedGroups=org.eclipse.jdt.core.tests.javac.JavacTestIgnore \
-Dmaven.test.failure.ignore=true \
-Dcompare-version-with-baselines.skip=false \
-Djava.io.tmpdir=$WORKSPACE/tmp -Dproject.build.sourceEncoding=UTF-8 \
Expand Down
2 changes: 1 addition & 1 deletion org.eclipse.jdt.core.tests.model/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Export-Package: org.eclipse.jdt.core.tests,
Require-Bundle: org.eclipse.core.resources;bundle-version="[3.2.0,4.0.0)",
org.eclipse.core.runtime;bundle-version="[3.29.0,4.0.0)",
org.eclipse.jdt.core;bundle-version="[3.38.0,4.0.0)",
org.junit;bundle-version="3.8.1",
org.junit;bundle-version="4.13.2",
org.eclipse.test.performance;bundle-version="[3.1.0,4.0.0)",
org.eclipse.jdt.core.tests.compiler;bundle-version="[3.4.0,4.0.0)",
org.eclipse.jdt.compiler.apt.tests;bundle-version="[1.0.0,2.0.0)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
import org.eclipse.jdt.core.tests.javac.JavacTestIgnore;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
import org.eclipse.jdt.internal.compiler.parser.ScannerHelper;
import org.junit.experimental.categories.Category;

import junit.framework.Test;
import junit.framework.TestSuite;
Expand Down Expand Up @@ -1953,7 +1954,7 @@ public void testBug53276() throws JavaModelException {
/**
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=53075"
*/
@JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
public void testBug53075() throws JavaModelException {
ICompilationUnit unit = getCompilationUnit("Converter" , "src", "javadoc.testBug53075", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
boolean pb = this.packageBinding;
Expand Down Expand Up @@ -2005,7 +2006,7 @@ public void testBug51617() throws JavaModelException {
this.stopOnFailure = true;
}

@JavacTestIgnore(cause=JavacTestIgnore.JDT_BEHAVIOR_STRANGE)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_BEHAVIOR_STRANGE)
public void testBug54424() throws JavaModelException {
this.stopOnFailure = false;
String [] unbound = { "tho",
Expand Down Expand Up @@ -2040,7 +2041,7 @@ public void testBug63044() throws JavaModelException {
/**
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=51660"
*/
@JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
public void testBug51660() throws JavaModelException {
this.stopOnFailure = false;
ICompilationUnit unit = getCompilationUnit("Converter" , "src", "javadoc.testBug51660", "Test.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
Expand Down Expand Up @@ -2133,7 +2134,7 @@ public void testBug51660() throws JavaModelException {
* Bug 65174: Spurious "Javadoc: Missing reference" error
* @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=65174"
*/
@JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
public void testBug65174() throws JavaModelException {
verifyComments("testBug65174");
}
Expand All @@ -2142,7 +2143,7 @@ public void testBug65174() throws JavaModelException {
* Bug 65253: [Javadoc] @@tag is wrongly parsed as @tag
* @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=65253"
*/
@JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
// See https://docs.oracle.com/en/java/javase/22/docs/specs/javadoc/doc-comment-spec.html
//@@, to represent @, to prevent it from being interpreted as part of the introduction of a block or inline tag,
public void testBug65253() throws JavaModelException {
Expand Down Expand Up @@ -2210,14 +2211,14 @@ public void testBug68726() throws JavaModelException {
* @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=70892"
* @deprecated using deprecated code
*/
@JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
public void testBug70892_JLS2() throws JavaModelException {
int level = this.astLevel;
this.astLevel = AST.JLS2;
verifyComments("testBug70892");
this.astLevel = level;
}
@JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
public void testBug70892_JLS3() throws JavaModelException {
int level = this.astLevel;
this.astLevel = getJLS3();
Expand Down Expand Up @@ -2317,7 +2318,7 @@ public void testBug79904() throws JavaModelException {
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=80221"
*/
// Resolving "Object" should not be controversial since it is a well known type
@JavacTestIgnore(cause=JavacTestIgnore.VALID_ALTERNATIVE_IMPL)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.VALID_ALTERNATIVE_IMPL)
public void testBug80221() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.astLevel = getJLS3();
Expand Down Expand Up @@ -2574,7 +2575,7 @@ public void testBug93880_15b() throws JavaModelException {
}
}

@JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
public void testBug93880_15c() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.astLevel = getJLS3();
Expand Down Expand Up @@ -2792,7 +2793,7 @@ public void testBug94150() throws JavaModelException {
* Bug 99507: [javadoc] Infinit loop in DocCommentParser
* @see "http://bugs.eclipse.org/bugs/show_bug.cgi?id=99507"
*/
@JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_VIOLATES_SPEC)
public void testBug99507() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.workingCopies[0] = getWorkingCopy("/Converter15/src/javadoc/b99507/X.java",
Expand Down Expand Up @@ -2979,7 +2980,7 @@ public void testBug100041c() throws JavaModelException {
// Syntax like @See I.VE#I.VE(params) is not allowed by javac, specifically
// the dot in the method name is not allowed and causes a DCErroneous
// See https://docs.oracle.com/javase/7/docs/technotes/tools/windows/javadoc.html#see
@JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.JDT_RECOVERS_FROM_BAD_INPUTS)
public void testBug103304() throws JavaModelException {
this.packageBinding = false; // do NOT verify that qualification only can be package name
this.workingCopies = new ICompilationUnit[1];
Expand Down Expand Up @@ -3289,7 +3290,7 @@ public void testBug125676() throws JavaModelException {
* bug125903: [javadoc] Treat whitespace in javadoc tags as invalid tags
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=125903"
*/
@JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
public void testBug125903() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.astLevel = getJLS3();
Expand Down Expand Up @@ -3447,7 +3448,7 @@ public void testBug228648() throws JavaModelException {
verifyComments(unit);
}
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=196714
@JavacTestIgnore(cause=JavacTestIgnore.VALID_ALTERNATIVE_IMPL)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.VALID_ALTERNATIVE_IMPL)
public void test109() throws JavaModelException {
verifyComments("test109");
}
Expand Down Expand Up @@ -3535,7 +3536,7 @@ public void testBug481143c() throws JavaModelException {
* @see "https://bugs.eclipse.org/bugs/show_bug.cgi?id=206345"
* @deprecated
*/
@JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
public void testBug206345a() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.astLevel = AST.JLS3;
Expand Down Expand Up @@ -3583,7 +3584,7 @@ public void testBug206345a() throws JavaModelException {
*
* @deprecated
*/
@JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
@Category(value=JavacTestIgnore.class) @JavacTestIgnore(cause=JavacTestIgnore.TESTS_SPECIFIC_RESULT_FOR_UNDEFINED_BEHAVIOR)
public void testBug206345b() throws JavaModelException {
this.workingCopies = new ICompilationUnit[1];
this.astLevel = AST.JLS3;
Expand Down

0 comments on commit bb60fe1

Please sign in to comment.