blob: d0b8b2a6e271b5a9440568f91dea4090eb2bd219 [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 \
25 flash_flashfinish_unittest
Patrick Venture54c3b532018-08-01 11:45:49 -070026
27TESTS = $(check_PROGRAMS)
28
29ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp
30ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture79e131f2018-08-01 13:34:35 -070031
32ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp
33ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venturea53a7b32018-08-03 09:15:20 -070034
Patrick Venture2c1205d2018-08-03 10:23:14 -070035ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp
36ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
37
Patrick Venture8d9f7322018-08-03 10:39:13 -070038ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp
39ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o
40
Patrick Venturecfe66872018-08-03 13:32:33 -070041ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp
42ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o
43
Patrick Venturefbc7d192018-08-03 13:54:21 -070044ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp
45ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
46
Patrick Venture1cb87d22018-08-03 18:22:09 -070047ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp
48ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o
49
Patrick Venture5c251ca2018-08-03 18:31:01 -070050ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp
51ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o
52
Patrick Venturea53a7b32018-08-03 09:15:20 -070053ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
54ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture9a5a79a2018-08-03 17:23:57 -070055
56ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp
57ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture8ec019f2018-08-07 11:22:33 -070058
59flash_start_unittest_SOURCES = flash_start_unittest.cpp
60flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture3c086f22018-08-07 11:59:20 -070061
62flash_flashdata_unittest_SOURCES = flash_flashdata_unittest.cpp
63flash_flashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture57703662018-08-07 12:52:24 -070064
65flash_flashfinish_unittest_SOURCES = flash_flashfinish_unittest.cpp
66flash_flashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)