diff --git a/external/jacoco/README.md b/external/jacoco/README.md new file mode 100644 index 0000000000..72d1996f3c --- /dev/null +++ b/external/jacoco/README.md @@ -0,0 +1,22 @@ +## External Jacoco Tests + +Jacoco tests are part of the external third-party application tests that help verify that the Adoptium binaries are good, by running a variety of Java applications inside of Docker containers. AdoptOpenJDK/openjdk-tests/Issue #172 lists the applications that we have initially targeted to best exercise the AdoptOpenJDK binaries. For each application, we choose to run a selection of their functional tests. +Jacoco test material is pulled from the [Jacoco repository](https://github.com/jacoco/jacoco). + +## Running External Jacoco tests locally +To run any AQA tests locally, you follow the same pattern: + +0. Ensure your test machine is set up with [test prereqs](https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/doc/Prerequisites.md). For external tests, you do need Docker installed. +1. Download/unpack the SDK that you want to test to your test machine +1. `export TEST_JDK_HOME=` +1. `git clone https://github.com/AdoptOpenJDK/openjdk-tests.git` +1. `cd openjdk-tests` +1. `./get.sh` +1. `cd TKG` +1. export required environment variables, BUILD_LIST and EXTRA_DOCKER_ARGS (`export BUILD_LIST=external/jacoco> and `, and TARGET=`` + +These tests run regularly and results can be found in [TRSS Third Party Application view](https://trss.adoptopenjdk.net/ThirdPartyAppView). \ No newline at end of file diff --git a/external/jacoco/dockerfile/Dockerfile b/external/jacoco/dockerfile/Dockerfile deleted file mode 100644 index b9f3e2199e..0000000000 --- a/external/jacoco/dockerfile/Dockerfile +++ /dev/null @@ -1,51 +0,0 @@ -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -# This Dockerfile in external/jacoco/dockerfile dir is used to create an image with -# AdoptOpenJDK jdk binary installed. Basic test dependent executions -# are installed during the building process. -# -# Build example: `docker build -t adoptopenjdk-jacoco-test -f Dockerfile ../.` -# -# This Dockerfile builds image based on adoptopenjdk/openjdk8:latest. -# If you want to build image based on other images, please use -# `--build-arg list` to specify your base image -# -# Build example: `docker build --build-arg IMAGE_NAME= --build-arg IMAGE_VERSION=-t adoptopenjdk-jacoco-test .` - - -ARG SDK=openjdk8 -ARG IMAGE_NAME=adoptopenjdk/$SDK -ARG IMAGE_VERSION=nightly - -FROM $IMAGE_NAME:$IMAGE_VERSION - -# Install test dependent executable files -RUN apt-get update \ - && apt-get -y install \ - maven \ - git \ - wget \ - ; \ - rm -rf /var/lib/apt/lists/* - -ENV JAVA_TOOL_OPTIONS="-Dfile.encoding=UTF8" -ENV MODE="java" - -COPY ./dockerfile/jacoco-test.sh /jacoco-test.sh -RUN mkdir testResults -WORKDIR / -RUN pwd -RUN git clone https://github.com/jacoco/jacoco.git - -ENTRYPOINT ["/bin/bash", "/jacoco-test.sh"] -CMD ["$MODE"] \ No newline at end of file diff --git a/external/jacoco/test.properties b/external/jacoco/test.properties new file mode 100644 index 0000000000..e72a573bb4 --- /dev/null +++ b/external/jacoco/test.properties @@ -0,0 +1,13 @@ +github_url="https://github.com/jacoco/jacoco.git" +script="jacoco-test.sh" +test_results="testResults" +tag_version="master" +environment_variable="MODE=\"java\"" +debian_packages="git maven" +debianslim_packages="${debian_packages}" +ubuntu_packages="${debian_packages}" +alpine_packages="git maven" +centos_packages="git maven" +clefos_packages="${centos_packages}" +ubi_packages="git maven" +ubi_minimal_packages="${ubi_packages}" \ No newline at end of file