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