diff --git a/do_autopkg_tests.sh b/do_autopkg_tests.sh new file mode 100755 index 0000000..1c8ad33 --- /dev/null +++ b/do_autopkg_tests.sh @@ -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 diff --git a/do_sos_avocado.sh b/do_sos_avocado.sh index a740836..b54c2c6 100755 --- a/do_sos_avocado.sh +++ b/do_sos_avocado.sh @@ -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}"