blob: 43040a1e50cfede78ea1f8eb2da2f103fb78fbd6 [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 \
24 flash_flashdata_unittest
Patrick Venture54c3b532018-08-01 11:45:49 -070025
26TESTS = $(check_PROGRAMS)
27
28ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp
29ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture79e131f2018-08-01 13:34:35 -070030
31ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp
32ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venturea53a7b32018-08-03 09:15:20 -070033
Patrick Venture2c1205d2018-08-03 10:23:14 -070034ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp
35ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
36
Patrick Venture8d9f7322018-08-03 10:39:13 -070037ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp
38ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o
39
Patrick Venturecfe66872018-08-03 13:32:33 -070040ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp
41ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o
42
Patrick Venturefbc7d192018-08-03 13:54:21 -070043ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp
44ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
45
Patrick Venture1cb87d22018-08-03 18:22:09 -070046ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp
47ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o
48
Patrick Venture5c251ca2018-08-03 18:31:01 -070049ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp
50ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o
51
Patrick Venturea53a7b32018-08-03 09:15:20 -070052ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
53ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture9a5a79a2018-08-03 17:23:57 -070054
55ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp
56ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture8ec019f2018-08-07 11:22:33 -070057
58flash_start_unittest_SOURCES = flash_start_unittest.cpp
59flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture3c086f22018-08-07 11:59:20 -070060
61flash_flashdata_unittest_SOURCES = flash_flashdata_unittest.cpp
62flash_flashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)