You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2011/09/03 19:45:26 UTC

svn commit: r1164895 - in /httpd/test/framework/trunk/t: apache/maxranges.t conf/extra.conf.in

Author: covener
Date: Sat Sep  3 17:45:26 2011
New Revision: 1164895

URL: http://svn.apache.org/viewvc?rev=1164895&view=rev
Log:
enable maxranges tests for 2.2.  

Is there a smarter way to do the ifVersion check?


Modified:
    httpd/test/framework/trunk/t/apache/maxranges.t
    httpd/test/framework/trunk/t/conf/extra.conf.in

Modified: httpd/test/framework/trunk/t/apache/maxranges.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/maxranges.t?rev=1164895&r1=1164894&r2=1164895&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/maxranges.t (original)
+++ httpd/test/framework/trunk/t/apache/maxranges.t Sat Sep  3 17:45:26 2011
@@ -39,7 +39,7 @@ my @test_cases = (
     { url => "/maxranges/2/byteranges.txt" ,       h => "0-100,200-300", status => "206"},
     { url => "/maxranges/2/byteranges.txt" ,       h => "0-100,200-300,400-500", status => "200"},
 );
-plan tests => scalar(@test_cases), need need_lwp, need_min_apache_version('2.3.15'), 
+plan tests => scalar(@test_cases), need need_lwp, need_min_apache_version('2.3.15') || need_min_apache_version('2.2.21'), 
               need_module('mod_alias');
 
 

Modified: httpd/test/framework/trunk/t/conf/extra.conf.in
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/conf/extra.conf.in?rev=1164895&r1=1164894&r2=1164895&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/conf/extra.conf.in (original)
+++ httpd/test/framework/trunk/t/conf/extra.conf.in Sat Sep  3 17:45:26 2011
@@ -836,4 +836,19 @@ LimitRequestFields    32
       </Location>
     </IfModule>
   </IfVersion>
+  <IfVersion >= 2.2.21>
+    <IfModule mod_alias.c>
+      AliasMatch /maxranges/([^/])+/ @SERVERROOT@/htdocs/apache/chunked/byteranges.txt
+      <Location /maxranges/0/>
+        MaxRanges 0 
+      </Location>
+      <Location /maxranges/1/>
+        MaxRanges 1
+      </Location>
+      <Location /maxranges/2/>
+        MaxRanges 2
+      </Location>
+    </IfModule>
+  </IfVersion>
+
 </IfDefine>