On Fri, 23 Aug 2019 18:56:36 +0200, Dominique Dumont wrote:

> ok 3 - Read all models from wr_root/load_write_itself/lib/Config/Model/models
> Configuration item 'application:fstab model' has a wrong value:
>       reference type does not know 'Fstab'. Expected 'Itself::Application' or 
> 'Itself::CargoElement' or 'Itself::Class' or 'Itself::CommonElement' or 
> 'Itself::CommonElement::Assert' or 'Itself::CommonElement::WarnIfMatch' or 
> 'Itself::ComputedValue' or 'Itself::ConfigAccept' or 
> 'Itself::ConfigReadWrite' 
> or 'Itself::ConfigReadWrite::DefaultLayer' or 'Itself::Element' or 
> 'Itself::MigratedValue' or 'Itself::Model' or 'Itself::NonWarpableElement' or 
> 'Itself::WarpOnlyElement' or 'Itself::WarpValue' or 
> 'Itself::WarpableCargoElement' or 'Itself::WarpableElement'
> # Tests were run but no plan was declared and done_testing() was not seen.
> # Looks like your test exited with 2 just after 3.
> Dubious, test returned 2 (wstat 512, 0x200)
> 
> This looks like cme is able to find the file /usr/share/perl5/Config/Model/
> system.d/fstab , but is not able to load /usr/share/perl5/Config/Model/models/
> Fstab.pl. Even though both files are provided by libconfig-model-perl. 
> 
> Given that I cannot reproduce this issue on my system, I guess that the setup 
> of perl library in autopkgtest is different than the default setup.  I need 
> to 
> check how these files are found.

In can reproduce it in my autopkgtest setup.

I'm not really sure what exactly happens, but what makes the
difference is the existence of blib/ (i.e. running perl Build.PL;
./Build before the tests).

Background: the smoke test in autopkgtests-pkg-perl copies (by
default only t/, in our case, because of
debian/tests/pkg-perl/smoke-files) t/ and data/ to an empty temporary
directory and runs prove there.

But the empty directory is not even necessary. In the source tree (in
my case in an schroot chroot after the failed autopkgtest but that
shouldn't matter):
- `prove --verbose t/load_write_itself.t' fails with the error above

- perl Build.PL ; ./Build
- and now `prove --verbose t/load_write_itself.t' succeeds

- ./Build realclean; perl Build.PL
- prove fails

- ./Build
- prove succeeds

- ./Build realclean ; perl Build.PL ; ./Build ; rm -r blib
- prove fails


Somewhere in the tests, they look into blib/ and fail otherwise …


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at -- Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe
   `-   NP: Bettina Wegner: Ach, wenn ich doch als Mann auf diese Welt gekommen 
wär

Attachment: signature.asc
Description: Digital Signature

Reply via email to