Apache-SSI
view release on metacpan or search on metacpan
12345678910111213use
strict;
use
Module::Build;
my
%params
= Apache::test->get_test_params();
my
$class
=
'Module::Build'
;
if
(have_httpd()) {
Apache::test->write_httpd_conf
(
%params
,
include
=>
do
{
local
$/;
open
FH,
't/config.incl'
or
die
$!; <FH>});
Makefile.PL view on Meta::CPAN
12345678910use
ExtUtils::MakeMaker;
use
Apache::test;
my
%params
= Apache::test->get_test_params();
chomp
(
my
$cwd
= `pwd`);
Apache::test->write_httpd_conf
(
%params
,
include
=>
do
{
local
$/;
open
FH,
't/config.incl'
or
die
$!; <FH>});
*MY::test
=
sub
{ Apache::test->MM_test(
%params
) };
t/benchmark.pl view on Meta::CPAN
123456789use
Apache::SSI;
use
Benchmark;
my
$text
=
'<!--#perl sub="sub {$_[0]*2-$_[1]}" args=5,7 pass_request=no-->'
;
$p
= new Apache::SSI(
$text
);
timethis(10000,
'$::p->get_output()'
);
t/lib/Apache/test.pm view on Meta::CPAN
707172737475767778798081828384858687888990
1234567891011121314151617#!/usr/bin/perl
# This test will start up a real httpd server with Apache::SSI loaded in
# it, and make several requests on that server.
use
strict;
use
Apache::test;
use
Test;
my
%requests
=
(
3
=>
'/docs/bare.ssi'
,
4
=>
'/docs/file.ssi'
,
5
=>
'/docs/kid.ssik'
,
6
=>
'/docs/virtual.ssi'
,
7
=>
'/docs/incl_rel.ssi'
,
( run in 0.292 second using v1.01-cache-2.11-cpan-eab888a1d7d )