debian-forge-composer/test/cases/regression.sh
Martin Sehnoutka 4a54ab43e5 test/cases: Introduce common "regression" test for all distros
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.
2021-05-20 13:07:07 +03:00

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