You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Okamoto Toshiaki <ok...@palette.plala.or.jp> on 2006/05/01 16:06:20 UTC

[users@httpd] Re: [apachemlen] [users@httpd] [Question] How to write driver to test my module for Unit Test?

I have solved following problem by myself.
They are a little difficult because that register HOOK Functions are MACRO.

T. Okamoto
Okamoto Toshiaki wrote:
> Hi!
> I have one question.
> I would like to test my modules.
> [Question] How to write driver to call my_module, my_register_hook()?
> Ex.
> 1. driver.c
> main(){
> /* load my_modle */
> /* call my_register_hook() */
> /* call my_post_config() */
> }
> 
> 2.my_module.c: my module
> module my_module{
> .
> .
> my_register_hooks;
> }
> my_register_hook()
> my_post_config()
> 
> Many thanks.
> T.Okamoto
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: [Question] How to write driver to test my module for Unit Test?

Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Okamoto Toshiaki wrote:
> I have solved following problem by myself.
> They are a little difficult because that register HOOK Functions are MACRO.

You'll have trouble here getting answers to most any development questions,
as this list is user-oriented.  You might try the apache-modules@covalent.net
list for such things (mail apache-modules-subscribe@covalent.net).  Quite a
few helpful and prolific module authors hang out there.

Bill


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org