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 <[email protected]>
Authored: Mon Jun 13 13:09:06 2016 +0800
Committer: hzhang2 <[email protected]>
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
 

Reply via email to