File: status.t

package info (click to toggle)
libapache-mod-perl 1.16-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 1,580 kB
  • ctags: 1,064
  • sloc: ansic: 4,489; perl: 4,415; sh: 305; makefile: 137
file content (33 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
use Apache::test;

my @tests = qw{
   script
   inc 
   rgysubs
   env 
   myconfig 
   hooks 
};

push @tests, qw{
    inh_tree
    isa_tree
    symdump
} if have_module "Devel::Symdump";

my $url = "/perl/perl-status";

my $tests = @tests+1;
print "1..$tests\n";
my $i = 0;

for my $loc ($url, (map "$url?$_", @tests)) {
    my $str =  fetch $loc;
    print "fetch $loc\n";
    unless($str =~ /Perl version/) {
	print $str;
	die "fetch $loc failed!\n";
    }
    die "$1\n" if $str =~ /(Internal Server Error)/;
    test ++$i, 1;
}