Received: from eggs.gnu.org ([2001:4830:134:3::10]:36104) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fVjk8-00031a-7Q for qemu-devel@nongnu.org; Wed, 20 Jun 2018 16:30:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fVjk5-0005Pv-2t for qemu-devel@nongnu.org; Wed, 20 Jun 2018 16:30:16 -0400 Received: from mail-qt0-x241.google.com ([2607:f8b0:400d:c0d::241]:44820) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fVjk4-0005Pn-UM for qemu-devel@nongnu.org; Wed, 20 Jun 2018 16:30:13 -0400 Received: by mail-qt0-x241.google.com with SMTP id x5-v6so155399qte.11 for ; Wed, 20 Jun 2018 13:30:12 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= References: <20180620132032.12952-1-alex.bennee@linaro.org> <20180620132032.12952-4-alex.bennee@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= Message-ID: <6fc68471-a891-e2bf-7573-ac41a7a1862c@amsat.org> Date: Wed, 20 Jun 2018 17:30:08 -0300 MIME-Version: 1.0 In-Reply-To: <20180620132032.12952-4-alex.bennee@linaro.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [RFC PATCH 3/5] .travis.yml: add gcovr summary for GCOV build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?Alex_Benn=c3=a9e?= , cota@braap.org, famz@redhat.com, berrange@redhat.com, richard.henderson@linaro.org, balrogg@gmail.com, aurelien@aurel32.net, agraf@suse.de Cc: qemu-devel@nongnu.org On 06/20/2018 10:20 AM, Alex Bennée wrote: > This gives a more useful summary, sorted by descending % coverage, > after the tests have run. The final numbers will give an idea if our > coverage is getting better or worse. > > As quite a lot of lines don't get covered at all we filter out all the > 0% lines. If the file doesn't appear it is not being exercised. > > Signed-off-by: Alex Bennée > --- > .travis.yml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/.travis.yml b/.travis.yml > index fabfe9ec34..83e0577464 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -38,6 +38,7 @@ addons: > - libvte-2.90-dev > - sparse > - uuid-dev > + - gcovr > > # The channel name "irc.oftc.net#qemu" is encrypted against qemu/qemu > # to prevent IRC notifications from forks. This was created using: > @@ -81,6 +82,8 @@ matrix: > compiler: clang > # gprof/gcov are GCC features > - env: CONFIG="--enable-gprof --enable-gcov --disable-pie --target-list=aarch64-softmmu,arm-softmmu,i386-softmmu,mips-softmmu,mips64-softmmu,ppc64-softmmu,riscv64-softmmu,s390x-softmmu,x86_64-softmmu" > + after_success: > + - gcovr -p | grep -v "0%" | sed s/[0-9]\*[,-]//g Can we use 'fgrep -B 1 -v "0%"' (--before-context=1) to also remove the filepath line? Any idea why I get this? "(WARNING) Unrecognized GCOV output: '====='" Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé > compiler: gcc > # We manually include builds which we disable "make check" for > - env: CONFIG="--enable-debug --enable-tcg-interpreter" >