Add regression test for JAVA_HOME
Related: rhbz#2096431
This commit is contained in:
parent
868c483a7f
commit
77e5c6a879
19
plans/regression.fmf
Normal file
19
plans/regression.fmf
Normal 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
|
Loading…
Reference in New Issue
Block a user