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