httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: Apache-httpd -Test coverage
Date Sat, 08 May 2004 17:28:38 GMT
Abhishek Khandelwal wrote:
> Hi,
> 
> I am trying to find out the code-coverage for httpd using the
> perl-testframework.
> 
> I am trying to use Rational's PureCoverage tool to do that.
> One of the requirements for Purecoverage tool is to insert purecov
> before CC(cc or gcc) in makefile.
> 
> Does anyone have idea, how to insert purecov before cc in makefile?
> 
> Since the makefile of httpd is automatically generated using configure
> script, it has to be done automatically.
> 
> I tried to pass CC="purecov gcc" to the configure, but it inserts
> purecov everywhere and purecov tries to instrument .a and .so files as
> well, which should not be done at compile time.
> 
> Anyone has any idea about how to proceed, please let me know.

Dunno about Rational's but gcov works:
http://apr.apache.org/coverage/index.html
replace ./testall with 'make test'
Philippe has done that for mod_perl 2.0 resulting in:
http://gozer.ectoplasm.org/mod_perl/coverage/report.html


-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message