From: "Andreas Färber" <afaerber@suse.de>
To: Blue Swirl <blauwirbel@gmail.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] tests: add gcov target
Date: Sun, 10 Jun 2012 18:08:19 +0200 [thread overview]
Message-ID: <4FD4C673.607@suse.de> (raw)
In-Reply-To: <dbeda171a924975032f9f69d3d7dc91fe067f1de.1339333471.git.blauwirbel@gmail.com>
Am 10.06.2012 15:04, schrieb Blue Swirl:
> Add support for compiling for GCOV test coverage, enabled
> with '--enable-gcov' during configure.
>
> After tests, test coverage can be reported with 'make gcov'.
>
> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
> ---
> configure | 19 ++++++++++++++++++-
> tests/Makefile | 40 ++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+), 1 deletions(-)
>
> diff --git a/configure b/configure
> index b4fb715..d773f4e 100755
> --- a/configure
> +++ b/configure
[...]
> @@ -2851,10 +2859,14 @@ fi
> # End of CC checks
> # After here, no more $cc or $ld runs
>
> -if test "$debug" = "no" ; then
> +if test "$gcov" = "yes" ; then
> + CFLAGS="-fprofile-arcs -ftest-coverage -g $CFLAGS"
> + LDFLAGS="-fprofile-arcs -ftest-coverage $LDFLAGS"
> +elif test "$debug" = "no" ; then
> CFLAGS="-O2 $CFLAGS"
> fi
Is it intentional that no -O option is being specified for gcov?
>
> +
> # Consult white-list to determine whether to enable werror
> # by default. Only enable by default for git builds
> z_version=`cut -f3 -d. $source_path/VERSION`
[snip]
Am I understanding correctly that this gcov setup must be done in a
separate build dir from an actually "usable" build?
Small improvement: Please either include a cover letter for a threaded
series or send unrelated patches separately. Groups replies more nicely.
Regards,
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-06-10 16:08 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-10 13:04 [Qemu-devel] [PATCH 1/2] libcacard: build fixes Blue Swirl
2012-06-10 13:04 ` [Qemu-devel] [PATCH 2/2] tests: add gcov target Blue Swirl
2012-06-10 16:04 ` Paolo Bonzini
2012-06-10 18:07 ` Blue Swirl
2012-06-11 4:56 ` Paolo Bonzini
2012-06-10 16:08 ` Andreas Färber [this message]
2012-06-10 18:14 ` Blue Swirl
2012-06-10 13:32 ` [Qemu-devel] [PATCH 1/2] libcacard: build fixes Alon Levy
2012-06-10 16:10 ` Andreas Färber
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FD4C673.607@suse.de \
--to=afaerber@suse.de \
--cc=blauwirbel@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).