Subject: | Module-FromPerlVer-0.005005 fails self tests |
Date: | Fri, 16 Mar 2018 08:44:51 +0100 |
To: | Steven Lembark via RT <bug-Module-FromPerlVer [...] rt.cpan.org> |
From: | Thomas Klausner <tk [...] giga.or.at> |
Same test failure in 5.005005:
/tmp/b> tar xzf Module-FromPerlVer-0.005005.tar.gz
/tmp/b> cd Module-FromPerlVer-0.005005
/tmp/b/Module-FromPerlVer-0.005005> perl Makefile.PL
Setup: 't/bin/make-version-dir't/bin/make-version-dir fails: No such file or directorySetup: 't/bin/make-sandbox-dir't/bin/make-sandbox-dir fails: No such file or directorySetup: 't/bin/make-tests't/bin/make-tests fails: No such file or directoryChecking if your kit is complete...
Warning: the following files are missing in your kit:
t/bin/make-tests~
Please inform the author.
Generating a Unix-style Makefile
Writing Makefile for Module::FromPerlVer
Writing MYMETA.yml and MYMETA.json
/tmp/b/Module-FromPerlVer-0.005005> make test
cp lib/Module/FromPerlVer.pm blib/lib/Module/FromPerlVer.pm
cp lib/Module/FromPerlVer/Git.pm blib/lib/Module/FromPerlVer/Git.pm
cp lib/Module/FromPerlVer/Dir.pm blib/lib/Module/FromPerlVer/Dir.pm
cp lib/Module/FromPerlVer/Extract.pm blib/lib/Module/FromPerlVer/Extract.pm
PERL_DL_NONLAZY=1 "/usr/pkg/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/*/*.t
t/00-usable.t ................ ok
t/01-default-args.t .......... 1/? # Require succeeds: VERSION = 0.001000
# Failed test 'Failed import: Bogus source_prefix: no 'version' in or above '/tmp/b/Module-FromPerlVer-0.005005/t' at /tmp/b/Module-FromPerlVer-0.005005/blib/lib/Module/FromPerlVer.pm line 261.
# '
# at t/01-default-args.t line 28.
Can't locate object method "source_prefix" via package "Module::FromPerlVer" at t/01-default-args.t line 50.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 9.
t/01-default-args.t .......... Dubious, test returned 2 (wstat 512, 0x200)
Failed 1/9 subtests
t/10-dir-defaults-no_copy.t .. 1/?
# Failed test 'use Module::FromPerlVer;'
# at t/10-dir-defaults-no_copy.t line 8.
# Tried to use 'Module::FromPerlVer'.
# Error: Bogus source_prefix: no 'version' in or above '/tmp/b/Module-FromPerlVer-0.005005/t' at /tmp/b/Module-FromPerlVer-0.005005/blib/lib/Module/FromPerlVer.pm line 261.
# BEGIN failed--compilation aborted at t/10-dir-defaults-no_copy.t line 8.
Bailout called. Further testing stopped: Module::FromPerlVer is not usable.
FAILED--Further testing stopped: Module::FromPerlVer is not usable.
*** Error code 255
Stop.
make: stopped in /tmp/b/Module-FromPerlVer-0.005005
The failure seems to be universal:
https://www.cpantesters.org/distro/M/Module-FromPerlVer.html?oncpan=1&distmat=1&version=0.005005&grade=3
is all red since about 5.000000
I'm really curious what makes it work in your environment. Can you try in a sandbox/empty vm?
Thomas