Patrick Venture | 4679e50 | 2019-03-19 11:27:00 -0700 | [diff] [blame] | 1 | @VALGRIND_CHECK_RULES@ |
| 2 | |
Patrick Venture | 6bc04f9 | 2019-03-06 13:49:21 -0800 | [diff] [blame] | 3 | AM_CPPFLAGS = \ |
| 4 | -I$(top_srcdir)/ \ |
Patrick Venture | 360b9a3 | 2018-12-12 14:11:39 -0800 | [diff] [blame] | 5 | -I$(top_srcdir)/tools/ \ |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 6 | -I$(top_srcdir)/bmc/ \ |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 7 | $(GTEST_CFLAGS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 8 | $(GMOCK_CFLAGS) \ |
| 9 | $(CODE_COVERAGE_CPPFLAGS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 10 | AM_CXXFLAGS = \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 11 | $(SDBUSPLUS_CFLAGS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 12 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 13 | $(CODE_COVERAGE_CXXFLAGS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 14 | AM_LDFLAGS = \ |
Patrick Venture | 6bc04f9 | 2019-03-06 13:49:21 -0800 | [diff] [blame] | 15 | $(GTEST_LIBS) \ |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 16 | $(GMOCK_LIBS) \ |
Patrick Venture | 6bc04f9 | 2019-03-06 13:49:21 -0800 | [diff] [blame] | 17 | -lgmock_main \ |
Patrick Venture | 4eb5595 | 2018-11-16 15:36:24 -0800 | [diff] [blame] | 18 | $(OESDK_TESTCASE_FLAGS) \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 19 | $(SDBUSPLUS_LIBS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 20 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 21 | $(CODE_COVERAGE_LIBS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 22 | |
| 23 | # Run all 'check' test programs |
| 24 | check_PROGRAMS = \ |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 25 | firmware_handler_unittest \ |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 26 | firmware_stat_unittest \ |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 27 | firmware_canhandle_unittest \ |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 28 | firmware_write_unittest \ |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 29 | firmware_writemeta_unittest \ |
Benjamin Fair | a67e9e9 | 2019-11-15 14:47:42 -0800 | [diff] [blame^] | 30 | firmware_open_unittest \ |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 31 | firmware_close_unittest \ |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 32 | firmware_sessionstat_unittest \ |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 33 | firmware_commit_unittest \ |
Patrick Venture | 997023d | 2019-05-23 07:41:26 -0700 | [diff] [blame] | 34 | file_handler_unittest \ |
Patrick Venture | ebcc522 | 2019-05-23 10:36:40 -0700 | [diff] [blame] | 35 | firmware_state_notyetstarted_unittest \ |
Patrick Venture | 61d2ed4 | 2019-05-23 18:16:31 -0700 | [diff] [blame] | 36 | firmware_state_uploadinprogress_unittest \ |
Patrick Venture | 237e2c6 | 2019-05-23 20:35:33 -0700 | [diff] [blame] | 37 | firmware_state_verificationpending_unittest \ |
Patrick Venture | a82f99e | 2019-05-24 15:44:35 -0700 | [diff] [blame] | 38 | firmware_state_verificationstarted_unittest \ |
Patrick Venture | 0cd945c | 2019-05-30 13:36:53 -0700 | [diff] [blame] | 39 | firmware_state_verificationcompleted_unittest \ |
Patrick Venture | 16ab2a1 | 2019-05-31 08:52:51 -0700 | [diff] [blame] | 40 | firmware_state_updatepending_unittest \ |
Patrick Venture | 2098ff9 | 2019-06-03 10:18:05 -0700 | [diff] [blame] | 41 | firmware_state_updatestarted_unittest \ |
Patrick Venture | 3e9899d | 2019-06-06 10:37:32 -0700 | [diff] [blame] | 42 | firmware_state_updatecompleted_unittest \ |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 43 | firmware_state_notyetstarted_tarball_unittest \ |
Patrick Venture | 298930a | 2019-07-03 11:44:52 -0700 | [diff] [blame] | 44 | firmware_multiplebundle_unittest \ |
| 45 | firmware_json_unittest |
Patrick Venture | cf10cda | 2019-05-15 10:35:10 -0700 | [diff] [blame] | 46 | |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 47 | TESTS = $(check_PROGRAMS) |
| 48 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 49 | firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 50 | firmware_handler_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 51 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 52 | firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 53 | firmware_stat_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 54 | |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 55 | firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 56 | firmware_canhandle_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 57 | |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 58 | firmware_write_unittest_SOURCES = firmware_write_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 59 | firmware_write_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 60 | |
| 61 | firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 62 | firmware_writemeta_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 63 | |
Benjamin Fair | a67e9e9 | 2019-11-15 14:47:42 -0800 | [diff] [blame^] | 64 | firmware_open_unittest_SOURCES = firmware_open_unittest.cpp |
| 65 | firmware_open_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
| 66 | |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 67 | firmware_close_unittest_SOURCES = firmware_close_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 68 | firmware_close_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 69 | |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 70 | firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 71 | firmware_sessionstat_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 72 | |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 73 | firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 74 | firmware_commit_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 75 | |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 76 | file_handler_unittest_SOURCES = file_handler_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 77 | file_handler_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la -lstdc++fs |
Patrick Venture | c79faa1 | 2018-12-12 13:12:21 -0800 | [diff] [blame] | 78 | |
Patrick Venture | 8a4f2aa | 2019-05-23 08:40:21 -0700 | [diff] [blame] | 79 | firmware_state_notyetstarted_unittest_SOURCES = firmware_state_notyetstarted_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 80 | firmware_state_notyetstarted_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 997023d | 2019-05-23 07:41:26 -0700 | [diff] [blame] | 81 | |
Patrick Venture | ebcc522 | 2019-05-23 10:36:40 -0700 | [diff] [blame] | 82 | firmware_state_uploadinprogress_unittest_SOURCES = firmware_state_uploadinprogress_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 83 | firmware_state_uploadinprogress_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | ebcc522 | 2019-05-23 10:36:40 -0700 | [diff] [blame] | 84 | |
Patrick Venture | 61d2ed4 | 2019-05-23 18:16:31 -0700 | [diff] [blame] | 85 | firmware_state_verificationpending_unittest_SOURCES = firmware_state_verificationpending_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 86 | firmware_state_verificationpending_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 61d2ed4 | 2019-05-23 18:16:31 -0700 | [diff] [blame] | 87 | |
Patrick Venture | 237e2c6 | 2019-05-23 20:35:33 -0700 | [diff] [blame] | 88 | firmware_state_verificationstarted_unittest_SOURCES = firmware_state_verificationstarted_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 89 | firmware_state_verificationstarted_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 237e2c6 | 2019-05-23 20:35:33 -0700 | [diff] [blame] | 90 | |
Patrick Venture | a82f99e | 2019-05-24 15:44:35 -0700 | [diff] [blame] | 91 | firmware_state_verificationcompleted_unittest_SOURCES = firmware_state_verificationcompleted_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 92 | firmware_state_verificationcompleted_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | a82f99e | 2019-05-24 15:44:35 -0700 | [diff] [blame] | 93 | |
Patrick Venture | 0cd945c | 2019-05-30 13:36:53 -0700 | [diff] [blame] | 94 | firmware_state_updatepending_unittest_SOURCES = firmware_state_updatepending_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 95 | firmware_state_updatepending_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 0cd945c | 2019-05-30 13:36:53 -0700 | [diff] [blame] | 96 | |
Patrick Venture | 16ab2a1 | 2019-05-31 08:52:51 -0700 | [diff] [blame] | 97 | firmware_state_updatestarted_unittest_SOURCES = firmware_state_updatestarted_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 98 | firmware_state_updatestarted_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 16ab2a1 | 2019-05-31 08:52:51 -0700 | [diff] [blame] | 99 | |
Patrick Venture | 2098ff9 | 2019-06-03 10:18:05 -0700 | [diff] [blame] | 100 | firmware_state_updatecompleted_unittest_SOURCES = firmware_state_updatecompleted_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 101 | firmware_state_updatecompleted_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 2098ff9 | 2019-06-03 10:18:05 -0700 | [diff] [blame] | 102 | |
Patrick Venture | 3e9899d | 2019-06-06 10:37:32 -0700 | [diff] [blame] | 103 | firmware_state_notyetstarted_tarball_unittest_SOURCES = firmware_state_notyetstarted_tarball_unittest.cpp |
Patrick Venture | f0c71df | 2019-06-26 19:39:36 -0700 | [diff] [blame] | 104 | firmware_state_notyetstarted_tarball_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | fa06a5f | 2019-07-01 09:22:38 -0700 | [diff] [blame] | 105 | |
| 106 | firmware_multiplebundle_unittest_SOURCES = firmware_multiplebundle_unittest.cpp |
| 107 | firmware_multiplebundle_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |
Patrick Venture | 298930a | 2019-07-03 11:44:52 -0700 | [diff] [blame] | 108 | |
| 109 | firmware_json_unittest_SOURCES = firmware_json_unittest.cpp |
| 110 | firmware_json_unittest_LDADD = $(top_builddir)/bmc/libfirmwareblob_common.la |