blob: 3d51fa4e9543c24760c2d6ca09b03e4adfb1ec34 [file] [log] [blame]
Patrick Venture21be45a2018-11-06 12:08:52 -08001AM_CPPFLAGS = -I$(top_srcdir)/ \
Patrick Venture360b9a32018-12-12 14:11:39 -08002 -I$(top_srcdir)/tools/ \
Patrick Venture21be45a2018-11-06 12:08:52 -08003 $(GTEST_CFLAGS) \
4 $(GMOCK_CFLAGS)
5AM_CXXFLAGS = \
Patrick Venture4eb55952018-11-16 15:36:24 -08006 $(GTEST_MAIN_CFLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -08007 $(SDBUSPLUS_CFLAGS) \
8 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venture21be45a2018-11-06 12:08:52 -08009AM_LDFLAGS = \
10 $(GMOCK_LIBS) \
11 $(GTEST_MAIN_LIBS) \
Patrick Venture4eb55952018-11-16 15:36:24 -080012 $(OESDK_TESTCASE_FLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -080013 $(SDBUSPLUS_LIBS) \
14 $(PHOSPHOR_LOGGING_LIBS)
Patrick Venture21be45a2018-11-06 12:08:52 -080015
16# Run all 'check' test programs
17check_PROGRAMS = \
Patrick Ventured333a872018-12-03 16:24:26 -080018 firmware_createhandler_unittest \
Patrick Venturede77b302018-11-06 15:38:04 -080019 firmware_handler_unittest \
Patrick Venturedf848ee2018-11-06 15:44:00 -080020 firmware_stat_unittest \
Patrick Venture72388d72018-11-07 15:06:36 -080021 firmware_canhandle_unittest \
Patrick Venture18235e62018-11-08 10:21:09 -080022 firmware_open_unittest \
Patrick Venture8c535332018-11-08 15:58:00 -080023 firmware_write_unittest \
Patrick Venture68bb1432018-11-09 20:08:48 -080024 firmware_writemeta_unittest \
Patrick Venture9e5aab22018-11-09 20:49:28 -080025 firmware_close_unittest \
Patrick Venturea17cf442018-11-15 09:31:51 -080026 firmware_delete_unittest \
Patrick Venturecc7d1602018-11-15 13:58:33 -080027 firmware_sessionstat_unittest \
Patrick Ventureffcc5502018-11-16 12:32:38 -080028 firmware_commit_unittest \
Patrick Venturec79faa12018-12-12 13:12:21 -080029 file_handler_unittest \
Patrick Ventureaa32a362018-12-13 10:52:33 -080030 tools_blob_unittest \
Patrick Venture2e12a432018-12-13 18:05:11 -080031 tools_updater_unittest \
32 tools_ipmi_unittest
Patrick Venture21be45a2018-11-06 12:08:52 -080033
34TESTS = $(check_PROGRAMS)
35
Patrick Ventured333a872018-12-03 16:24:26 -080036firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp
37firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o
38
Patrick Venturede77b302018-11-06 15:38:04 -080039firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
40firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture21be45a2018-11-06 12:08:52 -080041
Patrick Venturede77b302018-11-06 15:38:04 -080042firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp
43firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture46637c82018-11-06 15:20:24 -080044
Patrick Venturedf848ee2018-11-06 15:44:00 -080045firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp
46firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture72388d72018-11-07 15:06:36 -080047
48firmware_open_unittest_SOURCES = firmware_open_unittest.cpp
49firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture18235e62018-11-08 10:21:09 -080050
51firmware_write_unittest_SOURCES = firmware_write_unittest.cpp
52firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture8c535332018-11-08 15:58:00 -080053
54firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp
55firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture68bb1432018-11-09 20:08:48 -080056
57firmware_close_unittest_SOURCES = firmware_close_unittest.cpp
58firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venture9e5aab22018-11-09 20:49:28 -080059
60firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp
61firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o
Patrick Venturea17cf442018-11-15 09:31:51 -080062
Patrick Venturecc7d1602018-11-15 13:58:33 -080063firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp
64firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o
65
Patrick Ventureffcc5502018-11-16 12:32:38 -080066firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp
67firmware_commit_unittest_LDADD = $(top_builddir)/firmware_handler.o
68
Patrick Venture7753d942018-11-15 13:15:36 -080069file_handler_unittest_SOURCES = file_handler_unittest.cpp
Patrick Venture86b49e22018-11-15 14:29:00 -080070file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs
Patrick Venturec79faa12018-12-12 13:12:21 -080071
72tools_blob_unittest_SOURCES = tools_blob_unittest.cpp
73tools_blob_unittest_LDADD = $(top_builddir)/tools/blob_handler.o
Patrick Ventureaa32a362018-12-13 10:52:33 -080074
75tools_updater_unittest_SOURCES = tools_updater_unittest.cpp
76tools_updater_unittest_LDADD = $(top_builddir)/tools/updater.o
Patrick Venture2e12a432018-12-13 18:05:11 -080077
78tools_ipmi_unittest_SOURCES = tools_ipmi_unittest.cpp
79tools_ipmi_unittest_LDADD = $(top_builddir)/tools/ipmi_handler.o