Add regression test for JAVA_HOME

This commit is contained in:
Marian Koncek 2022-12-05 15:56:43 +01:00
parent 862020177d
commit 96f1604292

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