1
0
Fork 0
apache2/debian/perl-framework/t/modules/directorymatch.t
Daniel Baumann f56986e2d9
Adding debian version 2.4.63-1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 11:01:27 +02:00

26 lines
533 B
Perl

use strict;
use warnings FATAL => 'all';
use Apache::Test;
use Apache::TestRequest;
use Apache::TestUtil;
use Apache::TestConfig ();
##
## directorymatch tests
##
my @ts = (
{ url => "/index.html", code => 200, hname => "DMMATCH1"},
# TODO: PR41867 (DirectoryMatch matches files)
);
plan tests => 2* scalar @ts, have_module 'headers';
for my $t (@ts) {
my $r = GET $t->{'url'};
ok t_cmp($r->code, $t->{code}, "code for " . $t->{'url'});
ok t_cmp($r->header($t->{'hname'}), "1", "check for " . $t->{'hname'});
}