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