blob: 6666d680b7d83f8aa0c4caf5ad0b0212b91140c9 [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 Venturefdc65b22018-08-07 14:37:58 -070023 ipmi_verifycheck_unittest \
Patrick Venture3c086f22018-08-07 11:59:20 -070024 flash_start_unittest \
Patrick Venture57703662018-08-07 12:52:24 -070025 flash_flashdata_unittest \
Patrick Venture6f17bd22018-08-07 13:24:17 -070026 flash_flashfinish_unittest \
Patrick Venturecbe51492018-08-07 14:09:17 -070027 flash_hashstart_unittest \
Patrick Ventured5f590f2018-08-07 14:18:09 -070028 flash_hashdata_unittest \
Patrick Venture7fc66de2018-08-07 14:53:02 -070029 flash_hashfinish_unittest \
30 flash_checkverify_unittest
Patrick Venture54c3b532018-08-01 11:45:49 -070031
32TESTS = $(check_PROGRAMS)
33
34ipmi_starttransfer_unittest_SOURCES = ipmi_starttransfer_unittest.cpp
35ipmi_starttransfer_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture79e131f2018-08-01 13:34:35 -070036
37ipmi_flashdata_unittest_SOURCES = ipmi_flashdata_unittest.cpp
38ipmi_flashdata_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venturea53a7b32018-08-03 09:15:20 -070039
Patrick Venture2c1205d2018-08-03 10:23:14 -070040ipmi_flashfinish_unittest_SOURCES = ipmi_flashfinish_unittest.cpp
41ipmi_flashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
42
Patrick Venture8d9f7322018-08-03 10:39:13 -070043ipmi_starthash_unittest_SOURCES = ipmi_starthash_unittest.cpp
44ipmi_starthash_unittest_LDADD = $(top_builddir)/ipmi.o
45
Patrick Venturecfe66872018-08-03 13:32:33 -070046ipmi_hashdata_unittest_SOURCES = ipmi_hashdata_unittest.cpp
47ipmi_hashdata_unittest_LDADD = $(top_builddir)/ipmi.o
48
Patrick Venturefbc7d192018-08-03 13:54:21 -070049ipmi_hashfinish_unittest_SOURCES = ipmi_hashfinish_unittest.cpp
50ipmi_hashfinish_unittest_LDADD = $(top_builddir)/ipmi.o
51
Patrick Venture1cb87d22018-08-03 18:22:09 -070052ipmi_startverify_unittest_SOURCES = ipmi_startverify_unittest.cpp
53ipmi_startverify_unittest_LDADD = $(top_builddir)/ipmi.o
54
Patrick Venture5c251ca2018-08-03 18:31:01 -070055ipmi_abort_unittest_SOURCES = ipmi_abort_unittest.cpp
56ipmi_abort_unittest_LDADD = $(top_builddir)/ipmi.o
57
Patrick Venturea53a7b32018-08-03 09:15:20 -070058ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
59ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture9a5a79a2018-08-03 17:23:57 -070060
61ipmi_command_unittest_SOURCES = ipmi_command_unittest.cpp
62ipmi_command_unittest_LDADD = $(top_builddir)/ipmi.o
Patrick Venture8ec019f2018-08-07 11:22:33 -070063
Patrick Venturefdc65b22018-08-07 14:37:58 -070064ipmi_verifycheck_unittest_SOURCES = ipmi_verifycheck_unittest.cpp
65ipmi_verifycheck_unittest_LDADD = $(top_builddir)/ipmi.o
66
Patrick Venture8ec019f2018-08-07 11:22:33 -070067flash_start_unittest_SOURCES = flash_start_unittest.cpp
68flash_start_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture3c086f22018-08-07 11:59:20 -070069
70flash_flashdata_unittest_SOURCES = flash_flashdata_unittest.cpp
71flash_flashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture57703662018-08-07 12:52:24 -070072
73flash_flashfinish_unittest_SOURCES = flash_flashfinish_unittest.cpp
74flash_flashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture6f17bd22018-08-07 13:24:17 -070075
76flash_hashstart_unittest_SOURCES = flash_hashstart_unittest.cpp
77flash_hashstart_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venturecbe51492018-08-07 14:09:17 -070078
79flash_hashdata_unittest_SOURCES = flash_hashdata_unittest.cpp
80flash_hashdata_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Ventured5f590f2018-08-07 14:18:09 -070081
82flash_hashfinish_unittest_SOURCES = flash_hashfinish_unittest.cpp
83flash_hashfinish_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)
Patrick Venture7fc66de2018-08-07 14:53:02 -070084
85flash_checkverify_unittest_SOURCES = flash_checkverify_unittest.cpp
86flash_checkverify_unittest_LDADD = $(top_builddir)/flash-ipmi.o $(SDBUSPLUS_LIBS)