[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Tools for testing LTS updates



On Mon, Jan 23, 2017 at 07:22:30PM +0000, Holger Levsen wrote:
> On Mon, Jan 23, 2017 at 02:01:41PM -0500, Antoine Beaupré wrote:
> > regarding ci... i am not sure how useful that would be for me. right
> > now, i just run a wheezy VM inside qemu and install stuff by hand in
> > there. since i need a clean VM every time, setting up the whole CI env
> > would seem to be a significant overhead, no?
> 
> it's wheezy/oldstable, so by definition it's not changing much, thus
> it's probably sufficient to only create that clean VM once every week or
> month and then preserve that as a "snapshot" image and run triggered CI
> tests based on a copy of that image…

I'm probably stating the obvios but it can be done with:

SNAPSHOT=wheezy-2017-01-13
IP=192.168.122.17

PKG=$(dpkg-parsechangelog -Ssource)
VERSION=$(dpkg-parsechangelog -SVersion)

set -x
set -e

virsh destroy autopkgtest || true
virsh snapshot-revert autopkgtest $SNAPSHOT
virsh start autopkgtest
autopkgtest -B ../*_${VERSION}_*.deb ../${PKG}_${VERSION}.dsc -- ssh -H $IP -P<rootpw>

(in case running inside pbuilder is not sufficient (eg. because it needs
daemons running, etc.). Not very elaborate but does the job.
Cheers,
 -- Guido


Reply to: