File: 00_public.t

package info (click to toggle)
libapache2-mod-auth-tkt 2.3.99~b1-1
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 856 kB
  • sloc: ansic: 2,213; perl: 1,756; sh: 128; makefile: 94; php: 88; ruby: 59; tcl: 55; python: 48
file content (20 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env perl

use strict;
use warnings FATAL => 'all';

use Apache::Test;
use Apache::TestUtil;
use Apache::TestRequest 'GET_BODY';

plan tests => 2;

ok 1;   # simple load test

my $url = '/public.html';
my $data = GET_BODY $url;

ok t_cmp($data, qr/^This is public/, 'GET on public file');

# vim:sw=2:et:sm:smartindent:ft=perl