Bug#738552: autopkgtest: add support for using locally-built binaries without a second build

Antonio Terceiro terceiro at debian.org
Mon Feb 10 18:53:04 UTC 2014


On Mon, Feb 10, 2014 at 05:08:42PM +0100, Martin Pitt wrote:
> Hey Antonio,

Hello Martin,

> Antonio Terceiro [2014-02-10 12:52 -0300]:
> > I can use --binary, but that's error-prone and a little difficult when
> > you have multiple binary packages in a source.
> 
> You don't need to explicitly specify "--binary", merely adding
> something like
> 
>   adt-run ../*.deb --built-tree=. [...]
> 
> will do.

ah! that's nice, and solves my use case for now.

> > IMO it would make a lot of sense for --built-tree to use the
> > locally-built packages to satisfy test dependencies.
> 
> That would introduce the assumption that the binaries are present in
> ../ (which isn't the case if you just do debian/rules build, or use
> {git,svn,bzr}-buildpackage and have them in /tmp/build-area/ or so)
> and actually match the currently built tree.
> 
> It would also change the current behaviour, which should at least get
> an opinion from Ian.

sure - we probably don't want to change existing behaviour.

> Perhaps there is some middle ground, like adding a --binary-dir=<dir>
> which acts like "--binary <dir>/<x>.deb" for each <x>.deb in <dir>?

that would be nice, yes. I would just restrict the list to binaries that
could be the product of building the current tree (i.e. the binaries
listed in a .changes file in <dir> corresponding to the current version
of the source package pointed by --built-tree=.)

a very naive approach I am using for now is (in shell):

  version=$(dpkg-parsechangelog -SVersion)
  binaries=$(for pkg in $(dh_listpackages); do echo "../${pkg}_${version}_*.deb"; done)
  adt-run $binaries --built-tree . --- adt-virt-schroot unstable

> But then again, this is even more complicated than just specifying
> "<dir>/*.deb".

it is, but when you have several source packages in the same parent
directory ../*.deb will bring binaries from all of them

-- 
Antonio Terceiro <terceiro at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140210/b2ffec63/attachment.sig>


More information about the autopkgtest-devel mailing list