You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
QA/tests/p_java-openjdk/p_java-openjdk-common

21 lines
624 B

#!/bin/bash
# Author: Pablo Greco <pablo@fliagreco.com.ar>
# Based on java-1.6.0-openjdk test from Christoph Galuschka <christoph.galuschka@chello.at>
[ ${centos_ver} -lt 7 ] && { t_Log "Multiple java versions test is only available since el7, skipping tests..." ; exit ; }
if [ ${centos_ver} -eq 8 ];then
JAVA_VERSIONS="1.8.0 11"
elif [ ${centos_ver} -eq 9 ];then
JAVA_VERSIONS="1.8.0 11 17"
else
JAVA_VERSIONS="1.7.0 1.8.0 11"
if (t_GetArch | grep -qvE 'aarch64|ppc64le')
then
JAVA_VERSIONS="1.6.0 $JAVA_VERSIONS"
fi
fi
[ -z "${JAVA_VERSIONS}" ] && { t_Log "No java versions to test, skipping tests..." ; exit ; }