Bug#711209: autopkgtest: build-needed restriction doesn't actually run tests in built tree

Martin Pitt mpitt at debian.org
Wed Jun 5 13:49:13 UTC 2013


Package: autopkgtest
Version: 2.2.3+nmu1

Hello,

For the first time I am creating an autopkgtest for a (new) package
where the tests themeselves need to be build (I'm calling the upstream
test suite in a mode to run against the installed version, with "make
check-installed"). So my debian/tests/control looks like this:

   Tests: upstream
   Restrictions: build-needed

autopkgtest builds and installs the package alright, but then it runs
the tests from a cwd which is a copy of the unpackaged, but *unbuilt*
source. Thus calling "make check-installed" doesn't work as there are
no built tests (the package is not even configured).

I'm using this gross workaround now, but it should really just put me
into that directory by default for "build-needed":

   # work around broken "build-needed" behaviour
   cd $ADTTMP/../../ubtree0-build/real-tree
   make check-installed

Thanks for considering,

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20130605/ac76c7f0/attachment.pgp>


More information about the autopkgtest-devel mailing list