Add regression test for JAVA_HOME

Related: rhbz#2096431
This commit is contained in:
Marián Konček 2022-12-07 12:51:29 +01:00
parent 868c483a7f
commit 77e5c6a879

19
plans/regression.fmf Normal file
View File

@ -0,0 +1,19 @@
discover:
summary: Regression tests (default OpenJDK)
how: shell
tests:
- name: /regression/environment-java-home
environment:
JAVA_HOME: /tmp/java-home
test: |
mkdir -p "${JAVA_HOME}/bin"
echo -e '#!/bin/sh\nfalse' > "${JAVA_HOME}/bin/java"
chmod a+x "${JAVA_HOME}/bin/java"
! mvn -v
prepare:
how: install
exclude:
- maven-openjdk8
- maven-openjdk11
execute:
how: tmt