httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1103127 - /httpd/test/framework/trunk/t/apache/expr.t
Date Sat, 14 May 2011 15:13:06 GMT
Author: sf
Date: Sat May 14 15:13:06 2011
New Revision: 1103127

URL: http://svn.apache.org/viewvc?rev=1103127&view=rev
Log:
Add tests for the -F and -U operators

Modified:
    httpd/test/framework/trunk/t/apache/expr.t

Modified: httpd/test/framework/trunk/t/apache/expr.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/apache/expr.t?rev=1103127&r1=1103126&r2=1103127&view=diff
==============================================================================
--- httpd/test/framework/trunk/t/apache/expr.t (original)
+++ httpd/test/framework/trunk/t/apache/expr.t Sat May 14 15:13:06 2011
@@ -15,6 +15,8 @@ my $file_foo = Apache::Test::vars('serve
 my $dir_foo = Apache::Test::vars('serverroot') . '/htdocs/expr';
 my $file_notexist = Apache::Test::vars('serverroot') . '/htdocs/expr/none';
 my $file_zero = Apache::Test::vars('serverroot') . '/htdocs/expr/zero';
+my $url_foo = '/apache/';
+my $url_notexist = '/apache/expr/none';
 my @test_cases = (
     [ 'true'  => 1     ],
     [ 'false' => 0     ],
@@ -147,6 +149,10 @@ my @test_cases = (
     [ qq[-e '$file_notexist' ] => 0 ],
     [ qq[-f '$file_notexist' ] => 0 ],
     [ qq[-S '$file_notexist' ] => 0 ],
+    [ qq[-F '$file_foo' ] => 1 ],
+    [ qq[-F '$file_notexist' ] => 0 ],
+    [ qq[-U '$url_foo' ] => 1 ],
+    [ qq[-U '$url_notexist' ] => 0 ],
     # IP match
     [ q[-R 'abc']                   => undef ],
     [ q[-R %{REMOTE_ADDR}]          => undef ],



Mime
View raw message