summaryrefslogtreecommitdiff
path: root/tools/test-setup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-setup.sh')
-rwxr-xr-xtools/test-setup.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/test-setup.sh b/tools/test-setup.sh
index 152dc58..926a1d6 100755
--- a/tools/test-setup.sh
+++ b/tools/test-setup.sh
@@ -10,6 +10,11 @@ function is_rhel7 {
cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
cat /etc/*release | grep -q 'release 7'
}
+function is_rhel8 {
+ [ -f /usr/bin/dnf ] && \
+ cat /etc/*release | grep -q -e "Red Hat" -e "CentOS" -e "CloudLinux" && \
+ cat /etc/*release | grep -q 'release 8'
+}
if is_rhel7; then
@@ -20,3 +25,10 @@ if is_rhel7; then
# packages.
sudo yum install -y liberasurecode-devel yasm
fi
+
+if is_rhel8; then
+ # Install CentOS OpenStack repos so that we have access to some extra
+ # packages.
+ sudo dnf install -y centos-release-openstack-ussuri
+ sudo dnf install -y liberasurecode-devel yasm
+fi