[PATCH 2/3] autodetect Perl packages

gregor herrmann gregoa at debian.org
Mon Sep 8 14:59:03 UTC 2014


On Mon, 08 Sep 2014 14:24:45 +0300, Niko Tyni wrote:

> Perhaps a simple 'mkdir $TDIR/lib/' in the smoke runner would work,
> so the POD tests would be run against an empty directory?

Works!

What I've tried:
- take libperl-metrics-simple-perl
- add a simple debian/tests/control [0]
- copy over the smoke test
- add `mkdir -p $TDIR/blib' [1]

And we get:

t/0901_pod.t ........... skipped: No files found in (blib)
[..]
adt-run [16:48:04]: test smoke: -----------------------]
adt-run [16:48:04]: test smoke:  - - - - - - - - - - results - - - - - - - - - -
smoke                PASS

> We'd effectively skip the POD tests for autopkgtest, which I personally
> find quite acceptable. (In case it's not clear, they are about checking
> documentation syntax and/or function coverage.)

Agreed.


Change committed and pushed (in pkg-perl-tools), further
thoughts/reviews/comments/tests welcome.


Cheers,
gregor


[0]
% cat debian/tests/control 
Tests: smoke
Depends: @, @builddeps@

[1]
according to the Test::Pod docs, it first looks in blib/ and then in
lib/ if blib/ doesn't exist

-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Beach Boys
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20140908/ecde8be4/attachment.sig>


More information about the autopkgtest-devel mailing list