On Fri, 11 May 2001, Geoffrey Young wrote:
> it works fine against 1.3 mod_perl. I've been writing a test suite for
> Apache::Dispatch consisting of a few different <Locations> and the like.
cool.
> The only problem I was having was that I had to put
> use lib qw(../blib/lib ../blib/arch);
> in my modperl_extras.pl - the tests run with /usr/bin/perl -Iblib/arch
> -Iblib/lib but PerlModule apparently doesn't see those directories, which
> may or may not have been expected, depending on who you are :)
>
> it would be nice to have those in by default for the test suite - it took me
> a while to figure out that my tests were running on my installed module
> instead of the one I was testing :)
they are supposed to be in t/conf/modperl_inc.pl (generated by
Apache::TestConfigPerl) and the generated t/conf/modperl_startup.pl
attempts to require that before modperl_extra.pl
% cat ap/modperl-2.0/t/conf/modperl_inc.pl
#WARNING: this file is generated, do not edit
use lib '/home/dougm/ap/modperl-2.0/lib';
use lib '/home/dougm/ap/modperl-2.0/blib/lib';
use lib '/home/dougm/ap/modperl-2.0/blib/arch';
use lib '/home/dougm/ap/modperl-2.0/t/response';
use lib '/home/dougm/ap/modperl-2.0/t/protocol';
use lib '/home/dougm/ap/modperl-2.0/t/hooks';
use lib '/home/dougm/ap/modperl-2.0/t/filter';
1;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]