ack debian9 testing questions
Axel Beckert
abe at debian.org
Fri Jun 29 13:17:17 BST 2018
Hi,
Nguyen Van Long wrote:
> I'm trying to testing how to ack package work on debian9.
>
> So my questions are:
>
> 1. Currently, are there existing any way/support to test on ack source
> package?
The ack test suite is run when the package is built.
> 2. Can you suggest some tools like "autopkgtest" to test ack or even
> other packages?
ack supports autopkgtest, e.g. if you want to test the installed ack
package on your system with autopkgtest, you can do this like this:
First install the needed dependencies (as root):
# apt build-dep ack
# apt install autopkgtest pkg-perl-autopkgtest
Then (as normal user) download and unpack the source package (needed
for the included test suite):
$ apt-get source ack
Change into the unpacked source package and run autopkgtest:
$ autopkgtest -B ./ack-2.14 --- null
It will run the upstream test suite on the installed ack package.
It will though through an error if the transitional package ack-grep
is not installed:
---------------------------------------------------------------------------
dpkg-query: package 'ack-grep' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
and dpkg --contents (= dpkg-deb --contents) to list their contents.
# Failed test 'Got status information for package ack-grep'
# at /usr/share/pkg-perl-autopkgtest/runtime-deps-and-recommends.d/syntax.t line 81.
# Failed test 'Got file list for package ack-grep'
# at /usr/share/pkg-perl-autopkgtest/runtime-deps-and-recommends.d/syntax.t line 87.
# Looks like you failed 2 tests of 8.
---------------------------------------------------------------------------
You can either ignore these errors or install the transitional package
ack-grep beforehand.
Hope, this helps.
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, https://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
`- | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
More information about the pkg-perl-maintainers
mailing list