From 1fb692538486728f306e571371ad6785dfedc47e Mon Sep 17 00:00:00 2001 From: Petr Aubrecht Date: Wed, 18 Dec 2024 16:07:55 +0100 Subject: [PATCH] FISH-10299 update faces runner readme, remove useless script --- faces-tck/README.md | 21 ++++++++++++++++++++- faces-tck/run-tck.sh | 17 ----------------- 2 files changed, 20 insertions(+), 18 deletions(-) delete mode 100755 faces-tck/run-tck.sh diff --git a/faces-tck/README.md b/faces-tck/README.md index 7599d7b..f159a5f 100644 --- a/faces-tck/README.md +++ b/faces-tck/README.md @@ -3,6 +3,10 @@ ## Prerequisite Set `JAVA_HOME` to Java 21. +Use maven 3.9.6 or newer. + +The runner updates sources of the test to depend on chrome version 131.* + Install the Faces TCK dependencies via tck-download module. Execute from the root directory of TCK runners: ``` @@ -18,5 +22,20 @@ Run Payara 7 with default setup (with ports 4848 and 8080). Execute maven test with verify from the this directory: ``` -mvn clean verify +mvn clean install +``` + +In case it's necessary to specify exact versions for testing purposes, the typical command looks like: +``` +mvn -B clean install -Dtck.mode=platform -Dmojarra.noupdate=true -Dpayara.version=7.2025.1.Alpha1-SNAPSHOT -Dfaces.version=4.1.1 +``` + +To run only old test, add: +``` +-Dmaven.exec.skipping="-pl :old-faces-tck-parent,:old-tck-build,:old-tck-run" +``` + +If you want to skip selenium tests (it depends on chrome), add: ``` +-Dmaven.exec.skipping="-Dtest.selenium=false" +``` \ No newline at end of file diff --git a/faces-tck/run-tck.sh b/faces-tck/run-tck.sh deleted file mode 100755 index 71a87ab..0000000 --- a/faces-tck/run-tck.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash -#if [ JAVA_HOME = "" ] ; then - export JAVA_HOME=/usr/lib/jvm/java-21-openjdk-amd64 -#fi - -#echo "Downloading Faces TCK" -#cd .. -#mvn clean install -pl .,:tck-download,:jakarta-faces-tck -#cd faces-tck - -#echo "Building old tck, expected time 3-7 minutes" -#cd target/faces-tck-4.1.1/tck/old-tck -#mvn clean install -Dtck.mode=platform -Dmojarra.noupdate=true -Dpayara.version=7.2024.1.Alpha2 -Dfaces.version=4.1.1 -pl :old-faces-tck-parent,:old-tck-build | tee ../../../old-tck.log -#cd .. - - -mvn clean verify