Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Doug MacEachern
On Wed, 17 Oct 2001, Rodent of Unusual Size wrote:
 
> Having some options prefixed with '-' and some not isn't
> exactly intuitive.. :-)

if you look at the test-cvs list and other discussions, you'll see we're
in the middle of fixing that.

>  Also, the -clean failure: line 703
> is
> 
>   opendir(my $dh, $_);

fixed.

you might also hit another problem that we've yet to fix.  if t/TEST dies
in the middle of generating conf files, you'll need to:
% find t/conf -name "*.conf" | xargs rm




Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Rodent of Unusual Size
Doug MacEachern wrote:
> 
> looks more like a File::Spec problem than the test kit,
> what version are you using?

Okey, upgraded from 0.6 to 0.82; Perl 5.005_03.  Now:

$ perl Makefile.PL -apxs /home/coar/web/server/bin/apxs
$ t/TEST 
!!! : no test server configured, please ...
$ t/TEST -httpd /home/coar/web/server/bin/httpd
Unknown option: httpd
$ t/TEST httpd /home/coar/web/server/bin/httpd
*** : cannot build c-modules without apxs
waiting for server to warm up...Syntax error on line 239 of ...
:port must be numeric
$ t/TEST -clean
Can't use an undefined value as a symbol reference at
  Apache-Test/lib/Apache/TestConfig.pm line 703
$ t/TEST clean
*** : cannot build c-modules without apxs
!!! : no test server configured, please ...

Having some options prefixed with '-' and some not isn't
exactly intuitive.. :-)  Also, the -clean failure: line 703
is

opendir(my $dh, $_);

I'm still finding my way through how the tests are done;
this stuff is pretty Deep Magic, and not IOTTMCO!  So I'm
not ready to try submitting fixes..
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"


Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Rodent of Unusual Size
Doug MacEachern wrote:
> 
> looks more like a File::Spec problem than the test kit,
> what version are you using?  for 5.005_03 i installed
> File-Spec-0.82 from CPAN.

0.6; I'm upgrading now..
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"


Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread William A. Rowe, Jr.
From: "Doug MacEachern" <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 12:14 PM


> On Wed, 17 Oct 2001, William A. Rowe, Jr. wrote:
>  
> > It's ok, that patch broke win32 as well... we end up with paths like
> 
> wha?  the 5.005 compat patch did not change behavior at all.  [...]
>  
> > C:/httpd-test/perl-framework/C:/httpd-test/perl-framework/t/conf
> > 
> > since it doesn't look to Unix like C:/ starts a path.
> > 
> > I'd suggest we revert, and find a better solution for Win32.
> 
> you must be talking about the patch that added this to Apache/TestRun.pm,
> right??

Yup my bad... and it solves Ken's problem, perhaps.

> BEGIN {
> #Apache likes everything to be in /unix/path/file.ext format
> $INC{'File/Spec.pm'} = __FILE__;
> require File::Spec::Unix;
> @File::Spec::ISA = qw(File::Spec::Unix);
> }




Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Doug MacEachern
On Wed, 17 Oct 2001, William A. Rowe, Jr. wrote:
 
> It's ok, that patch broke win32 as well... we end up with paths like

wha?  the 5.005 compat patch did not change behavior at all.  the commit
message says:
  backport to 5.005:
  - open my $fh, ... => my $fh = Symbol::gensym(); open $fh, ...
  - our @foo => use vars qw(@foo)
  - create a stub warnings.pm
  - complain if File::Spec::Functions does not exist

the latter two don't happen if $] >= 5.006, and there's no way the other
two would change how paths are looked at.
 
> C:/httpd-test/perl-framework/C:/httpd-test/perl-framework/t/conf
> 
> since it doesn't look to Unix like C:/ starts a path.
> 
> I'd suggest we revert, and find a better solution for Win32.

you must be talking about the patch that added this to Apache/TestRun.pm,
right??


BEGIN {
#Apache likes everything to be in /unix/path/file.ext format
$INC{'File/Spec.pm'} = __FILE__;
require File::Spec::Unix;
@File::Spec::ISA = qw(File::Spec::Unix);
}




Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Doug MacEachern
On Wed, 17 Oct 2001, Rodent of Unusual Size wrote:
 
> $ t/TEST
> "$Verbose" is not exported by the File::Spec module at 
> /usr/lib/perl5/5.00503/File/Spec/Unix.pm line 11

looks more like a File::Spec problem than the test kit, what version are
you using?  for 5.005_03 i installed File-Spec-0.82 from CPAN.

% perl -MFile::Spec -le 'print $File::Spec::VERSION'
0.82




Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread William A. Rowe, Jr.
From: "Rodent of Unusual Size" <[EMAIL PROTECTED]>
Sent: Wednesday, October 17, 2001 10:28 AM


> [EMAIL PROTECTED] wrote:
> > 
> > dougm   01/10/16 13:33:10
> > 
> >   Modified:perl-framework Makefile.PL
> >perl-framework/t TEST.PL
> >   Log:
> >   work with Perl 5.005
> 
> Not entirely, alas:
> 
> $ t/TEST
> "$Verbose" is not exported by the File::Spec module at 
> /usr/lib/perl5/5.00503/File/Spec/Unix.pm line 11
> Can't continue after import errors at 
> /usr/lib/perl5/5.00503/File/Spec/Unix.pm line 11
> BEGIN failed--compilation aborted at Apache-Test/lib/Apache/TestRun.pm line 
> 11.
> BEGIN failed--compilation aborted at t/TEST line 8.

It's ok, that patch broke win32 as well... we end up with paths like

C:/httpd-test/perl-framework/C:/httpd-test/perl-framework/t/conf

since it doesn't look to Unix like C:/ starts a path.

I'd suggest we revert, and find a better solution for Win32.




Re: cvs commit: httpd-test/perl-framework/t TEST.PL

2001-10-17 Thread Rodent of Unusual Size
[EMAIL PROTECTED] wrote:
> 
> dougm   01/10/16 13:33:10
> 
>   Modified:perl-framework Makefile.PL
>perl-framework/t TEST.PL
>   Log:
>   work with Perl 5.005

Not entirely, alas:

$ t/TEST
"$Verbose" is not exported by the File::Spec module at 
/usr/lib/perl5/5.00503/File/Spec/Unix.pm line 11
Can't continue after import errors at /usr/lib/perl5/5.00503/File/Spec/Unix.pm 
line 11
BEGIN failed--compilation aborted at Apache-Test/lib/Apache/TestRun.pm line 11.
BEGIN failed--compilation aborted at t/TEST line 8.
-- 
#kenP-)}

Ken Coar, Sanagendamgagwedweinini  http://Golux.Com/coar/
Author, developer, opinionist  http://Apache-Server.Com/

"All right everyone!  Step away from the glowing hamburger!"