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 2022/01/19 13:05:42 UTC

svn commit: r1897205 - /httpd/test/framework/trunk/t/modules/sed.t

Author: covener
Date: Wed Jan 19 13:05:42 2022
New Revision: 1897205

URL: http://svn.apache.org/viewvc?rev=1897205&view=rev
Log:
missing file from r1897203

Added:
    httpd/test/framework/trunk/t/modules/sed.t

Added: httpd/test/framework/trunk/t/modules/sed.t
URL: http://svn.apache.org/viewvc/httpd/test/framework/trunk/t/modules/sed.t?rev=1897205&view=auto
==============================================================================
--- httpd/test/framework/trunk/t/modules/sed.t (added)
+++ httpd/test/framework/trunk/t/modules/sed.t Wed Jan 19 13:05:42 2022
@@ -0,0 +1,29 @@
+use strict;
+use warnings FATAL => 'all';
+
+use Apache::Test;
+use Apache::TestRequest;
+use Apache::TestUtil;
+
+Apache::TestRequest::user_agent(keep_alive => 1);
+
+
+my @ts = (
+   # see t/conf/extra.conf.in
+   { url => "/apache/sed/out-foo/foobar.html", content => 'barbar', msg => "sed output filter", code => 200 }
+);
+
+my $tests = 2*scalar @ts;
+
+plan tests => $tests, need_module('sed');
+
+
+for my $t (@ts) {
+  my $req = GET $t->{'url'};
+  ok t_cmp($req->code, $t->{'code'}, "status code for " . $t->{'url'});
+  my $content = $req->content;
+  chomp($content);
+  ok t_cmp($content, $t->{content}, $t->{msg});
+}
+
+