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

Bug#439121: Add a .pc file for libapt-pkt



Hi,

On Wed, Dec 28, 2016 at 12:24:41AM +0100, Corentin Noël wrote:
> Please note that I haven't been able to test the new test in the debian
> package.

Feel free to ask specifics as this is supposed to be easy™ and more and
more packages use this, so knowing how to run them should be useful for
other packages as well.

The actual invokation depends on your system/preferences, but the
manpage 'autopkgtest' does a reasonable job of explaining them.
Something like that should work:

0) [do once] setup sbuild + a (s)chroot "unstable-amd64-sbuild"
   see https://wiki.debian.org/sbuild
1) autopkgtest /path/to/source/apt -- schroot unstable-amd64-sbuild

That will built the packages first and then run all tests.


>  apt-inst/CMakeLists.txt       |  3 +++
>  apt-inst/apt-inst.pc.in       | 11 +++++++++++
>  apt-pkg/CMakeLists.txt        |  3 +++
>  apt-pkg/apt-pkg.pc.in         | 10 ++++++++++
>  debian/libapt-pkg-dev.install |  1 +
>  debian/tests/control          |  5 +++--
>  6 files changed, 31 insertions(+), 2 deletions(-)
>  create mode 100644 apt-inst/apt-inst.pc.in
>  create mode 100644 apt-pkg/apt-pkg.pc.in

Looks like the test you refer to isn't included in the diff. :)


> diff --git a/debian/tests/control b/debian/tests/control
[…]
> -Tests: run-tests
> +Tests: run-tests, autopkgtest

Please don't name the new test like the tool running all these tests as
that would be quite confusing (something can be said about having the
other test named 'run-tests' …).


Best regards

David Kalnischkies

Attachment: signature.asc
Description: PGP signature


Reply to: