You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/08/03 10:35:07 UTC
./t/TEST to trigger make
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').
How do you handle this issue?
Thanks!
_____________________________________________________________________
Stas Bekman JAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide http://perl.apache.org/guide
mailto:stas@stason.org http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: ./t/TEST to trigger make
Posted by Doug MacEachern <do...@covalent.net>.
On Sun, 5 Aug 2001, Stas Bekman wrote:
> is this ok?
yeah, that'd be fine.
> 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:stas@stason.org http://apachetoday.com http://eXtropia.com/
> http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: ./t/TEST to trigger make
Posted by Stas Bekman <st...@stason.org>.
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:stas@stason.org http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org
Re: ./t/TEST to trigger make
Posted by Doug MacEachern <do...@covalent.net>.
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.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org