You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Worik Stanton <wo...@gmail.com> on 2014/05/14 23:01:11 UTC
Testing mod_perl
On another matter...
On 15/05/14 05:16, Perrin Harkins wrote:
> simpler things like PerlSetVar. There is an automated test for this
> though:
> http://cpansearch.perl.org/src/PHRED/mod_perl-2.0.8/t/response/TestApache/conftree.pm
I have not used this testing frame work before (other than watch tests
go by during the build process).
I looked up http://perl.apache.org/docs/general/testing/testing.html but
there does not seem to be a tutorial to get started. Where is the
documentation that shows how to arrange the files and run these tests?
I tried creating a directory t/ and t/TestApache and put conftree.pm
into TestApache and created a file contree.pl which used
TestApache::conftree
(I had to add a "1;" to the last line of conftree.pm which was an
indication I was on the wrong track).
I then called TestApache::conftree->new(@ARGV)->run();
Anyway clearly I am doing the wrong thing, no matter how natural it
seems and I need some help to get on the right track
cheers
Worik
--
The only true evil is turning people into things....
Granny Weatherwax
worik.stanton@gmail.com 021-1680650, (03) 4821804
Aotearoa (New Zealand)
Re: Testing mod_perl
Posted by Lars Dɪᴇᴄᴋᴏᴡ 迪拉斯 <da...@cpan.org>.
> I looked up http://perl.apache.org/docs/general/testing/testing.html
This is for testing applications written on top of mod_perl2.
> Where is the
> documentation that shows how to arrange the files and run these tests?
In <http://p3rl.org/ExtUtils::MakeMaker>. Generate the test files as
described in the mod_perl2 INSTALL file, then you can also run a test
file isolated:
make test TEST_VERBOSE=1 TEST_FILES=t/apache/conftree.t
Re: Testing mod_perl
Posted by Worik Stanton <wo...@gmail.com>.
On 16/05/14 08:24, John Dunlap wrote:
> If I may ask a potentially stupid question, what are you attempting to do
> which necessitates the use of Apache2::Directive?
I am randomly thrashing around trying to get started with the mod_perl
API. More accurately I was. I have my bearings now and am making some
progress.
I have used the API today to get document_root (thank-you
john@lariat.co) and to filter by IP.
cheers
Worik
>
>
> On Wed, May 14, 2014 at 5:01 PM, Worik Stanton <wo...@gmail.com>wrote:
>
>> On another matter...
>>
>> On 15/05/14 05:16, Perrin Harkins wrote:
>>> simpler things like PerlSetVar. There is an automated test for this
>>> though:
>>>
>> http://cpansearch.perl.org/src/PHRED/mod_perl-2.0.8/t/response/TestApache/conftree.pm
>>
>> I have not used this testing frame work before (other than watch tests
>> go by during the build process).
>>
>> I looked up http://perl.apache.org/docs/general/testing/testing.html but
>> there does not seem to be a tutorial to get started. Where is the
>> documentation that shows how to arrange the files and run these tests?
>>
>> I tried creating a directory t/ and t/TestApache and put conftree.pm
>> into TestApache and created a file contree.pl which used
>> TestApache::conftree
>>
>> (I had to add a "1;" to the last line of conftree.pm which was an
>> indication I was on the wrong track).
>>
>> I then called TestApache::conftree->new(@ARGV)->run();
>>
>> Anyway clearly I am doing the wrong thing, no matter how natural it
>> seems and I need some help to get on the right track
>>
>> cheers
>> Worik
>>
>> --
>> The only true evil is turning people into things....
>> Granny Weatherwax
>> worik.stanton@gmail.com 021-1680650, (03) 4821804
>> Aotearoa (New Zealand)
>>
>>
>
--
The only true evil is turning people into things....
Granny Weatherwax
worik.stanton@gmail.com 021-1680650, (03) 4821804
Aotearoa (New Zealand)
Re: Testing mod_perl
Posted by John Dunlap <jo...@lariat.co>.
If I may ask a potentially stupid question, what are you attempting to do
which necessitates the use of Apache2::Directive?
On Wed, May 14, 2014 at 5:01 PM, Worik Stanton <wo...@gmail.com>wrote:
> On another matter...
>
> On 15/05/14 05:16, Perrin Harkins wrote:
> > simpler things like PerlSetVar. There is an automated test for this
> > though:
> >
> http://cpansearch.perl.org/src/PHRED/mod_perl-2.0.8/t/response/TestApache/conftree.pm
>
> I have not used this testing frame work before (other than watch tests
> go by during the build process).
>
> I looked up http://perl.apache.org/docs/general/testing/testing.html but
> there does not seem to be a tutorial to get started. Where is the
> documentation that shows how to arrange the files and run these tests?
>
> I tried creating a directory t/ and t/TestApache and put conftree.pm
> into TestApache and created a file contree.pl which used
> TestApache::conftree
>
> (I had to add a "1;" to the last line of conftree.pm which was an
> indication I was on the wrong track).
>
> I then called TestApache::conftree->new(@ARGV)->run();
>
> Anyway clearly I am doing the wrong thing, no matter how natural it
> seems and I need some help to get on the right track
>
> cheers
> Worik
>
> --
> The only true evil is turning people into things....
> Granny Weatherwax
> worik.stanton@gmail.com 021-1680650, (03) 4821804
> Aotearoa (New Zealand)
>
>