From 348ba54f56611fbbb467cd4c1c06613e9e6b121b Mon Sep 17 00:00:00 2001 From: jansupol Date: Wed, 3 Apr 2024 11:24:27 +0200 Subject: [PATCH] Add a run-TCK module Signed-off-by: jansupol --- tests/release-test/pom.xml | 4 +- tests/tck-test/README.MD | 26 +++ tests/tck-test/pom.xml | 354 +++++++++++++++++++++++++++++++++++++ 3 files changed, 382 insertions(+), 2 deletions(-) create mode 100644 tests/tck-test/README.MD create mode 100644 tests/tck-test/pom.xml diff --git a/tests/release-test/pom.xml b/tests/release-test/pom.xml index 3a257306..49cc947e 100644 --- a/tests/release-test/pom.xml +++ b/tests/release-test/pom.xml @@ -35,8 +35,8 @@ Tyrus post-release validation tests - 11 - 11 + ${java.version} + ${java.version} 3.8.6 1.7.3 4.5.14 diff --git a/tests/tck-test/README.MD b/tests/tck-test/README.MD new file mode 100644 index 00000000..8ce609c7 --- /dev/null +++ b/tests/tck-test/README.MD @@ -0,0 +1,26 @@ +[//]: # " Copyright (c) 2023 Oracle and/or its affiliates. All rights reserved. " +[//]: # " " +[//]: # " This program and the accompanying materials are made available under the " +[//]: # " terms of the Eclipse Public License v. 2.0, which is available at " +[//]: # " http://www.eclipse.org/legal/epl-2.0. " +[//]: # " " +[//]: # " This Source Code may also be made available under the following Secondary " +[//]: # " Licenses when the conditions for such availability set forth in the " +[//]: # " Eclipse Public License v. 2.0 are satisfied: GNU General Public License, " +[//]: # " version 2 with the GNU Classpath Exception, which is available at " +[//]: # " https://www.gnu.org/software/classpath/license.html. " +[//]: # " " +[//]: # " SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 " + +This module is to run the TCK tests. + +The module can check Tyrus 2.2.x versions. + +Usage: + * Download the TCK bundle from https://download.eclipse.org/ee4j/jakartaee-tck/jakartaee11/staged/eftl/ + * Unzip the bundle and install the module from the bundle (for instance): + * mvn install:install-file -Dfile=./websocket-tck-spec-tests-2.2.0.jar -DgroupId=jakarta.tck -DartifactId=websocket-tck-spec-tests -Dversion=2.2.0 -Dpackaging=jar + * Download javatest from https://github.com/jakartaee/platform-tck/blob/master/lib/javatest.jar and install: + * mvn install:install-file -Dfile=lib/javatest.jar -DgroupId=javatest -DartifactId=javatest -Dversion=5.0 -Dpackaging=jar + * Run the test: + * mvn clean install -Dtyrus.version= [-Pstaging] diff --git a/tests/tck-test/pom.xml b/tests/tck-test/pom.xml new file mode 100644 index 00000000..7170df64 --- /dev/null +++ b/tests/tck-test/pom.xml @@ -0,0 +1,354 @@ + + + + + 4.0.0 + + + org.glassfish.tyrus + tyrus-project + 2.2.99-SNAPSHOT + ../../pom.xml + + + org.glassfish.tyrus.tests + tyrus-tck-test + jar + Tyrus TCK Tests + + Tyrus TCK tests + + + ${java.version} + ${java.version} + 2.2.0-M1 + 8.0.0-M3 + ${project.build.directory}/glassfish8 + 10.0.0 + 5.7.2 + 2.2.0 + websocket-tck-spec-tests + 2.2.0 + + + + + + org.junit + junit-bom + ${junit.jupiter.version} + pom + import + + + org.glassfish.tyrus + tyrus-bom + ${tyrus.version} + pom + import + + + + + + + jakarta-snapshots + https://jakarta.oss.sonatype.org/content/repositories/staging/ + + + + + + org.junit.jupiter + junit-jupiter + ${junit.jupiter.version} + test + + + org.junit.platform + junit-platform-launcher + 1.7.2 + test + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + 1.7.0.Alpha10 + test + + + org.jboss.arquillian.container + arquillian-glassfish-managed-6 + 1.0.0.Alpha1 + test + + + org.hamcrest + hamcrest + 2.2 + test + + + + com.sun.xml.bind + jaxb-impl + 3.0.0 + runtime + + + + jakarta.tck + ${tck.artifactId} + ${tck.version} + test + + + jakarta.tck + websocket-tck-spec-tests + ${tck.version} + test + + + + jakarta.websocket + jakarta.websocket-api + ${jakarta.websocket.version} + test + + + jakarta.websocket + jakarta.websocket-client-api + ${jakarta.websocket.version} + test + + + + jakarta.platform + jakarta.jakartaee-api + ${jakarta.platform.version} + provided + + + + org.glassfish.main.common + simple-glassfish-api + ${glassfish.container.version} + test + + + org.glassfish.main.web + web-core + ${glassfish.container.version} + test + + + + org.glassfish.tyrus + tyrus-container-servlet + provided + + + org.glassfish.tyrus + tyrus-core + provided + + + org.glassfish.tyrus + tyrus-container-grizzly-client + test + + + org.glassfish.tyrus + tyrus-container-jdk-client + test + + + + org.glassfish.hk2 + hk2-locator + 3.0.0 + test + + + + + + + org.apache.maven.plugins + maven-dependency-plugin + 3.2.0 + + + unpack + pre-integration-test + + unpack + + + + + org.glassfish.main.distributions + glassfish + ${glassfish.container.version} + zip + false + ${project.build.directory} + + + + + + copy + pre-integration-test + + copy + + + + + jakarta.websocket + jakarta.websocket-api + ${websocket-api.version} + jar + true + ${modules.dir} + jakarta.websocket-api.jar + + + jakarta.websocket + jakarta.websocket-client-api + ${websocket-api.version} + jar + true + ${modules.dir} + jakarta.websocket-client-api.jar + + + org.glassfish.tyrus + tyrus-client + ${project.version} + jar + true + ${modules.dir} + tyrus-client.jar + + + org.glassfish.tyrus + tyrus-container-glassfish-cdi + ${project.version} + jar + true + ${modules.dir} + tyrus-container-glassfish-cdi.jar + + + org.glassfish.tyrus + tyrus-container-glassfish-ejb + ${project.version} + jar + true + ${modules.dir} + tyrus-container-glassfish-ejb.jar + + + org.glassfish.tyrus + tyrus-container-grizzly-client + ${project.version} + jar + true + ${modules.dir} + tyrus-container-grizzly-client.jar + + + org.glassfish.tyrus + tyrus-container-servlet + ${project.version} + jar + true + ${modules.dir} + tyrus-container-servlet.jar + + + org.glassfish.tyrus + tyrus-core + ${project.version} + jar + true + ${modules.dir} + tyrus-core.jar + + + org.glassfish.tyrus + tyrus-server + ${project.version} + jar + true + ${modules.dir} + tyrus-server.jar + + + org.glassfish.tyrus + tyrus-spi + ${project.version} + jar + true + ${modules.dir} + tyrus-spi.jar + + + + + + + + maven-failsafe-plugin + 3.2.5 + + + gf-tests + + integration-test + verify + + + false + + jakarta.tck:${tck.artifactId} + + + 5 + websockettck + ${glassfish.home} + localhost + 8080 + true + com.sun.ts.tests.websocket.lib.implementation.sun.common.SunRIURL + ${project.build.directory}/jdk11-bundle + ${glassfish.home}/glassfish/modules/jakarta.websocket-api.jar:${project.build.directory}/jdk11-bundle/java.base:${project.build.directory}/jdk11-bundle/java.rmi:${project.build.directory}/jdk11-bundle/java.naming + + + ${glassfish.home} + + + + + + + +