diff --git a/java-17-openjdk.spec b/java-17-openjdk.spec index 8eed43c..bbf46b3 100644 --- a/java-17-openjdk.spec +++ b/java-17-openjdk.spec @@ -334,7 +334,7 @@ %global top_level_dir_name %{origin} %global top_level_dir_name_backup %{top_level_dir_name}-backup %global buildver 8 -%global rpmrelease 10 +%global rpmrelease 11 # 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 # Using 10 digits may overflow the int used for priority, so we combine the patch and build versions @@ -2545,6 +2545,10 @@ cjc.mainProgram(args) %endif %changelog +* Sun Feb 27 2022 Andrew Hughes - 1:17.0.2.0.8-11 +- Introduce tests/tests.yml, based on the one in java-11-openjdk +- Resolves: rhbz#2058490 + * Fri Feb 25 2022 Jiri Vanek - 1:17.0.2.0.8-10 - 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 diff --git a/tests/tests.yml b/tests/tests.yml new file mode 100644 index 0000000..99942a5 --- /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-17-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'