Skip to content

Commit

Permalink
Merge pull request #259 from arjantijms/tck_302_web_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
arjantijms authored Jul 28, 2022
2 parents 8035a8d + a20fcd1 commit 6d695da
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 36 deletions.
35 changes: 7 additions & 28 deletions tck-dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<parent>
<groupId>jakarta.enterprise.concurrent</groupId>
<artifactId>jakarta.enterprise.concurrent.parent</artifactId>
<version>3.0.1-SNAPSHOT</version>
<version>3.0.2-SNAPSHOT</version>
</parent>

<artifactId>jakarta.enterprise.concurrent-tck-dist</artifactId>
Expand All @@ -45,8 +45,7 @@
</licenses>

<properties>
<jakarta.concurrent.version.ga>3.0.1</jakarta.concurrent.version.ga>
<jakarta.concurrent.version.dev>${project.version}</jakarta.concurrent.version.dev>
<jakarta.concurrent.tck.version>${project.version}</jakarta.concurrent.tck.version>

<maven.site.skip>true</maven.site.skip>
<asciidoctor.maven.plugin.version>2.2.2</asciidoctor.maven.plugin.version>
Expand All @@ -59,12 +58,12 @@
<dependency>
<groupId>jakarta.enterprise.concurrent</groupId>
<artifactId>jakarta.enterprise.concurrent-tck</artifactId>
<version>${jakarta.concurrent.version.ga}</version>
<version>${jakarta.concurrent.tck.version}</version>
</dependency>
<dependency>
<groupId>jakarta.enterprise.concurrent</groupId>
<artifactId>jakarta.enterprise.concurrent.parent</artifactId>
<version>${jakarta.concurrent.version.ga}</version>
<version>${jakarta.concurrent.tck.version}</version>
<type>pom</type>
</dependency>
</dependencies>
Expand Down Expand Up @@ -103,7 +102,7 @@
<configuration>
<backend>html5</backend>
<outputFile>
${project.build.directory}/generated-docs/concurrency-tck-reference-guide-${jakarta.concurrent.version.ga}.html
${project.build.directory}/generated-docs/concurrency-tck-reference-guide-${jakarta.concurrent.tck.version}.html
</outputFile>
</configuration>
</execution>
Expand All @@ -116,7 +115,7 @@
<configuration>
<backend>pdf</backend>
<outputFile>
${project.build.directory}/generated-docs/concurrency-tck-reference-guide-${jakarta.concurrent.version.ga}.pdf
${project.build.directory}/generated-docs/concurrency-tck-reference-guide-${jakarta.concurrent.tck.version}.pdf
</outputFile>
</configuration>
</execution>
Expand All @@ -143,31 +142,11 @@
<descriptors>
<descriptor>src/main/assembly/assembly.xml</descriptor>
</descriptors>
<finalName>concurrency-tck-${jakarta.concurrent.version.ga}</finalName>
<finalName>concurrency-tck-${jakarta.concurrent.tck.version}</finalName>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<excludeTransitive>true</excludeTransitive>
<stripVersion>true</stripVersion>
<overWriteReleases>false</overWriteReleases>
</configuration>
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -149,12 +149,12 @@ Here we use the term "suite" informally to describe groups of tests required to

There are two "suites" included in the TCK. There is a "suite" for the {APIShortName} API portion of the "Jakarta EE Platform" TCK and there is a second suite for the {APIShortName} SPI portion of the "Jakarta EE Platform".

These "suites" are both represented within the single `artifacts/suite.xml` file and are identified by their package names:
These "suites" are both represented within the single `artifacts/suite.xml` file for the full profile and `artifacts/suite-web.xml` for the web profile, and are identified by their package names:

1. ee.jakarta.tck.concurrent.api.*
1. ee.jakarta.tck.concurrent.spec.*

*Note:* An implementation **MUST** run against all tests provided in the suite XML file [underline]#unmodified# for an implementation to pass the TCK.
*Note:* An implementation **MUST** run against all tests provided in the suite XML file for the given profile [underline]#unmodified# for an implementation of such profile to pass the TCK.

===== API Signature Files

Expand Down
2 changes: 1 addition & 1 deletion tck-dist/src/main/assembly/assembly.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<format>zip</format>
</formats>

<baseDirectory>concurrency-tck-${jakarta.concurrent.version.ga}</baseDirectory>
<baseDirectory>concurrency-tck-${jakarta.concurrent.tck.version}</baseDirectory>

<files>

Expand Down
5 changes: 4 additions & 1 deletion tck-dist/src/main/starter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@
<!-- Location to put test application dependencies -->
<application.server.lib>[path/to/appserver/lib]</application.server.lib>

<!-- Pointer to suite.xml file that has the TestNG configuration -->
<!-- Pointer to suite.xml file that has the TestNG configuration.
Use suite.xml to test the full profile
Use suite-web.xml to test the web profile
-->
<suiteXmlFile>suite.xml</suiteXmlFile>

<!-- Pointer to logging.properties file that has the java.util.logging configuration -->
Expand Down
35 changes: 35 additions & 0 deletions tck-dist/src/main/starter/suite-web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
/*
* Copyright (c) 2022 Contributors to the Eclipse Foundation
*
* 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
*/
-->
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<!--
This suite file is for testing Jakarta Concurrency against the Jakarta Web Profile.
-->
<suite name="jakarta-concurrency" verbose="2" configfailurepolicy="continue">
<test name="jakarta-concurrency.tck">
<groups>
<run>
<exclude name="eefull" />
</run>
</groups>
<packages>
<package name="ee.jakarta.tck.concurrent.api.*"/>
<package name="ee.jakarta.tck.concurrent.spec.*"/>
</packages>
</test>
</suite>
3 changes: 3 additions & 0 deletions tck-dist/src/main/starter/suite.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
-->
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<!--
This suite file is for testing Jakarta Concurrency against the Jakarta Full Profile.
-->
<suite name="jakarta-concurrency" verbose="2" configfailurepolicy="continue">
<test name="jakarta-concurrency.tck">
<packages>
Expand Down
7 changes: 3 additions & 4 deletions tck/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,15 @@
</licenses>

<properties>
<jakarta.concurrent.version.ga>3.0.0</jakarta.concurrent.version.ga>
<jakarta.concurrent.version.dev>${project.version}</jakarta.concurrent.version.dev>
<jakarta.concurrent.api.version>3.0.1</jakarta.concurrent.api.version>
<sigtest.version>1.6</sigtest.version>
</properties>

<dependencies>
<dependency>
<groupId>jakarta.enterprise.concurrent</groupId>
<artifactId>jakarta.enterprise.concurrent-api</artifactId>
<version>${jakarta.concurrent.version.dev}</version>
<version>${jakarta.concurrent.api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -194,7 +193,7 @@
<artifactItem>
<groupId>jakarta.enterprise.concurrent</groupId>
<artifactId>jakarta.enterprise.concurrent-api</artifactId>
<version>${jakarta.concurrent.version.ga}</version>
<version>${jakarta.concurrent.api.version}</version>
<type>jar</type>
<overWrite>false</overWrite>
<outputDirectory>${project.build.directory}/concurrency-api</outputDirectory>
Expand Down

0 comments on commit 6d695da

Please sign in to comment.