summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPatrick Venture <venture@google.com>2019-03-06 09:54:49 -0800
committerPatrick Venture <venture@google.com>2019-03-06 10:10:43 -0800
commit94feffa5cd850c18230eee79cc17edd0dd35741b (patch)
treef23e768b0af1e4a86251afbebc651dc425e46501 /test
parent90f9bb51836e876130d947e18653891dedc528c2 (diff)
downloadphosphor-pid-control-94feffa5cd850c18230eee79cc17edd0dd35741b.tar.gz
phosphor-pid-control-94feffa5cd850c18230eee79cc17edd0dd35741b.zip
build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this step. Change-Id: I62891f6054e5e5315d7f150a1f3dcf619f2740db Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.am12
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am
index e2809f3..3dfae00 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,10 +1,17 @@
+@CODE_COVERAGE_RULES@
+
AM_CPPFLAGS = \
-I$(top_srcdir)/ \
$(GTEST_CFLAGS) \
$(GMOCK_CFLAGS) \
$(SDBUSPLUS_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
- $(PHOSPHOR_LOGGING_CFLAGS)
+ $(PHOSPHOR_LOGGING_CFLAGS) \
+ $(CODE_COVERAGE_CPPFLAGS)
+AM_CFLAGS = \
+ $(CODE_COVERAGE_CFLAGS)
+AM_CXXFLAGS = \
+ $(CODE_COVERAGE_CXXFLAGS)
AM_LDFLAGS = \
$(GTEST_LIBS) \
$(GMOCK_LIBS) \
@@ -12,7 +19,8 @@ AM_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS) \
$(SDBUSPLUS_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
- $(PHOSPHOR_LOGGING_LIBS)
+ $(PHOSPHOR_LOGGING_LIBS) \
+ $(CODE_COVERAGE_LIBS)
# Run all 'check' test programs
check_PROGRAMS = sensor_manager_unittest sensor_pluggable_unittest \
OpenPOWER on IntegriCloud