Apache-Compress

 view release on metacpan or  search on metacpan

Build.PL  view on Meta::CPAN

use Module::Build 0.21;

use lib 't/lib';
use Apache::test;

# Don't buffer, so automated tools like Module::Release see the output right away
$| = 1;

my %params = Apache::test->get_test_params();
Apache::test->write_httpd_conf
    (%params,
     include => <<EOF);

Makefile.PL  view on Meta::CPAN

use ExtUtils::MakeMaker;
use lib 't/lib';  # distributed here until changes are incorporated into the real version
use Apache::test;

my %params = Apache::test->get_test_params();
chomp (my $cwd = `pwd`);
Apache::test->write_httpd_conf
    (%params,
     include => do {local $/; <DATA>});
*MY::test = sub { Apache::test->MM_test(%params) };

my $module = 'Apache::Compress';

t/lib/Apache/test.pm  view on Meta::CPAN

LockFile $DIR/t/httpd.lock
TypesConfig /dev/null
TransferLog /dev/null
ScoreBoardFile /dev/null

AddType text/html .html

# Look in ./blib/lib
#PerlModule ExtUtils::testlib
<Perl>
 use lib "$DIR/blib/lib", "$DIR/t/lib";
</Perl>

$args{include}
EOF

    return 1;
}

sub _ask {
    # Just a function for asking the user questions

t/real.t  view on Meta::CPAN

use strict;
use lib 't/lib';  # distributed here until changes are incorporated into the real version
use Apache::test qw(test);
use Test;

my %requests = 
  (
   2  => '/docs/simple.html',
   3  => {uri=>'/docs/simple.html',
          headers=>{'Accept-Encoding' => 'gzip'},
         },
  );



( run in 0.378 second using v1.01-cache-2.11-cpan-87723dcf8b7 )