* [LTP] Finding True Application Code Coverage in case of heteregenous Executable Environment
@ 2011-01-30 19:28 Subrata Modak
2011-01-31 12:21 ` [LTP] [Ltp-coverage] " Peter Oberparleiter
0 siblings, 1 reply; 2+ messages in thread
From: Subrata Modak @ 2011-01-30 19:28 UTC (permalink / raw)
To: Peter Oberparleiter, Garrett Cooper; +Cc: ltp-list, ltp-coverage
Peter,
Is there a way to find true application code coverage for a
heterogeneous Executable Environment, where the application can consist
of:
1. C Programs(only for which .gcno and .gcda files can be
generated)
2. Shell Scripts,
3. Perl Scripts,
4. Python Scripts,
5. etc ?
Is there any by which i can also count the no. of lines/ branches/
Functions executed by the Scripts ??
Another question. when i tried to execute the following, it took into
consideration only the .gcda of the C executables invoked by the
program:
1. lcov --directory /root/LTP-GIT/ltp/ --zerocounters
2. (cd /opt/ltp/; ./runltp -f math)
3. lcov --directory /root/LTP-GIT/ltp/ --capture --output-file
app.info
4. genhtml app.info
Instead i wanted it consider all C files for which .gcno are present
and .gcda are not present(as i did not execute the corresponding
binaries), so to truly find the exact % of C files covered and % left
out from the whole trickled down /root/LTP-GIT/ltp/ directory.
Regards--
Subrata
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LTP] [Ltp-coverage] Finding True Application Code Coverage in case of heteregenous Executable Environment
2011-01-30 19:28 [LTP] Finding True Application Code Coverage in case of heteregenous Executable Environment Subrata Modak
@ 2011-01-31 12:21 ` Peter Oberparleiter
0 siblings, 0 replies; 2+ messages in thread
From: Peter Oberparleiter @ 2011-01-31 12:21 UTC (permalink / raw)
To: subrata; +Cc: ltp-list, ltp-coverage
Hi Subrata,
On 30.01.2011 20:28, Subrata Modak wrote:
> Is there a way to find true application code coverage for a
> heterogeneous Executable Environment, where the application can consist
> of:
Short answer: no
> 1. C Programs(only for which .gcno and .gcda files can be
> generated)
Simply use lcov with gcc.
> 2. Shell Scripts,
See http://code.google.com/p/shcov/
> 3. Perl Scripts,
See http://search.cpan.org/~pjcj/Devel-Cover-0.73/lib/Devel/Cover.pm
I've started work on converting code coverage data from that tool into
lcov format but haven't finished that yet.
> 4. Python Scripts,
I don't have experience with python.
> 5. etc ?
Code coverage measurements all rely on target language specific
mechanisms. There is no universal mechanism to collect code coverage
from any language.
> Is there any by which i can also count the no. of lines/ branches/
> Functions executed by the Scripts ??
See the references above.
> Another question. when i tried to execute the following, it took into
> consideration only the .gcda of the C executables invoked by the
> program:
> 1. lcov --directory /root/LTP-GIT/ltp/ --zerocounters
> 2. (cd /opt/ltp/; ./runltp -f math)
> 3. lcov --directory /root/LTP-GIT/ltp/ --capture --output-file
> app.info
> 4. genhtml app.info
>
> Instead i wanted it consider all C files for which .gcno are present
> and .gcda are not present(as i did not execute the corresponding
> binaries), so to truly find the exact % of C files covered and % left
> out from the whole trickled down /root/LTP-GIT/ltp/ directory.
That is what the --initial option of lcov is for. See the man page of
lcov for more information.
Regards,
Peter
------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-31 12:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 19:28 [LTP] Finding True Application Code Coverage in case of heteregenous Executable Environment Subrata Modak
2011-01-31 12:21 ` [LTP] [Ltp-coverage] " Peter Oberparleiter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox