Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -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 = \ |
Patrick Venture | 79e131f | 2018-08-01 13:34:35 -0700 | [diff] [blame] | 13 | ipmi_starttransfer_unittest \ |
Patrick Venture | a53a7b3 | 2018-08-03 09:15:20 -0700 | [diff] [blame] | 14 | ipmi_flashdata_unittest \ |
Patrick Venture | 2c1205d | 2018-08-03 10:23:14 -0700 | [diff] [blame] | 15 | ipmi_flashfinish_unittest \ |
Patrick Venture | 8d9f732 | 2018-08-03 10:39:13 -0700 | [diff] [blame] | 16 | ipmi_starthash_unittest \ |
Patrick Venture | cfe6687 | 2018-08-03 13:32:33 -0700 | [diff] [blame] | 17 | ipmi_hashdata_unittest \ |
Patrick Venture | fbc7d19 | 2018-08-03 13:54:21 -0700 | [diff] [blame] | 18 | ipmi_hashfinish_unittest \ |
Patrick Venture | 1cb87d2 | 2018-08-03 18:22:09 -0700 | [diff] [blame] | 19 | ipmi_startverify_unittest \ |
Patrick Venture | 5c251ca | 2018-08-03 18:31:01 -0700 | [diff] [blame] | 20 | ipmi_abort_unittest \ |
Patrick Venture | 9a5a79a | 2018-08-03 17:23:57 -0700 | [diff] [blame] | 21 | ipmi_validate_unittest \ |
Patrick Venture | 8ec019f | 2018-08-07 11:22:33 -0700 | [diff] [blame] | 22 | ipmi_command_unittest \ |
Patrick Venture | fdc65b2 | 2018-08-07 14:37:58 -0700 | [diff] [blame] | 23 | ipmi_verifycheck_unittest \ |
Patrick Venture | 3c086f2 | 2018-08-07 11:59:20 -0700 | [diff] [blame] | 24 | flash_start_unittest \ |
Patrick Venture | 5770366 | 2018-08-07 12:52:24 -0700 | [diff] [blame] | 25 | flash_flashdata_unittest \ |
Patrick Venture | 6f17bd2 | 2018-08-07 13:24:17 -0700 | [diff] [blame] | 26 | flash_flashfinish_unittest \ |
Patrick Venture | cbe5149 | 2018-08-07 14:09:17 -0700 | [diff] [blame] | 27 | flash_hashstart_unittest \ |
Patrick Venture | d5f590f | 2018-08-07 14:18:09 -0700 | [diff] [blame] | 28 | flash_hashdata_unittest \ |
Patrick Venture | 7fc66de | 2018-08-07 14:53:02 -0700 | [diff] [blame] | 29 | flash_hashfinish_unittest \ |
Patrick Venture | 605f75f | 2018-08-07 16:27:05 -0700 | [diff] [blame] | 30 | flash_checkverify_unittest \ |
| 31 | flash_flashabort_unittest |
Patrick Venture | 54c3b53 | 2018-08-01 11:45:49 -0700 | [diff] [blame] | 32 | |
| 33 | TESTS = $(check_PROGRAMS) |
| 34 | |
| 35 | ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp |
| 36 | ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o |
Patrick Venture | 79e131f | 2018-08-01 13:34:35 -0700 | [diff] [blame] | 37 | |
| 38 | ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp |
| 39 | ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o |
Patrick Venture | a53a7b3 | 2018-08-03 09:15:20 -0700 | [diff] [blame] | 40 | |
Patrick Venture | 2c1205d | 2018-08-03 10:23:14 -0700 | [diff] [blame] | 41 | ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp |
| 42 | ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o |
| 43 | |
Patrick Venture | 8d9f732 | 2018-08-03 10:39:13 -0700 | [diff] [blame] | 44 | ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp |
| 45 | ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o |
| 46 | |
Patrick Venture | cfe6687 | 2018-08-03 13:32:33 -0700 | [diff] [blame] | 47 | ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp |
| 48 | ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o |
| 49 | |
Patrick Venture | fbc7d19 | 2018-08-03 13:54:21 -0700 | [diff] [blame] | 50 | ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp |
| 51 | ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o |
| 52 | |
Patrick Venture | 1cb87d2 | 2018-08-03 18:22:09 -0700 | [diff] [blame] | 53 | ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp |
| 54 | ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o |
| 55 | |
Patrick Venture | 5c251ca | 2018-08-03 18:31:01 -0700 | [diff] [blame] | 56 | ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp |
| 57 | ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o |
| 58 | |
Patrick Venture | a53a7b3 | 2018-08-03 09:15:20 -0700 | [diff] [blame] | 59 | ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp |
| 60 | ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o |
Patrick Venture | 9a5a79a | 2018-08-03 17:23:57 -0700 | [diff] [blame] | 61 | |
| 62 | ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp |
| 63 | ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o |
Patrick Venture | 8ec019f | 2018-08-07 11:22:33 -0700 | [diff] [blame] | 64 | |
Patrick Venture | fdc65b2 | 2018-08-07 14:37:58 -0700 | [diff] [blame] | 65 | ipmi_verifycheck_unittest_SOURCES = ipmi_verifycheck_unittest.cpp |
| 66 | ipmi_verifycheck_unittest_LDADD = $(top_builddir)/ipmi.o |
| 67 | |
Patrick Venture | 8ec019f | 2018-08-07 11:22:33 -0700 | [diff] [blame] | 68 | flash_start_unittest_SOURCES = flash_start_unittest.cpp |
| 69 | flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | 3c086f2 | 2018-08-07 11:59:20 -0700 | [diff] [blame] | 70 | |
| 71 | flash_flashdata_unittest_SOURCES = flash_flashdata_unittest.cpp |
| 72 | flash_flashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | 5770366 | 2018-08-07 12:52:24 -0700 | [diff] [blame] | 73 | |
| 74 | flash_flashfinish_unittest_SOURCES = flash_flashfinish_unittest.cpp |
| 75 | flash_flashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | 6f17bd2 | 2018-08-07 13:24:17 -0700 | [diff] [blame] | 76 | |
| 77 | flash_hashstart_unittest_SOURCES = flash_hashstart_unittest.cpp |
| 78 | flash_hashstart_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | cbe5149 | 2018-08-07 14:09:17 -0700 | [diff] [blame] | 79 | |
| 80 | flash_hashdata_unittest_SOURCES = flash_hashdata_unittest.cpp |
| 81 | flash_hashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | d5f590f | 2018-08-07 14:18:09 -0700 | [diff] [blame] | 82 | |
| 83 | flash_hashfinish_unittest_SOURCES = flash_hashfinish_unittest.cpp |
| 84 | flash_hashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | 7fc66de | 2018-08-07 14:53:02 -0700 | [diff] [blame] | 85 | |
| 86 | flash_checkverify_unittest_SOURCES = flash_checkverify_unittest.cpp |
| 87 | flash_checkverify_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |
Patrick Venture | 605f75f | 2018-08-07 16:27:05 -0700 | [diff] [blame] | 88 | |
| 89 | flash_flashabort_unittest_SOURCES = flash_flashabort_unittest.cpp |
| 90 | flash_flashabort_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS) |