blob: bf818fdc5c600a213d2e3df4cf7dc7e473f76a6c [file] [log] [blame]
Patrick Venture4679e502019-03-19 11:27:00 -07001@VALGRIND_CHECK_RULES@
2
Patrick Venture6bc04f92019-03-06 13:49:21 -08003AM_CPPFLAGS = \
4 -I$(top_srcdir)/ \
Patrick Venture360b9a32018-12-12 14:11:39 -08005 -I$(top_srcdir)/tools/ \
Patrick Venturef0c71df2019-06-26 19:39:36 -07006 -I$(top_srcdir)/bmc/ \
Jason Lingded66d02020-10-23 14:13:03 -07007 -I$(top_srcdir)/bmc/firmware-handler \
Patrick Venture21be45a2018-11-06 12:08:52 -08008 $(GTEST_CFLAGS) \
Patrick Venture2f3b4b62019-03-08 13:22:40 -08009 $(GMOCK_CFLAGS) \
10 $(CODE_COVERAGE_CPPFLAGS)
Patrick Venture21be45a2018-11-06 12:08:52 -080011AM_CXXFLAGS = \
Patrick Ventured333a872018-12-03 16:24:26 -080012 $(SDBUSPLUS_CFLAGS) \
Patrick Venture2f3b4b62019-03-08 13:22:40 -080013 $(PHOSPHOR_LOGGING_CFLAGS) \
14 $(CODE_COVERAGE_CXXFLAGS)
Patrick Venture21be45a2018-11-06 12:08:52 -080015AM_LDFLAGS = \
Patrick Venture6bc04f92019-03-06 13:49:21 -080016 $(GTEST_LIBS) \
Patrick Venture21be45a2018-11-06 12:08:52 -080017 $(GMOCK_LIBS) \
Patrick Venture6bc04f92019-03-06 13:49:21 -080018 -lgmock_main \
Patrick Venture4eb55952018-11-16 15:36:24 -080019 $(OESDK_TESTCASE_FLAGS) \
Patrick Ventured333a872018-12-03 16:24:26 -080020 $(SDBUSPLUS_LIBS) \
Patrick Venture2f3b4b62019-03-08 13:22:40 -080021 $(PHOSPHOR_LOGGING_LIBS) \
22 $(CODE_COVERAGE_LIBS)
Patrick Venture21be45a2018-11-06 12:08:52 -080023
24# Run all 'check' test programs
25check_PROGRAMS = \
Patrick Venturede77b302018-11-06 15:38:04 -080026 firmware_handler_unittest \
Patrick Venturedf848ee2018-11-06 15:44:00 -080027 firmware_stat_unittest \
Patrick Venture72388d72018-11-07 15:06:36 -080028 firmware_canhandle_unittest \
Patrick Venture8c535332018-11-08 15:58:00 -080029 firmware_write_unittest \
Patrick Venture68bb1432018-11-09 20:08:48 -080030 firmware_writemeta_unittest \
Benjamin Faira67e9e92019-11-15 14:47:42 -080031 firmware_open_unittest \
Patrick Venture9e5aab22018-11-09 20:49:28 -080032 firmware_close_unittest \
Patrick Venturecc7d1602018-11-15 13:58:33 -080033 firmware_sessionstat_unittest \
Patrick Ventureffcc5502018-11-16 12:32:38 -080034 firmware_commit_unittest \
Patrick Venture997023d2019-05-23 07:41:26 -070035 file_handler_unittest \
Patrick Ventureebcc5222019-05-23 10:36:40 -070036 firmware_state_notyetstarted_unittest \
Patrick Venture61d2ed42019-05-23 18:16:31 -070037 firmware_state_uploadinprogress_unittest \
Patrick Venture237e2c62019-05-23 20:35:33 -070038 firmware_state_verificationpending_unittest \
Patrick Venturea82f99e2019-05-24 15:44:35 -070039 firmware_state_verificationstarted_unittest \
Patrick Venture0cd945c2019-05-30 13:36:53 -070040 firmware_state_verificationcompleted_unittest \
Patrick Venture16ab2a12019-05-31 08:52:51 -070041 firmware_state_updatepending_unittest \
Patrick Venture2098ff92019-06-03 10:18:05 -070042 firmware_state_updatestarted_unittest \
Patrick Venture3e9899d2019-06-06 10:37:32 -070043 firmware_state_updatecompleted_unittest \
Patrick Venturefa06a5f2019-07-01 09:22:38 -070044 firmware_state_notyetstarted_tarball_unittest \
Patrick Venture298930a2019-07-03 11:44:52 -070045 firmware_multiplebundle_unittest \
Patrick Ventured53d60a2020-04-07 09:01:34 -070046 firmware_json_unittest \
47 firmware_skip_unittest
Patrick Venturecf10cda2019-05-15 10:35:10 -070048
Patrick Venture21be45a2018-11-06 12:08:52 -080049TESTS = $(check_PROGRAMS)
50
Patrick Venturede77b302018-11-06 15:38:04 -080051firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070052firmware_handler_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture21be45a2018-11-06 12:08:52 -080053
Patrick Venturede77b302018-11-06 15:38:04 -080054firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070055firmware_stat_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture46637c82018-11-06 15:20:24 -080056
Patrick Venturedf848ee2018-11-06 15:44:00 -080057firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070058firmware_canhandle_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture72388d72018-11-07 15:06:36 -080059
Patrick Venture18235e62018-11-08 10:21:09 -080060firmware_write_unittest_SOURCES = firmware_write_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070061firmware_write_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture8c535332018-11-08 15:58:00 -080062
63firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070064firmware_writemeta_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture68bb1432018-11-09 20:08:48 -080065
Benjamin Faira67e9e92019-11-15 14:47:42 -080066firmware_open_unittest_SOURCES = firmware_open_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070067firmware_open_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Benjamin Faira67e9e92019-11-15 14:47:42 -080068
Patrick Venture68bb1432018-11-09 20:08:48 -080069firmware_close_unittest_SOURCES = firmware_close_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070070firmware_close_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture9e5aab22018-11-09 20:49:28 -080071
Patrick Venturecc7d1602018-11-15 13:58:33 -080072firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070073firmware_sessionstat_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venturecc7d1602018-11-15 13:58:33 -080074
Patrick Ventureffcc5502018-11-16 12:32:38 -080075firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070076firmware_commit_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Ventureffcc5502018-11-16 12:32:38 -080077
Patrick Venture7753d942018-11-15 13:15:36 -080078file_handler_unittest_SOURCES = file_handler_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070079file_handler_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la -lstdc++fs
Patrick Venturec79faa12018-12-12 13:12:21 -080080
Patrick Venture8a4f2aa2019-05-23 08:40:21 -070081firmware_state_notyetstarted_unittest_SOURCES = firmware_state_notyetstarted_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070082firmware_state_notyetstarted_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture997023d2019-05-23 07:41:26 -070083
Patrick Ventureebcc5222019-05-23 10:36:40 -070084firmware_state_uploadinprogress_unittest_SOURCES = firmware_state_uploadinprogress_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070085firmware_state_uploadinprogress_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Ventureebcc5222019-05-23 10:36:40 -070086
Patrick Venture61d2ed42019-05-23 18:16:31 -070087firmware_state_verificationpending_unittest_SOURCES = firmware_state_verificationpending_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070088firmware_state_verificationpending_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture61d2ed42019-05-23 18:16:31 -070089
Patrick Venture237e2c62019-05-23 20:35:33 -070090firmware_state_verificationstarted_unittest_SOURCES = firmware_state_verificationstarted_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070091firmware_state_verificationstarted_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture237e2c62019-05-23 20:35:33 -070092
Patrick Venturea82f99e2019-05-24 15:44:35 -070093firmware_state_verificationcompleted_unittest_SOURCES = firmware_state_verificationcompleted_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070094firmware_state_verificationcompleted_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venturea82f99e2019-05-24 15:44:35 -070095
Patrick Venture0cd945c2019-05-30 13:36:53 -070096firmware_state_updatepending_unittest_SOURCES = firmware_state_updatepending_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -070097firmware_state_updatepending_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture0cd945c2019-05-30 13:36:53 -070098
Patrick Venture16ab2a12019-05-31 08:52:51 -070099firmware_state_updatestarted_unittest_SOURCES = firmware_state_updatestarted_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700100firmware_state_updatestarted_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture16ab2a12019-05-31 08:52:51 -0700101
Patrick Venture2098ff92019-06-03 10:18:05 -0700102firmware_state_updatecompleted_unittest_SOURCES = firmware_state_updatecompleted_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700103firmware_state_updatecompleted_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture2098ff92019-06-03 10:18:05 -0700104
Patrick Venture3e9899d2019-06-06 10:37:32 -0700105firmware_state_notyetstarted_tarball_unittest_SOURCES = firmware_state_notyetstarted_tarball_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700106firmware_state_notyetstarted_tarball_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venturefa06a5f2019-07-01 09:22:38 -0700107
108firmware_multiplebundle_unittest_SOURCES = firmware_multiplebundle_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700109firmware_multiplebundle_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Venture298930a2019-07-03 11:44:52 -0700110
111firmware_json_unittest_SOURCES = firmware_json_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700112firmware_json_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la
Patrick Ventured53d60a2020-04-07 09:01:34 -0700113
114firmware_skip_unittest_SOURCES = firmware_skip_unittest.cpp
Jason Lingded66d02020-10-23 14:13:03 -0700115firmware_skip_unittest_LDADD = $(top_builddir)/bmc/firmware-handler/libfirmwareblob_common.la