perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject Re: t\protocol\pseudo_http.t failure
Date Tue, 06 Jul 2004 16:29:46 GMT
On Tue, 6 Jul 2004, Stas Bekman wrote:

> Randy Kobes wrote:
[ .. ]
> > Here's a patch that, for Win32, will generate this file
> > at the 'perl Makefile.PL' stage, and then use it in the
> > tests.
>
> Why can't it be generated once and committed? We should
> definitely not pollute the already overcrowded
> Makefile.PL, to fix some minor issue with a test.

Sorry about that - I had misread the earlier messages that
it should be generated by the user. Here's a patch that
uses an existing file:
=========================================================
Index: t/htdocs/protocols/basic-auth-win32
===================================================================
RCS file: t/htdocs/protocols/basic-auth-win32
diff -N t/htdocs/protocols/basic-auth-win32
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ t/htdocs/protocols/basic-auth-win32	6 Jul 2004 16:21:51 -0000
@@ -0,0 +1 @@
+stas:$apr1$79......$XMGOmVnODqc1UKruFgwjM.
Index: t/protocol/TestProtocol/pseudo_http.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/t/protocol/TestProtocol/pseudo_http.pm,v
retrieving revision 1.2
diff -u -r1.2 pseudo_http.pm
--- t/protocol/TestProtocol/pseudo_http.pm	6 Jul 2004 15:49:13 -0000	1.2
+++ t/protocol/TestProtocol/pseudo_http.pm	6 Jul 2004 16:21:51 -0000
@@ -143,7 +143,14 @@
                 Require user stas
                 Satisfy any
                 # htpasswd -bc basic-auth stas foobar
-                AuthUserFile @ServerRoot@/htdocs/protocols/basic-auth
+                <IfModule !mpm_winnt.c>
+                    AuthUserFile @ServerRoot@/htdocs/protocols/basic-auth
+                </IfModule>
+                # format of auth files differ on Win32
+                # htpasswd.exe -bc basic-auth-win32 stas foobar
+                <IfModule mpm_winnt.c>
+                    AuthUserFile @ServerRoot@/htdocs/protocols/basic-auth-win32
+                </IfModule>
             </IfModule>
         </IfModule>
     </Location>
================================================================

-- 
best regards,
randy

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


Mime
View raw message