From: Ian Jackson Subject: Re: [PATCH osstest.git v3] Add libvirt build and test jobs. Date: Mon, 14 Apr 2014 12:11:29 +0100 Message-ID: <21323.49761.945062.985508@mariner.uk.xensource.com> References: <1397471894-19513-1-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1397471894-19513-1-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Jim Fehlig , Dario Faggioli , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("[PATCH osstest.git v3] Add libvirt build and test jobs."): > The ts-libvirt-build, sg-run-job and mfi-common changes have been tested in > standalone mode. ... The ap-* and cr-daily-branch changes look good. > diff --git a/ts-libvirt-build b/ts-libvirt-build > new file mode 100755 > index 0000000..56b78f1 ... > +sub prep() { > + target_install_packages($ho, qw(autoconf automake libtool xsltproc > + libxml2-utils libxml2-dev libnl-dev > + libdevmapper-dev w3c-dtd-xhtml)); > +} Sadly, you mustn't invoke apt here because this script might run in parallel on the same host with other scripts. I had to make a similar comment in response to another patch recently. Perhaps it is time to fix this by wrapping the apt-get rune in with-lock-ex. > +sub libvirtd_init () { > + return <<'END'; > +#! /bin/sh > +# > +# Init script for libvirtd > +# > +# Loosely based on Debian libvirt-bin initscript: > +# (c) 2007 Guido Guenther > +# based on the skeletons that comes with dh_make Does libvirt really not come with one ? > diff --git a/ts-xen-install b/ts-xen-install > index 4a810e4..435fc3e 100755 > --- a/ts-xen-install > +++ b/ts-xen-install > @@ -63,7 +63,10 @@ sub packages () { > } > > sub extract () { > - foreach my $part ('', 'kern', 'xen') { > + my @parts = ('', 'kern', 'xen'); > + push @parts, 'libvirt' if $r{toolstack} eq "libvirt"; > + > + foreach my $part (@parts) { Fine. Thanks, Ian.