peter has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

Yesterday I released a module on CPAN, that uses mod_perl. The module is called Sleep. Because of the use of Apache2::RequestRec all tests failed.

What is the best way to write the tests, the code or the Build.PL file to let the tests pass? Can I add mod_perl as a prerequisite?

Peter Stuifzand

Replies are listed 'Best First'.
Re: mod_perl, CPAN and testing
by Anonymous Monk on Sep 06, 2008 at 10:01 UTC

      With your information, I created a new release of the module. Now I have to wait and see if this has a positive effect on the test run.

      Peter Stuifzand

      So now that I can see how my testing results show up. It seems to PASS. Which is nice. But when I look at the results it shows that the tests haven't passed and haven't run.

      The output mentions a problem with PerlSwitches:

      Invalid command 'PerlSwitches', perhaps mis-spelled or defined by a module not included in the server configuration

      I think this means mod_perl is not installed. What to do next?

      Peter Stuifzand