blob: 245b25191c3474f7f6b87d46d31ecb2c3f14c981 [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 \
23 flash_start_unittest
Patrick Venture54c3b532018-08-01 11:45:49 -070024
25TESTS = $(check_PROGRAMS)
26
27ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp
28ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture79e131f2018-08-01 13:34:35 -070029
30ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp
31ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venturea53a7b32018-08-03 09:15:20 -070032
Patrick Venture2c1205d2018-08-03 10:23:14 -070033ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp
34ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
35
Patrick Venture8d9f7322018-08-03 10:39:13 -070036ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp
37ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o
38
Patrick Venturecfe66872018-08-03 13:32:33 -070039ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp
40ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o
41
Patrick Venturefbc7d192018-08-03 13:54:21 -070042ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp
43ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
44
Patrick Venture1cb87d22018-08-03 18:22:09 -070045ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp
46ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o
47
Patrick Venture5c251ca2018-08-03 18:31:01 -070048ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp
49ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o
50
Patrick Venturea53a7b32018-08-03 09:15:20 -070051ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
52ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture9a5a79a2018-08-03 17:23:57 -070053
54ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp
55ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture8ec019f2018-08-07 11:22:33 -070056
57flash_start_unittest_SOURCES = flash_start_unittest.cpp
58flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)