Apache2-API

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

        {
            # print( STDERR "Setting environment variable \"", substr( $k, 1 ), "\"\n" );
            $ENV{ substr( $k, 1 ) } = $ref->{ $k };
            $fh->printf( "\$ENV{ '%s' } = q|%s|;\n", substr( $k, 1 ), $ref->{ $k } ) || die( "t/env.pl: $!\n" );
        }
    }
    $fh->print( "\n1;\n" ) || die( "t/env.pl: $!\n" );
    $fh->close;
    
    if( $ENV{API_DEBUG} )
    {
        my $extra = File::Spec->catfile( qw( t conf options.conf.in ) );
        my $fh;
        if( defined( $fh = IO::File->new( ">$extra" ) ) )
        {
            $fh->print( "PerlSetVar API_DEBUG ", int( $ENV{API_DEBUG} ), "\n" );
            $fh->close;
        }
    }
    Apache::TestMM::generate_script( 't/TEST' );
}
else
{
    print( STDERR "Generating Makefile without modperl\n" ) if( $MY_DEBUG );
}

WriteMakefile(%WriteMakefileArgs);

sub clean_files
{
    return( [@scripts] );
}

__END__

=encoding utf-8

=head1 NAME

Makefile.PL - Apache2::API Makefile

=head1 SYNOPSIS

    perl Makefile.PL -apxs /path/to/apxs
    APACHE_TEST_COLOR=1 perl Makefile.PL -apxs /path/to/apxs

=head2 OPTIONS

=head2 -access_module_name

access module name

=head2 -apxs

location of apxs (default is from C<Apache2::BuildConfig>)

=head2 -auth_module_name

auth module name

=head2 -bindir

Apache bin/ dir (default is C<apxs -q BINDIR>)

=head2 -cgi_module_name

cgi module name

=head2 -defines

values to add as C<-D> defines (for example, C<"VAR1 VAR2">)

=head2 -documentroot

DocumentRoot (default is C<$ServerRoot/htdocs>

=head2 -group

Group to run test server as (default is C<$GROUP>)

=head2 -httpd

server to use for testing (default is C<$bindir/httpd>)

=head2 -httpd_conf

inherit config from this file (default is apxs derived)

=head2 -httpd_conf_extra

inherit additional config from this file

=head2 -libmodperl

path to mod_perl's .so (full or relative to LIBEXECDIR)

=head2 -limitrequestline

global LimitRequestLine setting (default is C<128>)

=head2 -maxclients

maximum number of concurrent clients (default is C<minclients+1>)

=head2 -minclients

minimum number of concurrent clients (default is C<1>)

=head2 -perlpod

location of perl pod documents (for testing downloads)

=head2 -php_module_name

php module name

=head2 -port

Port [port_number|select] (default C<8529>)

=head2 -proxyssl_url

url for testing ProxyPass / https (default is localhost)

=head2 -sbindir

Apache sbin/ dir (default is C<apxs -q SBINDIR>)

=head2 -servername

ServerName (default is localhost)

=head2 -serverroot

ServerRoot (default is C<$t_dir>)

=head2 -src_dir

source directory to look for C<mod_foos.so>

=head2 -ssl_module_name

ssl module name

=head2 -sslca

location of SSL CA (default is C<$t_conf/ssl/ca>)

=head2 -sslcaorg

SSL CA organization to use for tests (default is asf)

=head2 -sslproto

SSL/TLS protocol version(s) to test

=head2 -startup_timeout

seconds to wait for the server to start (default is 60)

=head2 -t_conf

the conf/ test directory (default is C<$t_dir/conf>)

=head2 -t_conf_file

test httpd.conf file (default is C<$t_conf/httpd.conf>)

=head2 -t_dir

the t/ test directory (default is C<$top_dir/t>)

=head2 -t_logs

the logs/ test directory (default is C<$t_dir/logs>)

=head2 -t_pid_file

location of the pid file (default is C<$t_logs/httpd.pid>)

=head2 -t_state

the state/ test directory (default is C<$t_dir/state>)

=head2 -target



( run in 4.650 seconds using v1.01-cache-2.11-cpan-2398b32b56e )