Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6FD4C200B26 for ; Mon, 13 Jun 2016 07:09:53 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6E557160A5C; Mon, 13 Jun 2016 05:09:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id B8044160A2C for ; Mon, 13 Jun 2016 07:09:52 +0200 (CEST) Received: (qmail 64036 invoked by uid 500); 13 Jun 2016 05:09:51 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 64027 invoked by uid 99); 13 Jun 2016 05:09:51 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2016 05:09:51 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 104C71800B7 for ; Mon, 13 Jun 2016 05:09:51 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cOFwy423pg2M for ; Mon, 13 Jun 2016 05:09:48 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 9DA405FB2C for ; Mon, 13 Jun 2016 05:09:47 +0000 (UTC) Received: (qmail 64024 invoked by uid 99); 13 Jun 2016 05:09:46 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Jun 2016 05:09:46 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id B7D4DE049D; Mon, 13 Jun 2016 05:09:46 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: hubertzhang@apache.org To: commits@hawq.incubator.apache.org Message-Id: X-Mailer: ASF-Git Admin Mailer Subject: incubator-hawq git commit: HAWQ-803. Enable filter in code coverage. Date: Mon, 13 Jun 2016 05:09:46 +0000 (UTC) archived-at: Mon, 13 Jun 2016 05:09:53 -0000 Repository: incubator-hawq Updated Branches: refs/heads/master 478f41ac6 -> 32e9dd2ac HAWQ-803. Enable filter in code coverage. Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/32e9dd2a Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/32e9dd2a Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/32e9dd2a Branch: refs/heads/master Commit: 32e9dd2ace329b6da01ec742e3536aae1378aba8 Parents: 478f41a Author: hzhang2 Authored: Mon Jun 13 13:09:06 2016 +0800 Committer: hzhang2 Committed: Mon Jun 13 13:09:06 2016 +0800 ---------------------------------------------------------------------- .gitignore | 5 +++++ GNUmakefile.in | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/32e9dd2a/.gitignore ---------------------------------------------------------------------- diff --git a/.gitignore b/.gitignore index 8fd9023..698f7bd 100644 --- a/.gitignore +++ b/.gitignore @@ -52,3 +52,8 @@ env.sh ext/ plr.tgz autom4te.cache/ + +# coverage +*.gcda +*.gcno +CodeCoverage* http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/32e9dd2a/GNUmakefile.in ---------------------------------------------------------------------- diff --git a/GNUmakefile.in b/GNUmakefile.in index 49bfbd3..7d22d38 100644 --- a/GNUmakefile.in +++ b/GNUmakefile.in @@ -165,8 +165,12 @@ distcheck: $(distdir).tar.gz -rm -rf $(distdir) $(dummy) @echo "Distribution integrity checks out." +ifeq ($(origin filter), undefined) +filter = . +endif + coverage-show: - lcov --directory . --capture --output-file CodeCoverage.info + lcov --directory $(filter) --capture --output-file CodeCoverage.info lcov --remove CodeCoverage.info 'test/*' 'mock/*' '/usr/*' '/opt/*' '*ext/rhel5_x86_64*' '*ext/osx*' --output-file CodeCoverage.info.cleaned genhtml -o CodeCoverageReport CodeCoverage.info.cleaned