debian-forge-composer/test/cases/libvirt.sh
Jakub Rusz 8d6b998b0a tests/libvirt: boot with uefi on rhel and centos
Updating condition to run on all rhel and centos runners. Before this
eufi was not tested on all supported runners.
2022-07-01 13:00:52 +03:00

23 lines
698 B
Bash

#!/bin/bash
set -euo pipefail
#
# Helper script that executes `tools/libvirt_test.sh` with the appropiate image type and boot type
#
# Get OS data.
source /usr/libexec/osbuild-composer-test/set-env-variables.sh
# Provision the software under test.
/usr/libexec/osbuild-composer-test/provision.sh
# Test the images
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2
/usr/libexec/osbuild-composer-test/libvirt_test.sh openstack
# RHEL 8.4+ and Centos Stream 8+ images also supports uefi, check that
if [[ "$ID" == "rhel" || "$ID" == "centos" ]] ; then
echo "🐄 Booting qcow2 image in UEFI mode on RHEL/Centos Stream"
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2 uefi
fi