cannot run tests when using PERL5LIB (e.g. when using local::lib)

Gabor Szabo szabgab at gmail.com
Thu Feb 11 21:59:51 UTC 2010


On Thu, Feb 11, 2010 at 11:52 PM, Gabor Szabo <szabgab at gmail.com> wrote:
> On Thu, Feb 11, 2010 at 11:37 PM, Max Kanat-Alexander
> <mkanat at bugzilla.org> wrote:
>> On 02/11/2010 01:33 PM, Gabor Szabo wrote:
>>> When trying to run ./runtests.pl the test t/001compile.t blows up as I am using
>>> local::lib and I have PERL5LIB configured to locate the privately installed
>>> modules.
>>>
>>> This patch fixes it.
>>> Does it look reasonable?
>>
>>        Hmm, why doesn't PERL5LIB get passed to the backticks?
>
> because of -T
>
>>
>>        You can just use prove on the tests, too, it works OK.
>
> I guess it would suffer from the same problem.
>
>
>>        Also, you can use install-module.pl to install modules locally in
>> Bugzilla's lib dir if you want, too, and that wouldn't require PERL5LIB.
>
> I see, I'll check that, though I'd prefer to use the standard(ish)
> installation methods.

I tried this. Part of the output looks like this:

  ABW/Template-GD-2.66.tar.gz
  /usr/bin/make -- OK
Skipping test because of notest pragma
Running make install
Installing /home/gabor/perl5/lib/perl5/Template/Plugin/GD.pm
Installing /home/gabor/perl5/lib/perl5/Template/Plugin/GD/Constants.pm
...
Installing /home/gabor/work/bugzilla/lib/man/man3/Template::Plugin::GD::Graph::points.3pm
Installing /home/gabor/work/bugzilla/lib/man/man3/Template::Plugin::GD::Graph::linespoints.3pm


So it is still installing the code in the same directory I would
install (only the man pages are installed
in under bugzilla) and that will still require the PERL5LIB I have.

Gabor



More information about the developers mailing list