File: embperl.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 (23 lines) | stat: -rw-r--r-- 531 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

use Apache::test;

if(defined $ENV{USER} and $ENV{USER} eq 'dougm' and 
   $net::callback_hooks{MMN} < 19980413) 
{
    skip_test; #1.3b6 broke binary compat
}

skip_test unless have_module "HTML::Embperl";

print "1..1\n";

my $res = simple_fetch "/lists.ehtml";
test 1, $res;
$net::callback_hooks{MMN} ||= 19980413;
unless($res) {
    if($net::callback_hooks{MMN} >= 19980413) {
	warn "\n>>> NOTE: Be sure to rebuild HTML::Embperl against Apache 1.3b6+\n";
	warn ">>> Try 'make test' again after doing so.\n";
	sleep 2;
    }
}