You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hawq.apache.org by rl...@apache.org on 2016/03/02 03:41:39 UTC
incubator-hawq git commit: HAWQ-475.Add build_type gcov for code
coverage.
Repository: incubator-hawq
Updated Branches:
refs/heads/master d9198667a -> daa581d2a
HAWQ-475.Add build_type gcov for 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/daa581d2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/daa581d2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/daa581d2
Branch: refs/heads/master
Commit: daa581d2a2caf99a644f4e621ba6eb5c88ec76d9
Parents: d919866
Author: xsheng <xs...@pivotal.io>
Authored: Tue Mar 1 15:54:02 2016 +0800
Committer: rlei <rl...@pivotal.io>
Committed: Wed Mar 2 10:41:13 2016 +0800
----------------------------------------------------------------------
src/Makefile.global.in | 6 ++++++
src/bin/gpfdist/Makefile | 3 +++
2 files changed, 9 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/daa581d2/src/Makefile.global.in
----------------------------------------------------------------------
diff --git a/src/Makefile.global.in b/src/Makefile.global.in
index 73af93d..061695e 100644
--- a/src/Makefile.global.in
+++ b/src/Makefile.global.in
@@ -367,6 +367,12 @@ GCOV = @GCOV@
LCOV = @LCOV@
GENHTML = @GENHTML@
+ifeq ($(BUILD_TYPE),gcov)
+ CFLAGS+=-fprofile-arcs -ftest-coverage
+ CXXFLAGS+=-fprofile-arcs -ftest-coverage
+ export BUILD_TYPE=gcov
+endif
+
ifeq ($(enable_coverage),yes)
# ccache loses .gcno files
export CCACHE_DISABLE = 1
http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/daa581d2/src/bin/gpfdist/Makefile
----------------------------------------------------------------------
diff --git a/src/bin/gpfdist/Makefile b/src/bin/gpfdist/Makefile
index 9642894..12b99a2 100644
--- a/src/bin/gpfdist/Makefile
+++ b/src/bin/gpfdist/Makefile
@@ -21,6 +21,9 @@ top_builddir = ../../..
include $(top_builddir)/src/Makefile.global
LIBS := -levent -lyaml -lz -lbz2 -lssl -lcrypto
+ifeq ($(BUILD_TYPE), gcov)
+LIBS := -lgcov $(LIBS)
+endif
code_dir = $(CURDIR)/src/gpfdist/
GPFDISTFILES = fstream.c gfile.c gpfdist.c transform.c