Add new script for autopkg, and add oracular to avocado tests

This commit is contained in:
Arif Ali 2024-05-15 09:06:45 +01:00
parent 039ef46201
commit 73cf2baa4e
Signed by: arif
GPG Key ID: 369608FBA1353A70
2 changed files with 41 additions and 1 deletions

40
do_autopkg_tests.sh Executable file
View File

@ -0,0 +1,40 @@
#!/bin/bash
#set -ax
latest_dev_series="oracular"
latest_sup_series="noble"
non_lts_releases="mantic"
all_series="focal jammy noble ${non_lts_releases} ${latest_dev_series}"
ppa_user="arif-ali"
ppa_name="sosreport-dev"
for distro in ${all_series}
do
inst_name=sos-avocado01-${distro}
if [[ "${distro}" == "${latest_dev_series}" ]] ; then
image="ubuntu-daily:${distro}"
else
image="ubuntu:${distro}"
fi
image_list="$(lxc image list --format json | jq -rc '.[] | select(.aliases[].name | contains("autopkgtest")) | .aliases[].name' | xargs)"
if [[ $(echo ${image_list} | grep -v "autopkgtest/ubuntu/${distro}/amd64/vm") ]] ; then
autopkgtest-build-lxd --vm ${image}
fi
rm -rf ${distro}-sosreport-ppa
autopkgtest \
--apt-upgrade --shell-fail --output-dir \
${distro}-sosreport-ppa --no-built-binaries \
--ignore-restrictions=isolation-machine \
--setup-commands="sudo apt -y install software-properties-common ; \
sudo add-apt-repository -y -u -s ppa:${ppa_user}/${ppa_name}" \
sosreport -- lxd autopkgtest/ubuntu/${distro}/amd64/vm
done

View File

@ -4,7 +4,7 @@
script_cmd=${0##*/}
latest_dev_series=""
latest_dev_series="oracular"
latest_sup_series="noble"
non_lts_releases="mantic"
all_series="bionic focal jammy noble ${non_lts_releases} ${latest_dev_series}"