Apache-Compress
view release on metacpan or search on metacpan
t/lib/Apache/test.pm view on Meta::CPAN
192021222324252627282930313233343536373839
# Validate that the OS knows the name of the server in $net::httpserver
# if 'localhost' is not defined, the tests wouldn't pass
(
my
$hostname
) = (
$net::httpserver
=~ /(.*?):/);
warn
qq{\n*** [Crucial] You must define "$hostname" (e.g. in /etc/hosts) in order for 'make test' to pass\n}
unless
gethostbyname
$hostname
;
}
}
$PERL_DIR
=
$ENV
{PERL_DIR}
if
exists
$ENV
{PERL_DIR};
$USE_THREAD
= (
$Config
{extensions} =~ /Thread/) ||
$Config
{usethreads};
$USE_SFIO
= ((
$Config
{
'usesfio'
} ||
''
) eq
'true'
);
my
$Is_Win32
= ($^O eq
"MSWin32"
);
sub
WIN32 () {
$Is_Win32
};
my
$UA
;
eval
{
$UA
= LWP::UserAgent->new;
( run in 0.367 second using v1.01-cache-2.11-cpan-454fe037f31 )