debian-forge-composer/test/cases/libvirt.sh
Ondřej Budai cbc9082fac tests: move the libvirt test logic out of Jenkinsfile
All tests in /usr/libexec/tests/osbuild-composer should be able to run without
any arguments. This was not a case of libvirt.sh - it required two arguments
set by some Jenkinsfile logic.

This commit moves test/cases/libvirt.sh to tools/libvirt_test.sh and extracts
the logic controlling the test case from Jenkinsfile to test/cases/libvirt.sh.

Signed-off-by: Ondřej Budai <ondrej@budai.cz>
2020-12-02 08:44:33 +01:00

18 lines
515 B
Bash

#!/bin/bash
set -euo pipefail
# Get OS data.
source /etc/os-release
# 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
/usr/libexec/osbuild-composer-test/libvirt_test.sh vhd
# RHEL 8.4 images also supports uefi, check that
if [[ "${ID}-${VERSION_ID}" == "rhel-8.4" ]]; then
/usr/libexec/osbuild-composer-test/libvirt_test.sh qcow2 uefi
fi