™.. Apache::TestMM - Online Linux Manual PageSection : 3
Updated : 2007-11-12
Source : perl v5.10.1
Note : User Contributed Perl Documentation

NAMEApache::TestMM − Provide MakeMaker Wrapper Methods

SYNOPSIS​ require Apache::TestMM; ​ ​ # import MY::test and MY::clean overrides for MM ​ Apache::TestMM−>import(qw(test clean)); ​ ​ # parse command line args ​ Apache::TestMM::filter_args(); ​ ​ # autogenerate the script ​ Apache::TestMM::generate_script('t/TEST');

DESCRIPTION\*(C`Apache::TestMM\*(C'\fR provides wrappers for the \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR craft, making it easier to extend the autogenerated Makefile with ​\*(C`Apache::Test\*(C'\fR.

FUNCTIONS

import​ use Apache::TestMM qw(test clean); or: ​ Apache::TestMM−>import(qw(test clean)); Imports \*(C`MY::\*(C'\fR overrides for the default \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR ​test and clean targets, as if you have defined: ​ sub MY::test {...} ​ sub MY::clean {...} in Makefile.PL. \*(C`Apache::TestMM\*(C'\fR does this for you so that these Makefile targets will run the Apache server and the tests for it, and clean up after its mess.

filter_args​ push @ARGV, '−apxs', $apxs_path; ​ Apache::TestMM::filter_args(); ​ WriteMakefile(...); When \*(C`WriteMakefile()\*(C'\fR is called it parses \f(CW@ARGV\fR, hoping to find special options like \*(C`PREFIX=/home/stas/perl\*(C'\fR. \f(CW\*(C`Apache::Test\*(C'\fR accepts a lot of configuration options of its own. When ​\*(C`Apache::TestMM::filter_args()\*(C'\fR is called, it removes any ​\*(C`Apache::Test\*(C'\fR\-specific options from \f(CW@ARGV\fR and stores them internally, so when \*(C`WriteMakefile()\*(C'\fR is called they aren't in ​@ARGV and thus won't be processed by \*(C`WriteMakefile()\*(C'\fR. The options can be set when Makefile.PL is called: ​ % perl Makefile.PL −apxs /path/to/apxs Or you can push them manually to @ARGV from the code: ​ push @ARGV, '−apxs', $apxs_path; When: ​ Apache::TestMM::generate_script('t/TEST'); is called, \*(C`Apache::Test\*(C'\fR\-specific options extracted by ​\*(C`Apache::TestMM::filter_args()\*(C'\fR are written to the autogenerated file. In our example, the autogenerated t/TEST will include: ​ %Apache::TestConfig::Argv = qw(apxs /path/to/apxs); which is going to be used by the \*(C`Apache::Test\*(C'\fR runtime. The other frequently used options are: \*(C`\-httpd\*(C'\fR, telling where to find the httpd (usually when the \*(C`\-apxs\*(C'\fR option is not used), ​\*(C`\-libmodperl\*(C'\fR to use a specific mod_perl shared object (if your mod_perl is built as DSO), \*(C`\-maxclients\*(C'\fR to change the default number of the configured \*(C`MaxClients\*(C'\fR directive, \f(CW\*(C`\-port\*(C'\fR to start the server on a specific port, etc. To get the complete list of available configuration options and their purpose and syntax, run: ​ % perl −MApache::TestConfig −le 'Apache::TestConfig::usage()' You may wish to document some of these in your application's README file, especially the \*(C`\-apxs\*(C'\fR and \f(CW\*(C`\-httpd\*(C'\fR options.

generate_script​ Apache::TestMM::generate_script('t/TEST'); \*(C`generate_script()\*(C'\fR accepts the name of the script to generate and will look for a template with the same name and suffix .PL. So in our example it'll look for t/TEST.PL. The autogenerated script ​t/TEST will include the contents of t/TEST.PL, and special directives, including any configuration options passed via ​\*(C`filter_args()\*(C'\fR called from \fIMakefile.PL\fR, special fixup code, etc.
0
Johanes Gumabo
Data Size   :   15,962 byte
man-Apache::TestMM.3pmBuild   :   2024-12-29, 07:25   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   5 / 256,385
Visitor ID   :     :  
Visitor IP   :   3.15.146.237   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.29
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|252|Apache::TestMM.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|Apache::TestMM.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|252|Apache::TestMM.3pm|41|br══─}─══|'br══─}─══ )         (htmlprn|149|Apache::TestMM.3pm|41|'br══─}─══ |'br══─}─══ )         (rof_nr_x|149|Apache::TestMM.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (rof_unit_scale_px|41|Apache::TestMM.3pm|51/52|F|.ie \nF ══─{─══. de IX )         (rof_if|19|Apache::TestMM.3pm|51/52|\nF|.ie \nF ══─{─══. de IX )         (htmlprn|149|Apache::TestMM.3pm|51/52|.ie \nF ══─{─══. de IX|.ie \nF ══─{─══. de IX )         (rof_escape_sequence|91|Apache::TestMM.3pm|53|\$1\t\\n%\t"\\$2" |. tm Index:\\$1\t\\n%\t"\\$2" )         (parse_manual_page_|252|Apache::TestMM.3pm|57|══─}─══|.══─}─══ )         (htmlprn|149|Apache::TestMM.3pm|57|.══─}─══ |.══─}─══ )         (rof_escape_sequence|91|Apache::TestMM.3pm|150|\*(C`Apache::TestMM\*(C'\fR provides wrappers for the \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR |\&\f(CW\*(C`Apache::TestMM\*(C'\fR provides wrappers for the \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR )         (rof_escape_sequence|91|Apache::TestMM.3pm|152|\*(C`Apache::Test\*(C'\fR. |\&\f(CW\*(C`Apache::Test\*(C'\fR. )         (rof_escape_sequence|91|Apache::TestMM.3pm|168|\*(C`MY::\*(C'\fR overrides for the default \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR |Imports \f(CW\*(C`MY::\*(C'\fR overrides for the default \f(CW\*(C`ExtUtils::MakeMaker\*(C'\fR )         (rof_escape_sequence|91|Apache::TestMM.3pm|176|\*(C`Apache::TestMM\*(C'\fR does this for you so that these Makefile |in \fIMakefile.PL\fR. \f(CW\*(C`Apache::TestMM\*(C'\fR does this for you so that these Makefile )         (rof_escape_sequence|91|Apache::TestMM.3pm|188|\*(C`WriteMakefile()\*(C'\fR is called it parses \f(CW@ARGV\fR, hoping to find |When \f(CW\*(C`WriteMakefile()\*(C'\fR is called it parses \f(CW@ARGV\fR, hoping to find )         (rof_escape_sequence|91|Apache::TestMM.3pm|189|\*(C`PREFIX=/home/stas/perl\*(C'\fR. \f(CW\*(C`Apache::Test\*(C'\fR |special options like \f(CW\*(C`PREFIX=/home/stas/perl\*(C'\fR. \f(CW\*(C`Apache::Test\*(C'\fR )         (rof_escape_sequence|91|Apache::TestMM.3pm|191|\*(C`Apache::TestMM::filter_args()\*(C'\fR is called, it removes any |\&\f(CW\*(C`Apache::TestMM::filter_args()\*(C'\fR is called, it removes any )         (rof_escape_sequence|91|Apache::TestMM.3pm|192|\*(C`Apache::Test\*(C'\fR\-specific options from \f(CW@ARGV\fR and stores them |\&\f(CW\*(C`Apache::Test\*(C'\fR\-specific options from \f(CW@ARGV\fR and stores them )         (rof_escape_sequence|91|Apache::TestMM.3pm|193|\*(C`WriteMakefile()\*(C'\fR is called they aren't in |internally, so when \f(CW\*(C`WriteMakefile()\*(C'\fR is called they aren't in )         (rof_escape_sequence|91|Apache::TestMM.3pm|194|\*(C`WriteMakefile()\*(C'\fR. |\&\f(CW@ARGV\fR and thus won't be processed by \f(CW\*(C`WriteMakefile()\*(C'\fR. )         (rof_escape_sequence|91|Apache::TestMM.3pm|214|\*(C`Apache::Test\*(C'\fR\-specific options extracted by |is called, \f(CW\*(C`Apache::Test\*(C'\fR\-specific options extracted by )         (rof_escape_sequence|91|Apache::TestMM.3pm|215|\*(C`Apache::TestMM::filter_args()\*(C'\fR are written to the autogenerated |\&\f(CW\*(C`Apache::TestMM::filter_args()\*(C'\fR are written to the autogenerated )         (rof_escape_sequence|91|Apache::TestMM.3pm|222|\*(C`Apache::Test\*(C'\fR runtime. |which is going to be used by the \f(CW\*(C`Apache::Test\*(C'\fR runtime. )         (rof_escape_sequence|91|Apache::TestMM.3pm|224|\*(C`\-httpd\*(C'\fR, telling where to |The other frequently used options are: \f(CW\*(C`\-httpd\*(C'\fR, telling where to )         (rof_escape_sequence|91|Apache::TestMM.3pm|225|\*(C`\-apxs\*(C'\fR option is not used), |find the httpd (usually when the \f(CW\*(C`\-apxs\*(C'\fR option is not used), )         (rof_escape_sequence|91|Apache::TestMM.3pm|226|\*(C`\-libmodperl\*(C'\fR to use a specific mod_perl shared object (if your |\&\f(CW\*(C`\-libmodperl\*(C'\fR to use a specific mod_perl shared object (if your )         (rof_escape_sequence|91|Apache::TestMM.3pm|227|\*(C`\-maxclients\*(C'\fR to change the default number |mod_perl is built as \s-1DSO\s0), \f(CW\*(C`\-maxclients\*(C'\fR to change the default number )         (rof_escape_sequence|91|Apache::TestMM.3pm|228|\*(C`MaxClients\*(C'\fR directive, \f(CW\*(C`\-port\*(C'\fR to start the |of the configured \f(CW\*(C`MaxClients\*(C'\fR directive, \f(CW\*(C`\-port\*(C'\fR to start the )         (rof_escape_sequence|91|Apache::TestMM.3pm|237|\*(C`\-apxs\*(C'\fR and \f(CW\*(C`\-httpd\*(C'\fR options. |file, especially the \f(CW\*(C`\-apxs\*(C'\fR and \f(CW\*(C`\-httpd\*(C'\fR options. )         (rof_escape_sequence|91|Apache::TestMM.3pm|245|\*(C`generate_script()\*(C'\fR accepts the name of the script to generate and |\&\f(CW\*(C`generate_script()\*(C'\fR accepts the name of the script to generate and )         (rof_escape_sequence|91|Apache::TestMM.3pm|250|\*(C`filter_args()\*(C'\fR called from \fIMakefile.PL\fR, special |\&\f(CW\*(C`filter_args()\*(C'\fR called from \fIMakefile.PL\fR, special )