Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 1 | @CODE_COVERAGE_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 | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 6 | $(GTEST_CFLAGS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 7 | $(GMOCK_CFLAGS) \ |
| 8 | $(CODE_COVERAGE_CPPFLAGS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 9 | AM_CXXFLAGS = \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 10 | $(SDBUSPLUS_CFLAGS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 11 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 12 | $(CODE_COVERAGE_CXXFLAGS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 13 | AM_LDFLAGS = \ |
Patrick Venture | 6bc04f9 | 2019-03-06 13:49:21 -0800 | [diff] [blame] | 14 | $(GTEST_LIBS) \ |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 15 | $(GMOCK_LIBS) \ |
Patrick Venture | 6bc04f9 | 2019-03-06 13:49:21 -0800 | [diff] [blame] | 16 | -lgmock_main \ |
Patrick Venture | 4eb5595 | 2018-11-16 15:36:24 -0800 | [diff] [blame] | 17 | $(OESDK_TESTCASE_FLAGS) \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 18 | $(SDBUSPLUS_LIBS) \ |
Patrick Venture | 2f3b4b6 | 2019-03-08 13:22:40 -0800 | [diff] [blame] | 19 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 20 | $(CODE_COVERAGE_LIBS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 21 | |
| 22 | # Run all 'check' test programs |
| 23 | check_PROGRAMS = \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 24 | firmware_createhandler_unittest \ |
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 | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 28 | firmware_open_unittest \ |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 29 | firmware_write_unittest \ |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 30 | firmware_writemeta_unittest \ |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 31 | firmware_close_unittest \ |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 32 | firmware_delete_unittest \ |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 33 | firmware_sessionstat_unittest \ |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 34 | firmware_commit_unittest \ |
Patrick Venture | c79faa1 | 2018-12-12 13:12:21 -0800 | [diff] [blame] | 35 | file_handler_unittest \ |
Patrick Venture | aa32a36 | 2018-12-13 10:52:33 -0800 | [diff] [blame] | 36 | tools_blob_unittest \ |
Patrick Venture | 907f3a7 | 2019-01-15 14:13:37 -0800 | [diff] [blame] | 37 | tools_bt_unittest \ |
Patrick Venture | 8e1b233 | 2019-01-17 15:22:45 -0800 | [diff] [blame] | 38 | tools_lpc_unittest \ |
Patrick Venture | 2e12a43 | 2018-12-13 18:05:11 -0800 | [diff] [blame] | 39 | tools_updater_unittest \ |
Patrick Venture | 9dfcf5d | 2019-01-16 09:53:10 -0800 | [diff] [blame] | 40 | tools_ipmi_unittest \ |
| 41 | tools_ipmi_error_unittest |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 42 | |
| 43 | TESTS = $(check_PROGRAMS) |
| 44 | |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame] | 45 | firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp |
| 46 | firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 47 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 48 | firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp |
| 49 | firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 50 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 51 | firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp |
| 52 | firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 53 | |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 54 | firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp |
| 55 | firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 56 | |
| 57 | firmware_open_unittest_SOURCES = firmware_open_unittest.cpp |
| 58 | firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 59 | |
| 60 | firmware_write_unittest_SOURCES = firmware_write_unittest.cpp |
| 61 | firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 62 | |
| 63 | firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp |
| 64 | firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 65 | |
| 66 | firmware_close_unittest_SOURCES = firmware_close_unittest.cpp |
| 67 | firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 68 | |
| 69 | firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp |
| 70 | firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 71 | |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 72 | firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp |
| 73 | firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 74 | |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 75 | firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp |
| 76 | firmware_commit_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 77 | |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 78 | file_handler_unittest_SOURCES = file_handler_unittest.cpp |
Patrick Venture | 86b49e2 | 2018-11-15 14:29:00 -0800 | [diff] [blame] | 79 | file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs |
Patrick Venture | c79faa1 | 2018-12-12 13:12:21 -0800 | [diff] [blame] | 80 | |
| 81 | tools_blob_unittest_SOURCES = tools_blob_unittest.cpp |
| 82 | tools_blob_unittest_LDADD = $(top_builddir)/tools/blob_handler.o |
Patrick Venture | aa32a36 | 2018-12-13 10:52:33 -0800 | [diff] [blame] | 83 | |
Patrick Venture | 907f3a7 | 2019-01-15 14:13:37 -0800 | [diff] [blame] | 84 | tools_bt_unittest_SOURCES = tools_bt_unittest.cpp |
| 85 | tools_bt_unittest_LDADD = $(top_builddir)/tools/bt.o |
| 86 | |
Patrick Venture | 8e1b233 | 2019-01-17 15:22:45 -0800 | [diff] [blame] | 87 | tools_lpc_unittest_SOURCES = tools_lpc_unittest.cpp |
| 88 | tools_lpc_unittest_LDADD = $(top_builddir)/tools/lpc.o |
| 89 | |
Patrick Venture | aa32a36 | 2018-12-13 10:52:33 -0800 | [diff] [blame] | 90 | tools_updater_unittest_SOURCES = tools_updater_unittest.cpp |
| 91 | tools_updater_unittest_LDADD = $(top_builddir)/tools/updater.o |
Patrick Venture | 2e12a43 | 2018-12-13 18:05:11 -0800 | [diff] [blame] | 92 | |
| 93 | tools_ipmi_unittest_SOURCES = tools_ipmi_unittest.cpp |
| 94 | tools_ipmi_unittest_LDADD = $(top_builddir)/tools/ipmi_handler.o |
Patrick Venture | 9dfcf5d | 2019-01-16 09:53:10 -0800 | [diff] [blame] | 95 | |
| 96 | tools_ipmi_error_unittest_SOURCES = tools_ipmi_error_unittest.cpp |
| 97 | tools_ipmi_error_unittest_LDADD = |