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));

Regards,

David



Reply via email to