> t/00Startup....Can't locate object method "server" via package 
> "Apache2::ServerUtil" at t/00Startup.t line 8.

> where my test script is reduced to:
> 
> use Apache::Test; 
> 
> plan tests => 1;
> 
> use Apache2::ServerUtil ();
> ok( Apache2::ServerUtil->server );
> 
> 
> 
> If there isn't something I'm obviously doing wrong, any suggestions as to 
> where I should start looking? 

the only thing that jumps out at me is that t/00Startup.t is being executed
in perl-space outside of the apache server.  that is, 'make test' is doing
the same thing as if you ran

  $ perl t/00Startup.t

which probably isn't what you want.

the utility of the test you've setup aside, you probably want to place that
code inside

  t/response/TestStartup/01server.pm

so that the test runs within the perl running within httpd.

there's stuff about this in the Apache-Test docs I'm sure, but this
presentation might help as well (which is the one I gave to phl.pm you
attended, but just as a refresher :)

http://www.modperlcookbook.org/~geoff/slides/YAPC/2005/apache-test-part-II-printable.pdf.gz

--Geoff

Reply via email to