DEP8 tests using the built package source

Jakub Wilk jwilk at
Wed Mar 19 10:52:20 UTC 2014

* Martin Pitt <mpitt at>, 2014-03-18, 12:08:
>>the alternative of building the required bits inside the tests itself 
>>is not appealing either, because to do that you would typically need 
>>to add stuff to Depends.
>>It would be great if there was a way to tell the test runner to run a 
>>dedicated debian/rules target (say, "debian/rules adt-prepare"), 
>>instead of doing full-blown build.
>It's not too complicated to do that with the current specs: add 
>@builddeps@ to debian/tests/control's Depends: and just call 
>"debian/rules build-tests" (or whichever target you have) in 

I know it's not technically difficult. :)
But I want to keep my Depends as slim as I possible.
See also:$v4h$

>autopkgtest calls dpkg-buildpackage to do the actual package build, so 
>for adding this to autopkgtest explicitly, we could add a flag for that 
>and call dpkg-buildpackage --target.

If by "a flag" you meant "a new restriction", then it sounds good to me. 

Jakub Wilk

More information about the autopkgtest-devel mailing list