[mp2] additional apr/apr-ext tests

2004-07-14 Thread Randy Kobes
While it was relatively fresh in my mind (I'm going to a workshop next week), I converted a set of the apr tests to use a common base under t/lib/TestAPRlib/ for both the t/apr/ and t/apr-ext/ tests. This is at http://www.apache.org/~randyk/t_apr.tar.gz, which unpacks into a series of individual di

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Thanks Joe, now committed with a few tweaks. Now passes tests with both 5.6 and 5.8 (skipping values sub-tests for 5.6). -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide -

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: [...] That's a good point - what about the following, which should also include Marcus' case of using MP_APXS instead +1, but the style is not right. +if (Apache::TestConfig::WIN32) { +my $ap_bindir = $build->apr_bindir(); +if (! $ap_bindir) { +$ap

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Randy Kobes
On Wed, 14 Jul 2004, Stas Bekman wrote: > doh! I forgot to send it :) :) > Randy Kobes wrote: > > On Wed, 14 Jul 2004, Stas Bekman wrote: > > > > > >>Markus Wichitill wrote: > >> > Adding MP_AP_PREFIX/bin > to your PATH is the simplest approach to this (I'll have > to see about doing

Re: [mp2 patch] $Apache2::VERSION

2004-07-14 Thread Stas Bekman
So I suppose we should go with: our $VERSION = do { require Apache2; require mod_perl; $mod_perl::VERSION }; -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://p

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Stas Bekman
doh! I forgot to send it :) Randy Kobes wrote: On Wed, 14 Jul 2004, Stas Bekman wrote: Markus Wichitill wrote: Adding MP_AP_PREFIX/bin to your PATH is the simplest approach to this (I'll have to see about doing this automatically for the tests). How about this? I'm not sure what is it for, too muc

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: No, I wasn't thinking of that possibility; I just thought MP_AP_PREFIX would be simpler, but I forgot about using MP_APXS instead. What about the following - it tries both, and if neither are defined, it give up. === Ind

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Stas Bekman
Markus Wichitill wrote: It comes about because, when running the tests, Apache may need certain external dlls in the Apache bin/ directory. The PATH is used to search for these dlls. What about the following? +my $ap_bindir = File::Spec->catdir($build->{MP_AP_PREFIX}, 'bin'); That doesn't wor

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Randy Kobes
On Thu, 15 Jul 2004, Markus Wichitill wrote: > > It comes about because, when running the tests, Apache > > may need certain external dlls in the Apache bin/ directory. > > The PATH is used to search for these dlls. > > > What about the following? > > +my $ap_bindir = File::Spec->catdir($build

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Markus Wichitill
It comes about because, when running the tests, Apache may need certain external dlls in the Apache bin/ directory. The PATH is used to search for these dlls. What about the following? +my $ap_bindir = File::Spec->catdir($build->{MP_AP_PREFIX}, 'bin'); That doesn't work with "perl Makefile.PL

Re: cvs commit: modperl-2.0/t/response/TestAPR table.pm

2004-07-14 Thread Stas Bekman
[EMAIL PROTECTED] wrote: randyk 2004/07/14 18:32:26 Modified:t/apr-ext table.t t/response/TestAPR table.pm Added: t/lib/TestAPRlib table.pm Log: put common tests for APR::Table under t/lib/TestAPRlib/table.pm, to be run from both t/apr-ext/table.t and t/apr/t

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Randy Kobes
On Wed, 14 Jul 2004, Stas Bekman wrote: > Markus Wichitill wrote: > >>Adding MP_AP_PREFIX/bin > >>to your PATH is the simplest approach to this (I'll have > >>to see about doing this automatically for the tests). > > > > How about this? > > I'm not sure what is it for, too much context removed, bu

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Joe Schaefer wrote: ? Perhaps ? config.nice Index: docs/api/APR/Table.pod Thanks Joe. -- __ Stas BekmanJAm_pH --> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EM

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: [ patch snipped ] Works great for me on i686-linux (perl-5.8.4) with Apache/2.0.50 prefork. I was just about to commit a patch so as a common block of code could run tests under t/apr/ and t/apr-ext/. Should I hold off on that (as it involves changing t/apr-ext/apr.t, and so woul

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Randy Kobes
[ patch snipped ] Works great for me on i686-linux (perl-5.8.4) with Apache/2.0.50 prefork. I was just about to commit a patch so as a common block of code could run tests under t/apr/ and t/apr-ext/. Should I hold off on that (as it involves changing t/apr-ext/apr.t, and so would break Joe's pat

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Joe Schaefer
? Perhaps ? config.nice Index: docs/api/APR/Table.pod === RCS file: /home/cvspublic/modperl-docs/src/docs/2.0/api/APR/Table.pod,v retrieving revision 1.9 diff -u -r1.9 Table.pod --- docs/api/APR/Table.pod 22 May 2004 02:03:26 - 1.9

Re: [mp2] adding t/lib to httpd.conf

2004-07-14 Thread Randy Kobes
On Wed, 14 Jul 2004, Stas Bekman wrote: > Stas Bekman wrote: > > Randy Kobes wrote: > > > >> On Wed, 14 Jul 2004, Randy Kobes wrote: > >> > >>> For making the tests for apr/apr-ext share a common > >>> base under modperl-2.0/t/lib/TestAPRlib/, one must > >>> at present 'use lib q(.)' in the ap

Re: [mp2] adding t/lib to httpd.conf

2004-07-14 Thread Stas Bekman
Stas Bekman wrote: Randy Kobes wrote: On Wed, 14 Jul 2004, Randy Kobes wrote: For making the tests for apr/apr-ext share a common base under modperl-2.0/t/lib/TestAPRlib/, one must at present 'use lib q(.)' in the appropriate places for both the t/apr/ and t/apr-ext/ tests. Would the following

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Joe Schaefer wrote: [...] In which case we first need to find out how to clearly indicate to a user that values() are broken. values() has *never, ever* worked for multivalued keys. This is a bugfix for values(), and it requires 5.8.0 or better. The remainder of the patch fixes each() (which agai

Re: [mp2] adding t/lib to httpd.conf

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: On Wed, 14 Jul 2004, Randy Kobes wrote: For making the tests for apr/apr-ext share a common base under modperl-2.0/t/lib/TestAPRlib/, one must at present 'use lib q(.)' in the appropriate places for both the t/apr/ and t/apr-ext/ tests. Would the following patch be OK to add

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Stas Bekman
Markus Wichitill wrote: Adding MP_AP_PREFIX/bin to your PATH is the simplest approach to this (I'll have to see about doing this automatically for the tests). How about this? I'm not sure what is it for, too much context removed, but I guess Randy knows what is it about. I have only one comment r

Re: [mp2] adding t/lib to httpd.conf

2004-07-14 Thread Randy Kobes
On Wed, 14 Jul 2004, Randy Kobes wrote: > For making the tests for apr/apr-ext share a common > base under modperl-2.0/t/lib/TestAPRlib/, one must > at present 'use lib q(.)' in the appropriate > places for both the t/apr/ and t/apr-ext/ tests. > Would the following patch be OK to add this to

Re: [mp2] adding t/lib to httpd.conf

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: For making the tests for apr/apr-ext share a common base under modperl-2.0/t/lib/TestAPRlib/, one must at present 'use lib q(.)' in the appropriate places for both the t/apr/ and t/apr-ext/ tests. Would the following patch be OK to add this to httpd.conf, so one doesn't have

Re: Trying to test current apreq2 CVS

2004-07-14 Thread Markus Wichitill
> Adding MP_AP_PREFIX/bin > to your PATH is the simplest approach to this (I'll have > to see about doing this automatically for the tests). How about this? Index: Makefile.PL === RCS file: /home/cvspublic/modperl-2.0/Makefile.PL,v r

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: > Joe Schaefer wrote: [...] > > I didn't notice the 5.6.x issue until after I submitted the patch, > > however the fix for that is very simple, so I'd prefer to wait until > > the patch is added before adding the 2-3 neded #ifdef 's to > > modperl_common_u

[mp2] adding t/lib to httpd.conf

2004-07-14 Thread Randy Kobes
For making the tests for apr/apr-ext share a common base under modperl-2.0/t/lib/TestAPRlib/, one must at present 'use lib q(.)' in the appropriate places for both the t/apr/ and t/apr-ext/ tests. Would the following patch be OK to add this to httpd.conf, so one doesn't have to repeat it? =

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: What about the 5.8.1 requirement? mp2 requires 5.6.1, will it work there? No, the mg_copy slot in MGVTBL wasn't added until 5.8.0, so it will not work (probably won't compile?) for 5.6.x. Unfortunately I didn't notice the 5.6.x issue u

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: > What about the 5.8.1 requirement? mp2 requires 5.6.1, will it work > there? No, the mg_copy slot in MGVTBL wasn't added until 5.8.0, so it will not work (probably won't compile?) for 5.6.x. Unfortunately I didn't notice the 5.6.x issue until after I sub

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: [...] So, is it good at all if we add this overhead? I understand that the patch that you've sent following this email includes that copying, right? No- the patch avoids this copying overhead by simply invoking SvGETMAGIC as soon as th

Re: [mp2] scfg undeclared

2004-07-14 Thread Stas Bekman
Stas Bekman wrote: Randy Kobes wrote: I'm not sure if this isn't a problem on my end (I've cleaned things out and made sure cvs is current), but with mp2 cvs, on my linux system (Apache/2.0.50 prefork, non-multi-threaded perl-5.8.4), I get a problem building: mod_perl.c: In function `modperl_shutd

Re: [mp2] scfg undeclared

2004-07-14 Thread Stas Bekman
Randy Kobes wrote: I'm not sure if this isn't a problem on my end (I've cleaned things out and made sure cvs is current), but with mp2 cvs, on my linux system (Apache/2.0.50 prefork, non-multi-threaded perl-5.8.4), I get a problem building: cd "src/modules/perl" && make -f Makefile.modperl make[1]:

[mp2] scfg undeclared

2004-07-14 Thread Randy Kobes
I'm not sure if this isn't a problem on my end (I've cleaned things out and made sure cvs is current), but with mp2 cvs, on my linux system (Apache/2.0.50 prefork, non-multi-threaded perl-5.8.4), I get a problem building: cd "src/modules/perl" && make -f Makefile.modperl make[1]: Entering director

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Joe Schaefer
Stas Bekman <[EMAIL PROTECTED]> writes: [...] > So, is it good at all if we add this overhead? I understand that the > patch that you've sent following this email includes that copying, right? No- the patch avoids this copying overhead by simply invoking SvGETMAGIC as soon as the value is crea

Re: [mp2] apr/apr-ext table test

2004-07-14 Thread Randy Kobes
On Tue, 13 Jul 2004, Stas Bekman wrote: > Randy Kobes wrote: > > Here's a diff for making the code for the APR::Table > > test run from both t/apr/ and t/apr-ext/. > > +1, perfect. > > > +require TestAPRlib::table; > > why not 'use'? OK, I'll change that. > Further, I'd suggest to have a paralle

Re: ModPerl-Registry t/basic.t crashes Apache

2004-07-14 Thread Stas Bekman
Philippe M. Chiasson wrote: [...] Philippe, where are you with this $bb->cleanup issue? Well, things are indeed strange. I've just updated httpd an hour ago and I can still reproduce the problem here, on my work machine. At home, on my other almost identical linux box (both Fedora Core 2), I can't

Re: APR::Table each() support for multivalued keys

2004-07-14 Thread Stas Bekman
Joe Schaefer wrote: Stas Bekman <[EMAIL PROTECTED]> writes: Joe Schaefer wrote: [...] :-) Not for this in mp2. Technically the problem lies with Perl_sv_setsv_flags, which does not copy magic (except for vstrings in 5.8.1+, which explains the current apreq2 code). Once I better understand the