On 3 Sep 2004, at 17:19, David Wheeler wrote:
On Sep 2, 2004, at 8:58 PM, Darren Duncan wrote:
In order for 'make test' to see a perl module that is being stored under the t/ directory in a Perl module distribution, rather than the lib/ directory with the main modules, I found that adding a simple "use lib 't/';" (or in my case, "use lib 't/lib/';") to the top of each of my t/*.t files did the trick. No change to the Makefile.PL necessary.
For platform compatibility, I suggest this, instead:
use File::Spec; use lib File::Spec->catdir(qw(t lib));
I thought 'use lib' (or perl's require internals) fixed this stuff up internally anyhow?
Matt.
