You are viewing a plain text version of this content. The canonical link for it is here.
Posted to test-cvs@httpd.apache.org by ge...@apache.org on 2004/07/12 19:03:50 UTC
cvs commit: httpd-test/perl-framework/t/apache errordoc.t
geoff 2004/07/12 10:03:50
Modified: perl-framework/t/apache errordoc.t
Log:
'ErrorDocument default' backported to 2.0
Revision Changes Path
1.3 +1 -2 httpd-test/perl-framework/t/apache/errordoc.t
Index: errordoc.t
===================================================================
RCS file: /home/cvs/httpd-test/perl-framework/t/apache/errordoc.t,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- errordoc.t 12 Jul 2004 16:44:47 -0000 1.2
+++ errordoc.t 12 Jul 2004 17:03:49 -0000 1.3
@@ -59,8 +59,7 @@
'/redefine/notfound.html code');
# 1.3 requires quotes for hard-coded messages
- my $expected = have_min_apache_version('2.1') ? qr/Not Found/ :
- have_apache(2) ? 'default' :
+ my $expected = have_apache(2) ? qr/Not Found/ :
qr/Additionally, a 500/;
ok t_cmp($content,
Re: cvs commit: httpd-test/perl-framework/t/apache errordoc.t
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> When testing for *bugs*, there's certainly a debate about whether to
> skip tests for bugs in older releases (I don't care much are about
> that). For *features*, I don't think there's much to argue about. We
> know this feature works only in 2.0.51 and later, so why test for it in
> earlier releases?
ah, good point.
ok, then, +1 by me for the errordoc.t patch, since it is a new feature we're
testing against, and the path that just makes the most sense - make things
right while you can :)
andre and I can mess around with the mod_include stuff if anyone else
complains :)
--Geoff
Re: cvs commit: httpd-test/perl-framework/t/apache errordoc.t
Posted by Joe Orton <jo...@redhat.com>.
On Fri, Jul 16, 2004 at 09:08:42AM -0400, Geoffrey Young wrote:
>
> > This makes the test fail against 2.0.50, but it's just a lack-of-feature
> > right, so OK if I half-revert this?
>
> the last time I asked about this, the consensus was that the perl-framework
> is expected to be for developer use only, expected to run (and in some cases
> compile) successfully only on current CVS 1.3/2.0/2.1.
Well, my position is: I don't care whether it passes against 1.3 (which
it doesn't :), I do care that it works against the latest 2.0 release
along with tip-of-2.0-branch and 2.1/HEAD as you say.
When testing for *bugs*, there's certainly a debate about whether to
skip tests for bugs in older releases (I don't care much are about
that). For *features*, I don't think there's much to argue about. We
know this feature works only in 2.0.51 and later, so why test for it in
earlier releases?
(this is the only failure against 2.0.50 other than the mod_include
unexpected passes fwiw)
Regards,
joe
Re: cvs commit: httpd-test/perl-framework/t/apache errordoc.t
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
> This makes the test fail against 2.0.50, but it's just a lack-of-feature
> right, so OK if I half-revert this?
the last time I asked about this, the consensus was that the perl-framework
is expected to be for developer use only, expected to run (and in some cases
compile) successfully only on current CVS 1.3/2.0/2.1.
IIRC there are some things that will definitely fail in older httpd releases
(some mod_include stuff comes to mind) and we haven't coded around
have_min_apache_version for exactly this reason.
>
> --- t/apache/errordoc.t 12 Jul 2004 17:03:49 -0000 1.3
> +++ t/apache/errordoc.t 16 Jul 2004 12:16:25 -0000
> @@ -59,7 +59,8 @@
> '/redefine/notfound.html code');
>
> # 1.3 requires quotes for hard-coded messages
> - my $expected = have_apache(2) ? qr/Not Found/ :
> + my $expected = have_min_apache_version('2.0.51') ? qr/Not Found/ :
> + have_apache(2) ? 'default' :
> qr/Additionally, a 500/;
>
> ok t_cmp($content,
I'm not necessarily against this, except that this isn't the only test that
will fail if you use something less than cvs.
so, perhaps now is a good time to reevaluate the prior consensus. is the
perl-framework a developer tool or should we be accounting for httpd changes
between releases?
I just ran against 2.0.46 (which is the oldest httpd the mod_perl currently
supports, so I keep one laying around :) and the only failures are from
errordoc.t and include.t. while errordoc.t is easy enough to fix with your
patch, mod_include may be a bit more difficult, since IIRC the changes
spanned several httpd releases.
--Geoff
Re: cvs commit: httpd-test/perl-framework/t/apache errordoc.t
Posted by Joe Orton <jo...@redhat.com>.
On Mon, Jul 12, 2004 at 05:03:50PM -0000, geoff@apache.org wrote:
> --- errordoc.t 12 Jul 2004 16:44:47 -0000 1.2
> +++ errordoc.t 12 Jul 2004 17:03:49 -0000 1.3
> @@ -59,8 +59,7 @@
> '/redefine/notfound.html code');
>
> # 1.3 requires quotes for hard-coded messages
> - my $expected = have_min_apache_version('2.1') ? qr/Not Found/ :
> - have_apache(2) ? 'default' :
> + my $expected = have_apache(2) ? qr/Not Found/ :
> qr/Additionally, a 500/;
>
This makes the test fail against 2.0.50, but it's just a lack-of-feature
right, so OK if I half-revert this?
--- t/apache/errordoc.t 12 Jul 2004 17:03:49 -0000 1.3
+++ t/apache/errordoc.t 16 Jul 2004 12:16:25 -0000
@@ -59,7 +59,8 @@
'/redefine/notfound.html code');
# 1.3 requires quotes for hard-coded messages
- my $expected = have_apache(2) ? qr/Not Found/ :
+ my $expected = have_min_apache_version('2.0.51') ? qr/Not Found/ :
+ have_apache(2) ? 'default' :
qr/Additionally, a 500/;
ok t_cmp($content,