Re: Apache-httpd -Test coverage

2004-05-08 Thread Stas Bekman
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 BekmanJAm_pH --> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


Re: Apache-httpd -Test coverage

2004-05-08 Thread Dirk-Willem van Gulik
On May 8, 2004, at 5:01 AM, Abhishek Khandelwal wrote:
Does anyone have idea, how to insert purecov before cc in makefile?
What I've always done for httpd 1.3 is simply take the compile line and
do
purecov gcc  -o httpd `cat all.dot.c's`
after a compile (needed to make sure all generated files are there too) 
and
configure for max static binary.  This builds the httpd as a simple 
single static
binary which is ideal for testing.

For 2.0 you'll have to dive into gnu configure I fear - which is not 
the love
in of my life.

Dw


Apache-httpd -Test coverage

2004-05-08 Thread Abhishek Khandelwal
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.

Thanks,
Abhishek