PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Wed Sep 19, 2018 6:59 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Sun Jan 24, 2010 7:03 am 
Offline
Forum Newbie

Joined: Sun Jan 24, 2010 6:58 am
Posts: 5
Hello,

I would like some help with getting coverage data of PHP core. I know the HTML coverage files are under PHP web site, but I need the actual data files *.gcda that are created from the tests in order to import them to my own coverage tool.

So I have the installation src files "php-5.2.9.tar.gz" and I would like to have instructions on how to get the coverage data files.

Thanks.

Noam


Top
 Profile  
 
PostPosted: Sun Jan 24, 2010 7:23 am 
Offline
Moderator
User avatar

Joined: Mon Nov 03, 2003 7:13 pm
Posts: 5978
Location: Odessa, Ukraine
http://gcc.gnu.org/onlinedocs/gcc/Invok ... oking-Gcov


Top
 Profile  
 
PostPosted: Sun Jan 24, 2010 8:46 am 
Offline
Forum Newbie

Joined: Sun Jan 24, 2010 6:58 am
Posts: 5
Thanks for your reply,

I already visited this site, but it didn't help me.

I need to combine it with the the tests that php provides (there are about 6000 tests).

Can you please write in more details the steps I need in order to - first instrument the files, and then get run tests coverage results?

Noam


Top
 Profile  
 
PostPosted: Sun Jan 24, 2010 2:39 pm 
Offline
Forum Newbie

Joined: Sun Jan 24, 2010 6:58 am
Posts: 5
Anyone?

I'll explain myself again in case I wasn't clear.

When I unzip php-5.2.9.tar.gz I get the PHP core files. These files contain, among the rest, about 800 c files. I would like to get the coverage results on these c files from the PHP built-in tests.Not as HTML but as the raw data that gcov exports.

Thanks

Noam


Top
 Profile  
 
PostPosted: Sun Jun 06, 2010 6:42 am 
Offline
Forum Contributor
User avatar

Joined: Sat Oct 20, 2007 2:16 pm
Posts: 298
Location: York, England
You need to configure PHP with --enable-gcov. This will then generate the Makefile.gcov file. From there, you make && make test, and you should find your gcov data.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group