firmware: add logging to factory failures
Add logging to factory failures. This is now possible
with injection available for phosphor-logging.
Change-Id: I77ac959d58e44305d7acf918b656bdd21a9c4da8
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/test/Makefile.am b/test/Makefile.am
index 731a030..8e7dada 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -3,15 +3,18 @@
$(GMOCK_CFLAGS)
AM_CXXFLAGS = \
$(GTEST_MAIN_CFLAGS) \
- $(SDBUSPLUS_CFLAGS)
+ $(SDBUSPLUS_CFLAGS) \
+ $(PHOSPHOR_LOGGING_CFLAGS)
AM_LDFLAGS = \
$(GMOCK_LIBS) \
$(GTEST_MAIN_LIBS) \
$(OESDK_TESTCASE_FLAGS) \
- $(SDBUSPLUS_LIBS)
+ $(SDBUSPLUS_LIBS) \
+ $(PHOSPHOR_LOGGING_LIBS)
# Run all 'check' test programs
check_PROGRAMS = \
+ firmware_createhandler_unittest \
firmware_handler_unittest \
firmware_stat_unittest \
firmware_canhandle_unittest \
@@ -26,6 +29,9 @@
TESTS = $(check_PROGRAMS)
+firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp
+firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o
+
firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o