-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a builder and runner for the full connectors TCK
Signed-off-by: Arjan Tijms <arjan.tijms@omnifish.ee>
- Loading branch information
1 parent
35bc390
commit 3d4b956
Showing
7 changed files
with
1,143 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
214 changes: 214 additions & 0 deletions
214
appserver/tests/tck/tck-download/jakarta-connectors-full-tck/pom.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,214 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
Copyright (c) 2021, 2023 Contributors to the Eclipse Foundation. 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 | ||
--> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.glassfish.main.tests.tck</groupId> | ||
<artifactId>tck-download</artifactId> | ||
<version>7.0.9-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>jakarta-connectors-full-tck</artifactId> | ||
<packaging>pom</packaging> | ||
<name>TCK: Install Jakarta Connectors full TCK</name> | ||
|
||
<properties> | ||
<ant.home>${project.build.directory}/apache-ant-${ant.version}</ant.home> | ||
<ant.zip.url>https://archive.apache.org/dist/ant/binaries/apache-ant-${ant.version}-bin.zip</ant.zip.url> | ||
|
||
<tck.test.platform.url>https://download.eclipse.org/jakartaee/platform/10/jakarta-jakartaeetck-10.0.2.zip</tck.test.platform.url> | ||
<tck.test.platform.src.url>https://github.com/jakartaee/platform-tck/archive/refs/heads/10.0.x.zip</tck.test.platform.src.url> | ||
|
||
<tck.test.connectors.file>jakarta-connectors-tck-2.1.0.zip</tck.test.connectors.file> | ||
<tck.test.connectors.url>https://download.eclipse.org/jakartaee/connectors/2.1/${tck.test.connectors.file}</tck.test.connectors.url> | ||
|
||
<tck.test.connectors.full.file>jakarta-connectors-full-tck-2.1.0.zip</tck.test.connectors.full.file> | ||
|
||
<tck.home>${project.build.directory}/platform-tck-10.0.x</tck.home> | ||
</properties> | ||
|
||
<build> | ||
<plugins> | ||
|
||
<plugin> | ||
<groupId>com.googlecode.maven-download-plugin</groupId> | ||
<artifactId>download-maven-plugin</artifactId> | ||
<executions> | ||
<!-- Download binary platform TCK - around 500MB --> | ||
<execution> | ||
<id>download-ee-tck</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>wget</goal> | ||
</goals> | ||
<configuration> | ||
<url>${tck.test.platform.url}</url> | ||
</configuration> | ||
</execution> | ||
|
||
<!-- Download source platform TCK - around 70mb --> | ||
<execution> | ||
<id>download-ee-tck-src</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>wget</goal> | ||
</goals> | ||
<configuration> | ||
<url>${tck.test.platform.src.url}</url> | ||
</configuration> | ||
</execution> | ||
|
||
<execution> | ||
<id>download-connectors-tck</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>wget</goal> | ||
</goals> | ||
<configuration> | ||
<url>${tck.test.connectors.url}</url> | ||
</configuration> | ||
</execution> | ||
|
||
<execution> | ||
<id>download-ant</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>wget</goal> | ||
</goals> | ||
<configuration> | ||
<url>${ant.zip.url}</url> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<skip>${skipITs}</skip> | ||
<unpack>true</unpack> | ||
<overwrite>true</overwrite> | ||
<outputDirectory>${project.build.directory}</outputDirectory> | ||
</configuration> | ||
</plugin> | ||
|
||
<plugin> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.apache.ant</groupId> | ||
<artifactId>ant</artifactId> | ||
<version>${ant.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>ant-contrib</groupId> | ||
<artifactId>ant-contrib</artifactId> | ||
<version>1.0b3</version> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>ant</groupId> | ||
<artifactId>ant</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
</dependencies> | ||
<configuration> | ||
<skip>${skipITs}</skip> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>prepare-tck</id> | ||
<phase>generate-resources</phase> | ||
<configuration> | ||
<target xmlns:if="ant:if" xmlns:unless="ant:unless"> | ||
<taskdef | ||
resource="net/sf/antcontrib/antcontrib.properties" | ||
classpathref="maven.plugin.classpath" /> | ||
|
||
<copy | ||
todir="${project.build.directory}/platform-tck-10.0.x"> | ||
<fileset | ||
dir="${project.build.directory}/jakartaeetck"> | ||
<include name="dist/**" /> | ||
<include name="classes/**" /> | ||
<include name="lib/**" /> | ||
</fileset> | ||
</copy> | ||
|
||
<copy | ||
todir="${project.build.directory}/platform-tck-10.0.x"> | ||
<fileset | ||
dir="${project.build.directory}/connectors-tck"> | ||
<include name="lib/connector.jar" /> | ||
</fileset> | ||
</copy> | ||
|
||
<copy | ||
todir="${project.build.directory}/platform-tck-10.0.x"> | ||
<fileset dir="${project.basedir}/src/patch"> | ||
<include name="install/**" /> | ||
<include name="release/**" /> | ||
</fileset> | ||
</copy> | ||
|
||
<exec executable="${ant.home}/bin/ant" dir="${tck.home}/release/tools"> | ||
<arg value="connector" /> | ||
<env key="deliverabledir" value="connector" /> | ||
<env key="LC_ALL" value="C" /> | ||
</exec> | ||
|
||
<move todir="${project.build.directory}"> | ||
<fileset dir="${tck.home}/release/CONNECTOR_BUILD/latest"> | ||
<include name="connectors-tck-2.1.0*.zip" /> | ||
</fileset> | ||
<mapper type="glob" from="connectors-tck-2.1.0*.zip" to="${tck.test.connectors.full.file}"/> | ||
</move> | ||
</target> | ||
</configuration> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<plugin> | ||
<artifactId>maven-install-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>install-full-connectors-tck</id> | ||
<phase>process-resources</phase> | ||
<goals> | ||
<goal>install-file</goal> | ||
</goals> | ||
<configuration> | ||
<file>${project.build.directory}/${tck.test.connectors.full.file}</file> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>${project.artifactId}</artifactId> | ||
<version>${project.version}</version> | ||
<packaging>zip</packaging> | ||
<generatePom>true</generatePom> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
Oops, something went wrong.