Autopkgtests against staging packages HOWTO
Updated 64 Days AgoPublic

First of all, you must install the 'autopkgtests' package. Once you got it, you may write a small script to setup the repositories, one possible way to do this is C&P'ing this code and saving it as /usr/share/autopkgtest/setup-commands:


apt-get -y install software-properties-common
add-apt-repository -sy ppa:kubuntu-ppa/staging-frameworks
add-apt-repository -sy ppa:kubuntu-ppa/staging-plasma
add-apt-repository -sy ppa:kubuntu-ppa/staging-kdeapplications
apt-get -y update

Once you got the script there, you have to set up the virtualization evironment, let's say we want to use LXC (they are other 'virtualization' backends for autopkgtests running). You may set up the LXC container where the tests are going to be executed, running this command as root:

autopkgtest-build-lxc ubuntu artful amd64

Once you have your lxc container set you may run any staging autopkgtests running this command as root:

autopkgtest kf5-messagelib --setup-commands=kstaging -U --apt-pocket=proposed -- lxc autopkgtest-artful-amd64

If you suspect the tests are going to fail you may pass -s/--shell-fail to the above command, so it would be:

autopkgtest kf5-messagelib -s --setup-commands=kstaging -U --apt-pocket=proposed -- lxc autopkgtest-artful-amd64

That should open a shell into the lxc container where the tests are being executed.

Last Author