O wise monks.

I am trying to retrofit a test suite on an existing application the directories of which have been laid out in a nonstandard way. I am unable to change the following conditions:

  1. Directory structure must stay as it is
  2. Have to use ExtUtils::MakeMaker

The difficulty that I am having is in advising make test to look for module files in a location other than blib/lib/

I am aware that I could put a use lib ... line at the top of every test and also that, alternatively I could specify a PM => {} mapping in the Makefile.PL to copy libraries to another location. Both of these solutions seem messy to me and possibly troublesome to maintain in the longer term.

Looking through the docs for ExtUtils::MakeMaker I am interested to note the PMLIBDIRS option that tells it (EUMM) where to look for nonstandard modules. However, when using this solution, make reproduces the whole path under blib/, again stopping make test from doing its thing.

I'm pretty sure I've explored the possibilities available to me but wonder if any of the whizz-kids know of a clean and simple solution to my troubles?

Any advice greatly appreciated,

Update: note that I am not asking how to tell Perl to look in a directory other than those usually found in @INC here,

MB

In reply to make test when modules in funny locations by matthewb

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.