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 2002/04/05 21:16:22 UTC

how to make test in sub-dirs against the devel modperl 2.0?

I've noticed that modperl-2.0 subdirs defining their own test suites 
(e.g. ModPerl-Registry and soon Apache::Scoreboard) run against mod_perl 
/apache headers installed on the system and not against mod_perl that 
has been just compiled. I saw this problem when httpd has changed the 
compatibility magic numbers and now 'make test' is broken in 
ModPerl-Registry.

I've tried to use ModPerl::MM::WriteMakefile instead of the ExtUtils 
one, but the result is the same.

Any hints how to fix that?

Thanks
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: how to make test in sub-dirs against the devel modperl 2.0?

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> On Sat, 6 Apr 2002, Stas Bekman wrote:
>  
> 
>>Yes, I get these, but 'make test' is messed up.
>>Try ModPerl-Registry with this patch it definitely doesn't do what we 
>>want. Try 'make test' in it.
> 
> 
> i will try after 1.99_01 is tagged/rolled :-)

ok

>>I've applied the same to the top level in Apache::Request and it works 
>>perfectly. When it's used in the sub dir, something goes wrong.
> 
> 
> Apache::Request??  have you ported it to 2.0?

no, not yet. But I've added a test suite using Apach::Test over 1.0.
I've committed it last night.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: how to make test in sub-dirs against the devel modperl 2.0?

Posted by Doug MacEachern <do...@covalent.net>.
On Sat, 6 Apr 2002, Stas Bekman wrote:
 
> Yes, I get these, but 'make test' is messed up.
> Try ModPerl-Registry with this patch it definitely doesn't do what we 
> want. Try 'make test' in it.

i will try after 1.99_01 is tagged/rolled :-)
 
> I've applied the same to the top level in Apache::Request and it works 
> perfectly. When it's used in the sub dir, something goes wrong.

Apache::Request??  have you ported it to 2.0?



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: how to make test in sub-dirs against the devel modperl 2.0?

Posted by Stas Bekman <st...@stason.org>.
Doug MacEachern wrote:
> ModPerl::MM::WriteMakefile should work fine.
> for example, the generated WrapXS/Apache/Log/Makefile has:
> 
> #	CCFLAGS => q[ -fno-strict-aliasing -I/usr/local/include  -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -g -DMP_DEBUG -DMP_TRACE]
> #	INC => q[-I/home/dougm/apache/modperl-2.0/src/modules/perl -I/home/dougm/apache/modperl-2.0/xs -I/home/dougm/apache/farm/install/prefork-debug-shared-all-exp/include]
> 
> what do you see the the Apache-SubProcess Makefile?

Yes, I get these, but 'make test' is messed up.
Try ModPerl-Registry with this patch it definitely doesn't do what we 
want. Try 'make test' in it.

I've applied the same to the top level in Apache::Request and it works 
perfectly. When it's used in the sub dir, something goes wrong.

Index: ModPerl-Registry/Makefile.PL
===================================================================
RCS file: /home/cvs/modperl-2.0/ModPerl-Registry/Makefile.PL,v
retrieving revision 1.3
diff -u -r1.3 Makefile.PL
--- ModPerl-Registry/Makefile.PL	11 Oct 2001 19:53:04 -0000	1.3
+++ ModPerl-Registry/Makefile.PL	6 Apr 2002 04:04:14 -0000
@@ -1,9 +1,10 @@
  require 5.6.0;

-use ExtUtils::MakeMaker;
-
  use lib qw(lib ../Apache-Test/lib);

+#use ExtUtils::MakeMaker;
+use ModPerl::MM ();
+
  # enable 'make test|clean'
  use Apache::TestMM qw(test clean);

@@ -19,7 +20,7 @@
  Apache::TestMM::filter_args();
  Apache::TestMM::generate_script('t/TEST');

-WriteMakefile
+ModPerl::MM::WriteMakefile
      (
       NAME         => 'ModPerl::Registry',
       VERSION_FROM => 'lib/ModPerl/RegistryCooker.pm',




__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Re: how to make test in sub-dirs against the devel modperl 2.0?

Posted by Doug MacEachern <do...@covalent.net>.
ModPerl::MM::WriteMakefile should work fine.
for example, the generated WrapXS/Apache/Log/Makefile has:

#	CCFLAGS => q[ -fno-strict-aliasing -I/usr/local/include  -DMOD_PERL -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations -DAP_DEBUG -DAP_HAVE_DESIGNATED_INITIALIZER -g -DMP_DEBUG -DMP_TRACE]
#	INC => q[-I/home/dougm/apache/modperl-2.0/src/modules/perl -I/home/dougm/apache/modperl-2.0/xs -I/home/dougm/apache/farm/install/prefork-debug-shared-all-exp/include]

what do you see the the Apache-SubProcess Makefile?




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org