blob: 3f78ddaf99583369dcd74f913d065c64a319dc71 [file] [log] [blame]
Patrick Venture6bc04f92019-03-06 13:49:21 -08001AM_CPPFLAGS = \
2 -I$(top_srcdir)/ \
Patrick Venture360b9a32018-12-12 14:11:39 -08003 -I$(top_srcdir)/tools/ \
Patrick Venture21be45a2018-11-06 12:08:52 -08004 $(GTEST_CFLAGS) \
5 $(GMOCK_CFLAGS)
6AM_CXXFLAGS = \
Patrick Ventured333a872018-12-03 16:24:26 -08007 $(SDBUSPLUS_CFLAGS) \
8 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venture21be45a2018-11-06 12:08:52 -08009AM_LDFLAGS = \
Patrick Venture6bc04f92019-03-06 13:49:21 -080010 $(GTEST_LIBS) \
Patrick Venture21be45a2018-11-06 12:08:52 -080011 $(GMOCK_LIBS) \
Patrick Venture6bc04f92019-03-06 13:49:21 -080012 -lgmock_main \
Patrick Venture4eb55952018-11-16 15:36:24 -080013 $(OESDK_TESTCASE_FLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -080014 $(SDBUSPLUS_LIBS) \
15 $(PHOSPHOR_LOGGING_LIBS)
Patrick Venture21be45a2018-11-06 12:08:52 -080016
17# Run all 'check' test programs
18check_PROGRAMS = \
Patrick Ventured333a872018-12-03 16:24:26 -080019 firmware_createhandler_unittest \
Patrick Venturede77b302018-11-06 15:38:04 -080020 firmware_handler_unittest \
Patrick Venturedf848ee2018-11-06 15:44:00 -080021 firmware_stat_unittest \
Patrick Venture72388d72018-11-07 15:06:36 -080022 firmware_canhandle_unittest \
Patrick Venture18235e62018-11-08 10:21:09 -080023 firmware_open_unittest \
Patrick Venture8c535332018-11-08 15:58:00 -080024 firmware_write_unittest \
Patrick Venture68bb1432018-11-09 20:08:48 -080025 firmware_writemeta_unittest \
Patrick Venture9e5aab22018-11-09 20:49:28 -080026 firmware_close_unittest \
Patrick Venturea17cf442018-11-15 09:31:51 -080027 firmware_delete_unittest \
Patrick Venturecc7d1602018-11-15 13:58:33 -080028 firmware_sessionstat_unittest \
Patrick Ventureffcc5502018-11-16 12:32:38 -080029 firmware_commit_unittest \
Patrick Venturec79faa12018-12-12 13:12:21 -080030 file_handler_unittest \
Patrick Ventureaa32a362018-12-13 10:52:33 -080031 tools_blob_unittest \
Patrick Venture907f3a72019-01-15 14:13:37 -080032 tools_bt_unittest \
Patrick Venture8e1b2332019-01-17 15:22:45 -080033 tools_lpc_unittest \
Patrick Venture2e12a432018-12-13 18:05:11 -080034 tools_updater_unittest \
Patrick Venture9dfcf5d2019-01-16 09:53:10 -080035 tools_ipmi_unittest \
36 tools_ipmi_error_unittest
Patrick Venture21be45a2018-11-06 12:08:52 -080037
38TESTS = $(check_PROGRAMS)
39
Patrick Ventured333a872018-12-03 16:24:26 -080040firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp
41firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o
42
Patrick Venturede77b302018-11-06 15:38:04 -080043firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
44firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture21be45a2018-11-06 12:08:52 -080045
Patrick Venturede77b302018-11-06 15:38:04 -080046firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp
47firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture46637c82018-11-06 15:20:24 -080048
Patrick Venturedf848ee2018-11-06 15:44:00 -080049firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp
50firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture72388d72018-11-07 15:06:36 -080051
52firmware_open_unittest_SOURCES = firmware_open_unittest.cpp
53firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture18235e62018-11-08 10:21:09 -080054
55firmware_write_unittest_SOURCES = firmware_write_unittest.cpp
56firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture8c535332018-11-08 15:58:00 -080057
58firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp
59firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture68bb1432018-11-09 20:08:48 -080060
61firmware_close_unittest_SOURCES = firmware_close_unittest.cpp
62firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture9e5aab22018-11-09 20:49:28 -080063
64firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp
65firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venturea17cf442018-11-15 09:31:51 -080066
Patrick Venturecc7d1602018-11-15 13:58:33 -080067firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp
68firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o
69
Patrick Ventureffcc5502018-11-16 12:32:38 -080070firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp
71firmware_commit_unittest_LDADD = $(top_builddir)/firmware_handler.o
72
Patrick Venture7753d942018-11-15 13:15:36 -080073file_handler_unittest_SOURCES = file_handler_unittest.cpp
Patrick Venture86b49e22018-11-15 14:29:00 -080074file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs
Patrick Venturec79faa12018-12-12 13:12:21 -080075
76tools_blob_unittest_SOURCES = tools_blob_unittest.cpp
77tools_blob_unittest_LDADD = $(top_builddir)/tools/blob_handler.o
Patrick Ventureaa32a362018-12-13 10:52:33 -080078
Patrick Venture907f3a72019-01-15 14:13:37 -080079tools_bt_unittest_SOURCES = tools_bt_unittest.cpp
80tools_bt_unittest_LDADD = $(top_builddir)/tools/bt.o
81
Patrick Venture8e1b2332019-01-17 15:22:45 -080082tools_lpc_unittest_SOURCES = tools_lpc_unittest.cpp
83tools_lpc_unittest_LDADD = $(top_builddir)/tools/lpc.o
84
Patrick Ventureaa32a362018-12-13 10:52:33 -080085tools_updater_unittest_SOURCES = tools_updater_unittest.cpp
86tools_updater_unittest_LDADD = $(top_builddir)/tools/updater.o
Patrick Venture2e12a432018-12-13 18:05:11 -080087
88tools_ipmi_unittest_SOURCES = tools_ipmi_unittest.cpp
89tools_ipmi_unittest_LDADD = $(top_builddir)/tools/ipmi_handler.o
Patrick Venture9dfcf5d2019-01-16 09:53:10 -080090
91tools_ipmi_error_unittest_SOURCES = tools_ipmi_error_unittest.cpp
92tools_ipmi_error_unittest_LDADD =