Bug#870252: pkg-perl-autopkgtest: skip t/00-compile/*.t

Niko Tyni ntyni at debian.org
Mon Jul 31 10:18:55 UTC 2017


Package: pkg-perl-autopkgtest
Version: 0.37
Severity: wishlist

Starting with 0.37, we run the smoke test with 'prove --recurse'.
This has caused a few dozen regressions where packages that
used to pass their autopkgtest checks are now failing due to
tests in subdirectories of t/ that were not run earlier.

One somewhat common failure mode is breakage in t/00-compile/, which I've
encountered in at least libpath-finddev-perl and libmoosex-has-sugar-perl
and which contain autogenerated tests like this:

  use strict;
  use warnings;
  
  # This test was generated for <lib/MooseX/Has/Sugar/Minimal.pm>
  # using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.002001
  # with template 01-basic.t.tpl
  
  use Test::More 0.89 tests => 1;
  
  require_ok("lib/MooseX/Has/Sugar/Minimal.pm");

These are not going to work with our autopkgtest setup as they look for
modules in the build tree. Also, we run 'perl -wc' in the autopkgtest
syntax check which should be more or less equivalent.

I propose that we add t/00-compile/*.t to the list that the smoke check
skips automatically.
-- 
Niko Tyni   ntyni at debian.org



More information about the pkg-perl-maintainers mailing list