summaryrefslogtreecommitdiffstats
path: root/test/Makefile.am
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-03-06 13:23:42 -0800
committerPatrick Venture <venture@google.com>2019-03-07 07:33:09 -0800
commita2efc76b21b6a0349850c9ce3a0e25f1dc4d9c0d (patch)
tree33d51beab3841a9952d4f33932188f69689990c0 /test/Makefile.am
parentfb808d116407442d8cace6bcc484f3144c6c11ef (diff)
downloadphosphor-ipmi-blobs-a2efc76b21b6a0349850c9ce3a0e25f1dc4d9c0d.tar.gz
phosphor-ipmi-blobs-a2efc76b21b6a0349850c9ce3a0e25f1dc4d9c0d.zip
build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this step. Change-Id: I439d58b23d2bc29d6f602600319074c8fd8c04d6 Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'test/Makefile.am')
-rw-r--r--test/Makefile.am12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index 2144c85..a1dfba5 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,12 +1,20 @@
+@CODE_COVERAGE_RULES@
+
AM_CPPFLAGS = \
-I$(top_srcdir)/ \
$(GTEST_CFLAGS) \
- $(GMOCK_CFLAGS)
+ $(GMOCK_CFLAGS) \
+ $(CODE_COVERAGE_CPPFLAGS)
+AM_CFLAGS = \
+ $(CODE_COVERAGE_CFLAGS)
+AM_CXXFLAGS = \
+ $(CODE_COVERAGE_CXXFLAGS)
AM_LDFLAGS = \
$(GTEST_LIBS) \
$(GMOCK_LIBS) \
-lgmock_main \
- $(OESDK_TESTCASE_FLAGS)
+ $(OESDK_TESTCASE_FLAGS) \
+ $(CODE_COVERAGE_LIBS)
# Run all 'check' test programs
check_PROGRAMS = \
OpenPOWER on IntegriCloud