Personally, I would prefer if Prima were smarter about its configuration files and could possibly find out whether it is installed or whether it is running uninstalled via PERL5LIB. But as I don't know anything about Prima, that just might not be possible because the C libraries look in fixed special locations. Another thing that might trip you up is that the tests seem to be run without a display and Prima possibly wasn't installed with support to run headless.

I understand that you don't like getting FAIL reports for things that you think are beyond your control and if adapting Prima is out of the question, I would try the following approach to the Image::Match test suite, by having a file 000_prima.t which mainly checks that Prima is available:

#!/usr/bin/perl -w use strict; use Test::More; if (! eval 'use Prima; 1') { BAIL_OUT("Prima not installed properly."); }; ok($Prima::VERSION, "Found Prima version $Prima::VERSION");

That file will be run as one of the first files and it will stop all testing unless Prima is found to be working well enough for a use Prima;.


In reply to Re: Need advice about CPAN tests by Corion
in thread Need advice about CPAN tests by dk

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.