diff options
| author | Patrick Venture <venture@google.com> | 2019-03-06 10:37:30 -0800 |
|---|---|---|
| committer | Patrick Venture <venture@google.com> | 2019-03-19 09:39:52 -0700 |
| commit | 69a68eddc25381ca6bee24ab668ba67a975a1954 (patch) | |
| tree | 2db5682c0b6d3d13143dcf711ce37778df77d42e /test | |
| parent | 85ba64a653de3ede60a228f42f62dcf1ab55ca17 (diff) | |
| download | phosphor-hwmon-69a68eddc25381ca6bee24ab668ba67a975a1954.tar.gz phosphor-hwmon-69a68eddc25381ca6bee24ab668ba67a975a1954.zip | |
build: enable code coverage
Enable code coverage for the project. Valgrind not enabled in this
step.
Tested: Verified code coverage step now running.
Change-Id: Ieb3606e5ad741fb0dd181f8da594c18258efa6bc
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.am | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 562de03..60d07e0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -3,14 +3,20 @@ AM_CPPFLAGS = \ $(GTEST_CFLAGS) \ $(GMOCK_CFLAGS) \ $(SDBUSPLUS_CFLAGS) \ - $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) + $(PHOSPHOR_DBUS_INTERFACES_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) \ $(SDBUSPLUS_LIBS) \ - $(PHOSPHOR_DBUS_INTERFACES_LIBS) + $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ + $(CODE_COVERAGE_LIBS) # Run all 'check' test programs check_PROGRAMS = hwmon_unittest fanpwm_unittest sensor_unittest |

