From 7bac79ea266a588722713c46d756af966ee70807 Mon Sep 17 00:00:00 2001 From: Manfred Riem Date: Wed, 28 Aug 2024 17:57:00 -0500 Subject: [PATCH] Fixes #3849 - Setup Jakarta Core Profile 10.0.3 TCK for Piranha Core Profile (#3850) --- .github/workflows/tck-core-profile.yml | 21 +++ .../tck/coreprofile/cdi/cdi-runner/pom.xml | 2 +- .../coreprofile/coreprofile/core-tck/pom.xml | 132 ++++++++++++++++++ .../src/test/resources/arquillian.xml | 9 ++ external/tck/coreprofile/coreprofile/pom.xml | 93 ++++++++++++ external/tck/coreprofile/pom.xml | 1 + 6 files changed, 257 insertions(+), 1 deletion(-) create mode 100644 external/tck/coreprofile/coreprofile/core-tck/pom.xml create mode 100644 external/tck/coreprofile/coreprofile/core-tck/src/test/resources/arquillian.xml create mode 100644 external/tck/coreprofile/coreprofile/pom.xml diff --git a/.github/workflows/tck-core-profile.yml b/.github/workflows/tck-core-profile.yml index fab2446a87..1a4bcf6841 100644 --- a/.github/workflows/tck-core-profile.yml +++ b/.github/workflows/tck-core-profile.yml @@ -67,6 +67,27 @@ jobs: run: | cd external/tck/coreprofile/cdi mvn -B -ntp verify + coreprofile: + runs-on: ${{ matrix.os }} + strategy: + matrix: + java: [ '21' ] + os: [ubuntu-latest] + steps: + - name: Checkout Sources + uses: actions/checkout@v3 + - name: Set up Java ${{ matrix.java }} + uses: actions/setup-java@v3 + with: + cache: 'maven' + distribution: 'temurin' + java-version: ${{ matrix.java }} + - name: Setup for TCK + run: mvn -B -DskipTests=true -ntp install + - name: Run TCK + run: | + cd external/tck/coreprofile/coreprofile + mvn -B -ntp verify jsonb: runs-on: ${{ matrix.os }} strategy: diff --git a/external/tck/coreprofile/cdi/cdi-runner/pom.xml b/external/tck/coreprofile/cdi/cdi-runner/pom.xml index 7cd59a5366..dad1ef95af 100644 --- a/external/tck/coreprofile/cdi/cdi-runner/pom.xml +++ b/external/tck/coreprofile/cdi/cdi-runner/pom.xml @@ -116,7 +116,7 @@ jakarta.enterprise:cdi-tck-core-impl cdi-full,se - 16 + 1 surefire.testng.verbose diff --git a/external/tck/coreprofile/coreprofile/core-tck/pom.xml b/external/tck/coreprofile/coreprofile/core-tck/pom.xml new file mode 100644 index 0000000000..40dd6e6190 --- /dev/null +++ b/external/tck/coreprofile/coreprofile/core-tck/pom.xml @@ -0,0 +1,132 @@ + + + + 4.0.0 + tck + core-runner + 1-SNAPSHOT + jar + Piranha - External - TCK - CoreProfile - Jakarta CDI TCK - Runner + + 24.9.0-SNAPSHOT + + + + + org.jboss.arquillian + arquillian-bom + 1.8.0.Final + test + pom + + + + + + unix + + + unix + + + + + cloud.piranha.arquillian + piranha-arquillian-jarcontainer + ${piranha.version} + test + + + jakarta.ee.tck.coreprofile + core-profile-tck-impl + 10.0.3 + test + + + org.jboss.arquillian.protocol + arquillian-protocol-servlet-jakarta + 1.8.0.Final + test + + + org.jboss.arquillian.junit5 + arquillian-junit5-container + 1.8.0.Final + test + + + org.junit.jupiter + junit-jupiter + 5.11.0 + test + + + org.junit.jupiter + junit-jupiter-api + 5.11.0 + test + + + org.junit.jupiter + junit-jupiter-engine + 5.11.0 + test + + + + org.jboss.resteasy + resteasy-core + 6.1.0.Beta2 + test + + + org.jboss.resteasy + resteasy-client + 6.1.0.Beta2 + test + + + org.jboss.resteasy + resteasy-json-binding-provider + 6.1.0.Beta2 + test + + + org.jboss.resteasy + resteasy-jaxb-provider + 6.1.0.Beta2 + test + + + + + + org.apache.maven.plugins + maven-failsafe-plugin + 3.0.0 + + + verify + + integration-test + verify + + + + + + jakarta.ee.tck.coreprofile:core-profile-tck-impl + + 1 + false + + piranha + + true + + + + + + + diff --git a/external/tck/coreprofile/coreprofile/core-tck/src/test/resources/arquillian.xml b/external/tck/coreprofile/coreprofile/core-tck/src/test/resources/arquillian.xml new file mode 100644 index 0000000000..bf4a6f1bef --- /dev/null +++ b/external/tck/coreprofile/coreprofile/core-tck/src/test/resources/arquillian.xml @@ -0,0 +1,9 @@ + + + + + + diff --git a/external/tck/coreprofile/coreprofile/pom.xml b/external/tck/coreprofile/coreprofile/pom.xml new file mode 100644 index 0000000000..c46a640912 --- /dev/null +++ b/external/tck/coreprofile/coreprofile/pom.xml @@ -0,0 +1,93 @@ + + + + 4.0.0 + + cloud.piranha.external.tck.coreprofile + project + 24.9.0-SNAPSHOT + + piranha-external-tck-coreprofile-jakarta-coreprofile-tck + pom + Piranha - External - TCK - CoreProfile - Jakarta CoreProfile TCK + + ${project.build.directory}/ant + ${project.build.directory}/signature + ${project.build.directory}/tck + ${tck.home}/src/com/sun/ts/tests + + + + + cloud.piranha + bom + ${project.version} + pom + import + + + + + + unix + + + unix + + + + + + org.apache.maven.plugins + maven-antrun-plugin + + + validate + validate + + run + + + + Executing UNIX profile + + + + + + + + + + + + + + + integration-test + integration-test + + run + + + + + + + + + + + + + + + + + diff --git a/external/tck/coreprofile/pom.xml b/external/tck/coreprofile/pom.xml index 3e6b3b9dcc..b24437bfc3 100644 --- a/external/tck/coreprofile/pom.xml +++ b/external/tck/coreprofile/pom.xml @@ -19,6 +19,7 @@ annotations atinject cdi + coreprofile jsonb jsonp