On Sunday, August 22, 2010 21:46:58 Fred Moyer wrote: > 2010/8/22 Torsten Förtsch <torsten.foert...@gmx.net>: > > On Sunday, August 22, 2010 20:02:05 Fred Moyer wrote: > >> I put out a release candidate for Apache-Test 1.33 yesterday. Did you > >> see the email come through? An archive copy of it is located here: > >> > >> http://www.gossamer-threads.com/lists/modperl/dev/101934 > > ... > > > However, I think that change should go to the release. It fixes a bug > > that can cause errors that are difficult to trace. > > Having encountered these errors before, I know they exist. However, > can you update the docs to provide some example usage? When I set > this variable, this happens on make test: > > You specified APACHE_TEST_NO_STICKY_PREFERENCES=1 in which case you > must explicitly specify -httpd and/or -apxs options > > And then make test -httpd=.... isn't something that will work. > Neither will it as a makefile arg. Can you add example usage for > those like me who know the hooks exist, but can't ever remember the > syntax? > > > ph...@pooky ~/dev/svn/modperl/Apache-Test $ perl Makefile.PL > -httpd=/Users/phred/dev/sl/httpd/sbin/httpd > generating script t/TEST > generating script ./t/cgi-bin/cookies.pl > generating script ./t/cgi-bin/next_available_port.pl > '-HTTPD' is not a known MakeMaker parameter name.
I believe this one you know: http://search.cpan.org/~phred/Apache- Test-1.32/lib/Apache/TestRun.pm#Persistent_Custom_Configuration Here is what I do in my SPEC files: %build export APACHE_TEST_NO_STICKY_PREFERENCES=1 %perl Makefile.PL make %{?jobs:-j%jobs} && t/TEST -apxs %{apxs} -httpd_conf %{sysconfdir}/original/httpd-modperl.conf I also think it would make more sense to pass these things as Makefile.PL parameters. Though, you can set them as environment variables. I have set in my environment APACHE_TEST_NO_STICKY_PREFERENCES=1 and APACHE_TEST_APXS=/path/to/apxs. That is enough to make "make test" work. Torsten Förtsch -- Need professional modperl support? Hire me! (http://foertsch.name) Like fantasy? http://kabatinte.net --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@perl.apache.org For additional commands, e-mail: dev-h...@perl.apache.org