remote code coverage in beagleboard

Hi,
I am trying to get the test coverage of application running on beaglboard.
Can someone point me in some direction?

manish wrote:

Hi,
I am trying to get the test coverage of application running on beaglboard.
Can someone point me in some direction?

is this a homework assignment?

trying ti figure out how it can be done.
or has it been done already?

just to be clear. I work for a company and we needed some metrix on code coverage. So i was exploring this options.
So far i came across using gcov tools which involves tranfer of file to and fro beagle board.

just to be clear. I work for a company and we needed some metrix on code
coverage. So i was exploring this options.
So far i came across using gcov tools which involves tranfer of file to
and fro beagle board.

well, code coverage is nothing beagleboard specific. if your application is somewhat portable you can even run in on your X86 PC and get more or less the same results.

if you do your test coverage on the beagleboard, I fear you will not get around transferring the application to the board and running it there..

Metrix is a brand of mutimeters and measure instruments. :wink: :wink:
http://www.chauvin-arnoux.com/catalogues/catalogues.asp

If you need metrics of code coverage, then what is remote code coverage?

If your code runs on the BeagleBoard with access to BB specific peripherals you need to test it on the BB.
If your code runs on a generic Linux platform, to test it in a generic desktop Linux machine is much easier and faster.

You wil have many more tools…

Or are missing anything?

Paulo Ferreira

I have a code/application which needs to run on beagle board.I have some test cases on PC and i run them on beagle board over ethernet.
Now i need some metric to find out if my test cases have covered the application running on beagle board.

So far i used GCOV on PC. I ran the application on BBxm. Transferred back the *.gcda files back to PC and then did a coverage report on it.

Somehow i find this cumbersome. I was looking out for solution which is simple, extendable and aeasy from automation point of view.

Regards
Manish

Ahh!

Start an NFS server on the PC (running Linux, I presume) and from the BBone mount the PC's file share.

Now, both the PC and the BBone see the same files and, you will not transfer files back and forth.

Just copy them to the PC's folder.

My best regards

Paulo Ferreira

usuallly such code coverage is only required in safety critical application
why the need for this in test equipment?

— On Thu, 5/30/13, manish kanchan manishdkanchan00@gmail.com wrote:


> From: manish kanchan manishdkanchan00@gmail.com
> Subject: Re: [beagleboard] remote code coverage in beagleboard
> To: beagleboard@googlegroups.com
> Date: Thursday, May 30, 2013, 6:36 AM
>
> I have a code/application which needs to run on beagle board.I have some test cases on PC and i run them on beagle board over ethernet.
> Now i need some metric to find out if my test cases have covered the application running on beagle board.
>
> So far i used GCOV on PC. I ran the application on BBxm. Transferred back the *.gcda files back to PC and then did a coverage report on it.
>
> Somehow i find this cumbersome. I was looking out for solution which is simple, extendable and aeasy from automation point of view.
>
> Regards
> Manish
>
> On Thu, May 30, 2013 at 3:30 PM, Paulo Ferreira paf@keeh.net wrote:
>
> > On 30/05/2013, at 07:12, manish kanchan manishdkanchan00@gmail.com wrote:
> >
> > > just to be clear. I work for a company and we needed some metrix on code coverage. So i was exploring this options.
> > > So far i came across using gcov tools which involves tranfer of file to and fro beagle board.
> >
> > Metrix is a brand of mutimeters and measure instruments. :wink: :wink:
> > http://www.chauvin-arnoux.com/catalogues/catalogues.asp
> >
> > If you need metrics of code coverage, then what is remote code coverage?
> >
> > If your code runs on the BeagleBoard with access to BB specific peripherals you need to test it on the BB.
> > If your code runs on a generic Linux platform, to test it in a generic desktop Linux machine is much easier and faster.
> >
> > You wil have many more tools…
> >
> > Or are missing anything?
> >
> > Paulo Ferreira
> >
> > –
> > For more options, visit http://beagleboard.org/discuss
> > —
> > You received this message because you are subscribed to a topic in the Google Groups “BeagleBoard” group.
> > To unsubscribe from this topic, visit https://groups.google.com/d/topic/beagleboard/_9fPVg-9sXU/unsubscribe?hl=en.
> > To unsubscribe from this group and all its topics, send an email to beagleboard+unsubscribe@googlegroups.com.
> > For more options, visit https://groups.google.com/groups/opt_out.
>
> –
> For more options, visit http://beagleboard.org/discuss
> —
> You received this message because you are subscribed to the Google Groups “BeagleBoard” group.
> To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


|

@Paulo : Thanks. I will try out this methodology.So on the other hand, you feel using GCOV is the right approach ?

@ Mark : As of now the application sits on BBxm (from demo point of view) but it might end up in some other device. It then become important that the code is well covered.

Regards
Manish