The Seekers of Perl Wisdom may not be the best place in the known universe for a bug report, but I know the maintainer of the module I am struggling with, bingos, is active here. So here goes.

The test suite for cpanplus is the creature we need to tame.

I am working with cpanplus v0.9916 and on CygwinPerl v5.40.2

First off, Params::Validate reports an error, exact text shown below, in Dist/MM.pm:

Key 'dir' (t/20_CPANPLUS-Dist-MM.t) is of invalid type for 'CPANPLUS::Internals::Utils::_chdir' provided by CPANPLUS::Dist::MM::create at /cygdrive/c/Users/somia/AppData/Local/.cpanp/.cpanplus/5.40.2/build/nDoXKs5RLj/CPANPLUS-0.9916/t/../lib/CPANPLUS/Dist/MM.pm line 610.

I inserted some dumb simple code to check what is being passed, the output is:

----------------------------------------------------------------------------
Args being passed to Params::Validate: dir|t/20_CPANPLUS-Dist-MM.t
----------------------------------------------------------------------------

I will provide a plate of Buffalo chicken wings to the monk or nun that can work out why that error is appearing. ;-) I've looked and looked and cannot figure it out.

The next matter is equally baffling. I have DBD::SQLite installed to my system but the test suite reports skipping test because "SQLite engine not available":

t/031_CPANPLUS-Internals-Source-SQLite.t ...... skipped: SQLite engine not available
t/032_CPANPLUS-Internals-Source-via-sqlite.t .. skipped: SQLite engine not available

Lastly, the tests in the suite themselves seem to be out of order somehow:

Test Summary Report
-------------------
t/20_CPANPLUS-Dist-MM.t                     (Wstat: 0 Tests: 87 Failed: 77)
  Failed tests:  1, 1, 1, 1, 11-83
  Parse errors: Plan (1..1) must be at the beginning or end of the TAP output
                Tests out of sequence.  Found (1) but expected (11)
                Tests out of sequence.  Found (11) but expected (12)
                Tests out of sequence.  Found (12) but expected (13)
                Tests out of sequence.  Found (13) but expected (14)
Displayed the first 5 of 83 TAP syntax errors.
Re-run prove with the -p option to see them all.
Files=20, Tests=1712, 82 wallclock secs ( 0.34 usr  0.47 sys + 20.69 cusr 50.89 csys = 72.40 CPU)
Result: FAIL
Failed 1/20 test programs. 77/1712 subtests failed.

Anyone able to provide suggestions for how to seek and destroy these annoying errors will have my sincere gratitude.

May 03, 2025 at 21:01 UTC

A just machine to make big decisions
Programmed by fellows (and gals) with compassion and vision
We'll be clean when their work is done
We'll be eternally free yes, and eternally young
Donald Fagen —> I.G.Y.
(Slightly modified for inclusiveness)


In reply to cpanplus test suite seems to be a bit ruinous by Intrepid

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.