Create an entry point for all regression test called "regression.sh" and run it as part of the base tests for all our distros. This entry point contains logic for running only the test cases that are appropriate for a given distribution.
20 lines
554 B
Bash
20 lines
554 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
# Get OS data.
|
|
source /etc/os-release
|
|
|
|
# Provision the software under tet.
|
|
/usr/libexec/osbuild-composer-test/provision.sh
|
|
|
|
# Set os-variant and boot location used by virt-install.
|
|
case "${ID}" in
|
|
"fedora")
|
|
echo "No regression test for Fedora";;
|
|
"rhel")
|
|
/usr/libexec/tests/osbuild-composer/regression-include-excluded-packages.sh;;
|
|
"centos")
|
|
/usr/libexec/tests/osbuild-composer/regression-include-excluded-packages.sh;;
|
|
*)
|
|
echo "unsupported distro: ${ID}-${VERSION_ID}"
|
|
esac
|