From 0e6237743ae944137b1f47eb05484b02f4050e78 Mon Sep 17 00:00:00 2001 From: Andrew Hughes Date: Sun, 27 Feb 2022 03:08:07 +0000 Subject: [PATCH] Introduce tests/tests.yml, based on the one in RHEL 8 Resolves: rhbz#2058489 --- java-11-openjdk.spec | 8 ++++++-- tests/tests.yml | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 tests/tests.yml diff --git a/java-11-openjdk.spec b/java-11-openjdk.spec index 5179c68..7518630 100644 --- a/java-11-openjdk.spec +++ b/java-11-openjdk.spec @@ -363,7 +363,7 @@ %global top_level_dir_name %{origin} %global top_level_dir_name_backup %{top_level_dir_name}-backup %global buildver 1 -%global rpmrelease 4 +%global rpmrelease 5 #%%global tagsuffix %%{nil} # Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit %if %is_system_jdk @@ -2583,7 +2583,11 @@ require "copy_jdk_configs.lua" %endif %changelog -* Fri Feb 25 2022 Jiri Vanek - 1:11.0.14.1.1-3 +* Sun Feb 27 2022 Andrew Hughes - 1:11.0.14.1.1-5 +- Introduce tests/tests.yml, based on the one in RHEL 8 +- Resolves: rhbz#2058489 + +* Fri Feb 25 2022 Jiri Vanek - 1:11.0.14.1.1-4 - Storing and restoring alterntives during update manually - Fixing Bug 2001567 - update of JDK/JRE is removing its manually selected alterantives and select (as auto) system JDK/JRE -- The move of alternatives creation to posttrans to fix: diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..6e42e03 --- /dev/null +++ b/tests/tests.yml @@ -0,0 +1,21 @@ +--- +- hosts: localhost + roles: + - role: standard-test-source + tags: + - always + - role: standard-test-basic + tags: + - classic + - atomic + required_packages: + - java-11-openjdk-devel + tests: + - javaVersion1: + dir: ~ + run: set -ex; useradd franta1; su franta1 -c 'java -version'; + run: set -ex; useradd franta4; su franta4 -c 'javac -version'; + run: ls -l /usr/lib/jvm; + - javaVersion2: + dir: ~ + run: set -ex; useradd franta2; su franta2 -c 'java --version'