Re: Testing mod_perl

Worik Stanton <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
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
[email protected]) and to filter by IP.

cheers
Worik
> 
> 
> On Wed, May 14, 2014 at 5:01 PM, Worik Stanton <[email protected]>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
>>        [email protected] 021-1680650, (03) 4821804
>>                           Aotearoa (New Zealand)
>>
>>
> 


-- 
The only true evil is turning people into things....
                                         Granny Weatherwax
       [email protected] 021-1680650, (03) 4821804
                          Aotearoa (New Zealand)
signature.asc (application/pgp-signature, 538 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTdU6lAAoJEDgltBsVWtVcxJYH/j+YkZc1YuMRrD0tkxBiOQV5
HFMjOMfMPcrJ7jpARjLnm60si03j2Xmjmft1lVk8OWzruZ8t+H41TnwXMi6O9yIf
aBTyzrZ96NrdF4sjpjqNbFst53BcqVusr/efJakUaQymr0nijJozjrfqCMklS3Vy
yoBrVGJbYuBpzNTglHs17CIkjFdEV3XBaQ/UzJXZ3xC+CDT+FUKQih899hnppXzP
92ts/WG7XILCagaRk0rr0C5t+guvKvBkm5zZZU1D1FsnuejAovjHCBsoqZz4kaVj
lJR7DX1vyZp+YWWeoY6wpqU83CBeqwOG8vQPczOq3UcdNoCyVhbnpUQo09Az4tM=
=QeWn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.