Patrick Venture | fd4cdea | 2019-03-07 07:38:28 -0800 | [diff] [blame] | 1 | @VALGRIND_CHECK_RULES@ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 2 | |
Patrick Venture | fb808d1 | 2019-03-06 13:16:30 -0800 | [diff] [blame] | 3 | AM_CPPFLAGS = \ |
| 4 | -I$(top_srcdir)/ \ |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 5 | $(GTEST_CFLAGS) \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 6 | $(GMOCK_CFLAGS) \ |
| 7 | $(CODE_COVERAGE_CPPFLAGS) |
| 8 | AM_CFLAGS = \ |
| 9 | $(CODE_COVERAGE_CFLAGS) |
| 10 | AM_CXXFLAGS = \ |
| 11 | $(CODE_COVERAGE_CXXFLAGS) |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 12 | AM_LDFLAGS = \ |
Patrick Venture | fb808d1 | 2019-03-06 13:16:30 -0800 | [diff] [blame] | 13 | $(GTEST_LIBS) \ |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 14 | $(GMOCK_LIBS) \ |
Patrick Venture | fb808d1 | 2019-03-06 13:16:30 -0800 | [diff] [blame] | 15 | -lgmock_main \ |
Patrick Venture | a2efc76 | 2019-03-06 13:23:42 -0800 | [diff] [blame] | 16 | $(OESDK_TESTCASE_FLAGS) \ |
| 17 | $(CODE_COVERAGE_LIBS) |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 18 | |
| 19 | # Run all 'check' test programs |
| 20 | check_PROGRAMS = \ |
| 21 | ipmi_unittest \ |
| 22 | ipmi_getcount_unittest \ |
| 23 | ipmi_enumerate_unittest \ |
| 24 | ipmi_open_unittest \ |
| 25 | ipmi_close_unittest \ |
| 26 | ipmi_delete_unittest \ |
| 27 | ipmi_stat_unittest \ |
| 28 | ipmi_sessionstat_unittest \ |
| 29 | ipmi_commit_unittest \ |
| 30 | ipmi_read_unittest \ |
| 31 | ipmi_write_unittest \ |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 32 | ipmi_writemeta_unittest \ |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 33 | ipmi_validate_unittest \ |
| 34 | manager_unittest \ |
| 35 | manager_getsession_unittest \ |
| 36 | manager_open_unittest \ |
| 37 | manager_stat_unittest \ |
| 38 | manager_sessionstat_unittest \ |
| 39 | manager_commit_unittest \ |
| 40 | manager_close_unittest \ |
| 41 | manager_delete_unittest \ |
| 42 | manager_write_unittest \ |
| 43 | manager_read_unittest \ |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 44 | manager_writemeta_unittest \ |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 45 | process_unittest \ |
Patrick Venture | c18e2b6 | 2018-11-21 14:19:28 -0800 | [diff] [blame] | 46 | utils_unittest |
| 47 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 48 | TESTS = $(check_PROGRAMS) |
| 49 | |
| 50 | ipmi_unittest_SOURCES = ipmi_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 51 | ipmi_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 52 | |
| 53 | ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 54 | ipmi_getcount_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 55 | |
| 56 | ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 57 | ipmi_enumerate_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 58 | |
| 59 | ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 60 | ipmi_open_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 61 | |
| 62 | ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 63 | ipmi_close_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 64 | |
| 65 | ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 66 | ipmi_delete_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 67 | |
| 68 | ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 69 | ipmi_stat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 70 | |
| 71 | ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 72 | ipmi_sessionstat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 73 | |
| 74 | ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 75 | ipmi_commit_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 76 | |
| 77 | ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 78 | ipmi_read_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 79 | |
| 80 | ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 81 | ipmi_write_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 82 | |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 83 | ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 84 | ipmi_writemeta_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 85 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 86 | ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 87 | ipmi_validate_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 88 | |
| 89 | manager_unittest_SOURCES = manager_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 90 | manager_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 91 | |
| 92 | manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 93 | manager_getsession_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 94 | |
| 95 | manager_open_unittest_SOURCES = manager_open_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 96 | manager_open_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 97 | |
| 98 | manager_stat_unittest_SOURCES = manager_stat_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 99 | manager_stat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 100 | |
| 101 | manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 102 | manager_sessionstat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 103 | |
| 104 | manager_commit_unittest_SOURCES = manager_commit_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 105 | manager_commit_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 106 | |
| 107 | manager_close_unittest_SOURCES = manager_close_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 108 | manager_close_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 109 | |
| 110 | manager_delete_unittest_SOURCES = manager_delete_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 111 | manager_delete_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 112 | |
| 113 | manager_write_unittest_SOURCES = manager_write_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 114 | manager_write_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 115 | |
| 116 | manager_read_unittest_SOURCES = manager_read_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 117 | manager_read_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 118 | |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 119 | manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 120 | manager_writemeta_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | 5c4b17b | 2018-10-04 10:32:22 -0700 | [diff] [blame] | 121 | |
Patrick Venture | ef3aead | 2018-09-12 08:53:29 -0700 | [diff] [blame] | 122 | process_unittest_SOURCES = process_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 123 | process_unittest_LDADD = $(top_builddir)/libblobcmds_common.la |
Patrick Venture | c18e2b6 | 2018-11-21 14:19:28 -0800 | [diff] [blame] | 124 | |
| 125 | utils_unittest_SOURCES = utils_unittest.cpp |
Patrick Venture | 924bc38 | 2019-03-19 07:36:44 -0700 | [diff] [blame^] | 126 | utils_unittest_LDADD = $(top_builddir)/libblobcmds_common.la $(PHOSPHOR_LOGGING_LIBS) |