Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Code Coverage.: (7 Items)
   
Code Coverage.  
I am doing a code coverage activity using gcov and lcov. In Linux we are able to generate the .bb and .bbg files during 
the cross compilation of the source file for a QNX specific (QNX 6.3.2) shle processor. The .da file was created 
successfully once we execute the executable”. But lcov command is not working. Its showing the error “ERROR: cannot 
read .gcno file. During compilation only .bb and .bbg files are getting created;no .gcno files are created. 

How I can use this .bb and .bbg files with lcov to generate the .info file. It will be great if you can help me ... 
Thanks, 
Avinash
Re: Code Coverage.  
Hi Avinash,

What kind of project are you working on? Is it a QNX C/C++ Project or a standard C/C++ Project?

I was able to use the code coverage tool in QNX IDE for a QNX C/C++ project. But I did not use lcov, instead I used the 
code-coverage perspective of QNX IDE to view my code coverage results.

The *.bb and *.bbg files are produced during compilation (as you say) but I dont think these are used to view code 
coverage information.

Regards
Sunil
RE: Code Coverage.  
Hi Sunil,

We are working on a QNX C Project.
I was not using the QNX IDE for codecoverage, I was using the QNX
utilities - gcov and lcov for code coverage.The *.bb and *. bbg files
are created at the time of compilation. *.da files generated in the
target are copied to our QNX workspace. This *.da file is  used to
create codecoverage files.
 I feel IDE will be more user friendly. I have used the IDE onle for CPU
Analysis. It will be interesting if I can use it for code coverage also.
Can you pls let me know how to use the code-coverage perspective of QNX
IDE to view my code coverage results.

Thanks,
Avinash Narayanan

-----Original Message-----
From: Sunil Keshava [mailto:community-noreply@qnx.com]
Sent: Saturday, November 14, 2009 2:58 PM
To: momentics-community
Subject: Re: Code Coverage.

Hi Avinash,

What kind of project are you working on? Is it a QNX C/C++ Project or a
standard C/C++ Project?

I was able to use the code coverage tool in QNX IDE for a QNX C/C++
project. But I did not use lcov, instead I used the code-coverage
perspective of QNX IDE to view my code coverage results.

The *.bb and *.bbg files are produced during compilation (as you say)
but I dont think these are used to view code coverage information.

Regards
Sunil



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post41988


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
RE: Code Coverage.  
Hi, Avinash,

You can use the IDE Code Coverage tool to create and view your program
coverage data. The IDE users' guide has one section for Code Coverage.
You can view it here:

http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/coverage.html

In the mean time you can run the IDE Code Coverage example program to be
familiar with the tool.

HTH,
Andy

-----Original Message-----
From: AVINASH NARAYANAN [mailto:community-noreply@qnx.com] 
Sent: Monday, November 16, 2009 8:02 AM
To: momentics-community
Subject: RE: Code Coverage.

Hi Sunil,

We are working on a QNX C Project.
I was not using the QNX IDE for codecoverage, I was using the QNX
utilities - gcov and lcov for code coverage.The *.bb and *. bbg files
are created at the time of compilation. *.da files generated in the
target are copied to our QNX workspace. This *.da file is  used to
create codecoverage files.
 I feel IDE will be more user friendly. I have used the IDE onle for CPU
Analysis. It will be interesting if I can use it for code coverage also.
Can you pls let me know how to use the code-coverage perspective of QNX
IDE to view my code coverage results.

Thanks,
Avinash Narayanan
Re: RE: Code Coverage.  
Avinash,

I was going to post the same link that Andy has mentioned. It has a very detailed explanation on how to enable code 
coverage for QNX projects and how to retrieve the code coverage info using the Code Coverage Perspective.

However, I had some problems while trying to retrieve the code coverage data from the target when working on a Standard 
Make project.

Sunil
RE: RE: Code Coverage.  
Hi Sunil,

I will go through the section in the link and will let you know the
updates.

Thanks,
Avinash
-----Original Message-----
From: Sunil Keshava [mailto:community-noreply@qnx.com]
Sent: Tuesday, November 17, 2009 11:53 AM
To: momentics-community
Subject: Re: RE: Code Coverage.

Avinash,

I was going to post the same link that Andy has mentioned. It has a very
detailed explanation on how to enable code coverage for QNX projects and
how to retrieve the code coverage info using the Code Coverage
Perspective.

However, I had some problems while trying to retrieve the code coverage
data from the target when working on a Standard Make project.

Sunil



_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post42060


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
RE: Code Coverage.  
Thanks Andy.  I will go through the section in the link and will let you
know the updates.

Regards,
Avinash

-----Original Message-----
From: Andy Jin [mailto:community-noreply@qnx.com]
Sent: Monday, November 16, 2009 10:47 PM
To: momentics-community
Subject: RE: Code Coverage.

Hi, Avinash,

You can use the IDE Code Coverage tool to create and view your program
coverage data. The IDE users' guide has one section for Code Coverage.
You can view it here:

http://www.qnx.com/developers/docs/6.4.1/ide_en/user_guide/coverage.html

In the mean time you can run the IDE Code Coverage example program to be
familiar with the tool.

HTH,
Andy

-----Original Message-----
From: AVINASH NARAYANAN [mailto:community-noreply@qnx.com]
Sent: Monday, November 16, 2009 8:02 AM
To: momentics-community
Subject: RE: Code Coverage.

Hi Sunil,

We are working on a QNX C Project.
I was not using the QNX IDE for codecoverage, I was using the QNX
utilities - gcov and lcov for code coverage.The *.bb and *. bbg files
are created at the time of compilation. *.da files generated in the
target are copied to our QNX workspace. This *.da file is  used to
create codecoverage files.
 I feel IDE will be more user friendly. I have used the IDE onle for CPU
Analysis. It will be interesting if I can use it for code coverage also.
Can you pls let me know how to use the code-coverage perspective of QNX
IDE to view my code coverage results.

Thanks,
Avinash Narayanan




_______________________________________________

QNX Momentics Community Support
http://community.qnx.com/sf/go/post42029


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive 
use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended
 recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy
 all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for 
the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com