blob: 1fc2d92ac3c77749432c0c1129641895ebdd3c6b [file] [log] [blame]
Patrick Venture54c3b532018-08-01 11:45:49 -07001AM_CPPFLAGS = -I$(top_srcdir)/ \
2 $(GTEST_CFLAGS) \
3 $(GMOCK_CFLAGS)
4AM_CXXFLAGS = \
5 $(GTEST_MAIN_CFLAGS)
6AM_LDFLAGS = \
7 $(GMOCK_LIBS) \
8 $(GTEST_MAIN_LIBS) \
9 $(OESDK_TESTCASE_FLAGS)
10
11# Run all 'check' test programs
12check_PROGRAMS = \
Patrick Venture79e131f2018-08-01 13:34:35 -070013 ipmi_starttransfer_unittest \
Patrick Venturea53a7b32018-08-03 09:15:20 -070014 ipmi_flashdata_unittest \
Patrick Venture2c1205d2018-08-03 10:23:14 -070015 ipmi_flashfinish_unittest \
Patrick Venture8d9f7322018-08-03 10:39:13 -070016 ipmi_starthash_unittest \
Patrick Venturecfe66872018-08-03 13:32:33 -070017 ipmi_hashdata_unittest \
Patrick Venturefbc7d192018-08-03 13:54:21 -070018 ipmi_hashfinish_unittest \
Patrick Venture1cb87d22018-08-03 18:22:09 -070019 ipmi_startverify_unittest \
Patrick Venture5c251ca2018-08-03 18:31:01 -070020 ipmi_abort_unittest \
Patrick Venture9a5a79a2018-08-03 17:23:57 -070021 ipmi_validate_unittest \
Patrick Venture8ec019f2018-08-07 11:22:33 -070022 ipmi_command_unittest \
Patrick Venture3c086f22018-08-07 11:59:20 -070023 flash_start_unittest \
Patrick Venture57703662018-08-07 12:52:24 -070024 flash_flashdata_unittest \
Patrick Venture6f17bd22018-08-07 13:24:17 -070025 flash_flashfinish_unittest \
Patrick Venturecbe51492018-08-07 14:09:17 -070026 flash_hashstart_unittest \
27 flash_hashdata_unittest
Patrick Venture54c3b532018-08-01 11:45:49 -070028
29TESTS = $(check_PROGRAMS)
30
31ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp
32ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture79e131f2018-08-01 13:34:35 -070033
34ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp
35ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venturea53a7b32018-08-03 09:15:20 -070036
Patrick Venture2c1205d2018-08-03 10:23:14 -070037ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp
38ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
39
Patrick Venture8d9f7322018-08-03 10:39:13 -070040ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp
41ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o
42
Patrick Venturecfe66872018-08-03 13:32:33 -070043ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp
44ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o
45
Patrick Venturefbc7d192018-08-03 13:54:21 -070046ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp
47ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
48
Patrick Venture1cb87d22018-08-03 18:22:09 -070049ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp
50ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o
51
Patrick Venture5c251ca2018-08-03 18:31:01 -070052ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp
53ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o
54
Patrick Venturea53a7b32018-08-03 09:15:20 -070055ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
56ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture9a5a79a2018-08-03 17:23:57 -070057
58ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp
59ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture8ec019f2018-08-07 11:22:33 -070060
61flash_start_unittest_SOURCES = flash_start_unittest.cpp
62flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture3c086f22018-08-07 11:59:20 -070063
64flash_flashdata_unittest_SOURCES = flash_flashdata_unittest.cpp
65flash_flashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture57703662018-08-07 12:52:24 -070066
67flash_flashfinish_unittest_SOURCES = flash_flashfinish_unittest.cpp
68flash_flashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture6f17bd22018-08-07 13:24:17 -070069
70flash_hashstart_unittest_SOURCES = flash_hashstart_unittest.cpp
71flash_hashstart_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venturecbe51492018-08-07 14:09:17 -070072
73flash_hashdata_unittest_SOURCES = flash_hashdata_unittest.cpp
74flash_hashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)