There are a couple of options here depending what we want to test. We can either build procenv from $current on $current release -> this will test that e.g. SRUs in xenial, do not break building packages for xenial on xenial.
Or we can try to always build procenv from $devel in $devel chroot -> this will test that all currently supported releases, can build packages for $devel series.
src:sbuild has test build-procenv which can only pass in devel series, as it assumes that the release test is running is the devel series.
This was true, until we started to run adt tests for stable releases and SRUs.
Here is the detailed log of running build-procenv on xenial, whilst devel series is called artful:
# ADTTMP=$(mktemp -d) sh -x debian/ tests/build- procenv main,universe architecture archive. ubuntu. com/ubuntu architecture tmp.QYJvzqYkbV/ schroot- artful artful- amd64-sbuild :http:: Proxy :User=root procenv/artful
+ set -e
+ pkg=procenv
+ components=
+ lsb_release -is
+ tr [A-Z] [a-z]
+ distro=ubuntu
+ [ -z ubuntu ]
+ lsb_release -cs
+ host_release=xenial
+ [ -z xenial ]
+ [ ubuntu = ubuntu ]
+ distro-info --devel
+ release=artful
+ components=
+ dpkg --print-
+ url=http://
+ dpkg --print-
+ arch=amd64
+ [ -z amd64 ]
+ [ -z /tmp/tmp.QYJvzqYkbV ]
+ dir=/tmp/
+ chroot=
+ schroot -l
+ schroots=
+ [ -n ]
+ [ -z ]
+ apt-config shell http_proxy Acquire:
+ RES=
+ eval
+ export http_proxy
+ echo INFO: using proxy: (none)
INFO: using proxy: (none)
+ echo INFO: Downloading source for package 'procenv' from release 'artful'
INFO: Downloading source for package 'procenv' from release 'artful'
+ apt-get source --download-only -o APT::Sandbox:
Reading package lists... Done
E: Unable to find a source package for procenv
There are a couple of options here depending what we want to test. We can either build procenv from $current on $current release -> this will test that e.g. SRUs in xenial, do not break building packages for xenial on xenial.
Or we can try to always build procenv from $devel in $devel chroot -> this will test that all currently supported releases, can build packages for $devel series.