On Sat, 4 Aug 2001, Doug MacEachern wrote:
> On Fri, 3 Aug 2001, Stas Bekman wrote:
>
> > Doug,
> >
> > I find it very incovenient to run 'make' everytime I change
> > Apache/TestConfig.pm or similar files. Of course I could run 'make test'
> > but then it runs all tests, whereas I want to run only one test to
> > exercise something that I work on.
> >
> > Basically I want:
> >
> > ./t/TEST protocol/echo
> >
> > to detect whether some src files were modified and update them for me (so
> > ./t/TEST will act like 'make').
> >
> > Alternatively I'd like to use the source dir Apache-Test/lib, while I
> > develop, so I don't have to copy the files over (or run 'make').
>
> the tests already point to Apache-Test/lib:
> % grep Apache-Test/lib t/TEST
> use lib map { "$_/Apache-Test/lib" } qw(. ..);
>
> the server side might not, but adding Apache-Test/lib to modperl_inc.pl
> would fix that.
is this ok?
Index: ./Apache-Test/lib/Apache/TestConfigPerl.pm
===================================================================
RCS file:
/home/cvs/httpd-test/perl-framework/Apache-Test/lib/Apache/TestConfigPerl.pm,v
retrieving revision 1.14
diff -u -r1.14 TestConfigPerl.pm
--- ./Apache-Test/lib/Apache/TestConfigPerl.pm 2001/07/09 16:04:44
1.14
+++ ./Apache-Test/lib/Apache/TestConfigPerl.pm 2001/08/05 03:43:59
@@ -51,6 +51,9 @@
for (@trys) {
push @$inc, $_ if -d $_;
}
+
+ # allow live testing of the Apache-Test
+ unshift @$inc, catfile($top, 'Apache-Test', 'lib');
}
sub write_pm_test {
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:[EMAIL PROTECTED] http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]