blob: 722b6b7e3a3bd324b680d578f3bf1abbd5cb1dbb [file] [log] [blame]
Patrick Venturefd4cdea2019-03-07 07:38:28 -08001@VALGRIND_CHECK_RULES@
Patrick Venturea2efc762019-03-06 13:23:42 -08002
Patrick Venturefb808d12019-03-06 13:16:30 -08003AM_CPPFLAGS = \
4 -I$(top_srcdir)/ \
Patrick Ventureef3aead2018-09-12 08:53:29 -07005 $(GTEST_CFLAGS) \
Patrick Venturea2efc762019-03-06 13:23:42 -08006 $(GMOCK_CFLAGS) \
7 $(CODE_COVERAGE_CPPFLAGS)
8AM_CFLAGS = \
9 $(CODE_COVERAGE_CFLAGS)
10AM_CXXFLAGS = \
11 $(CODE_COVERAGE_CXXFLAGS)
Patrick Ventureef3aead2018-09-12 08:53:29 -070012AM_LDFLAGS = \
Patrick Venturefb808d12019-03-06 13:16:30 -080013 $(GTEST_LIBS) \
Patrick Ventureef3aead2018-09-12 08:53:29 -070014 $(GMOCK_LIBS) \
Patrick Venturefb808d12019-03-06 13:16:30 -080015 -lgmock_main \
Patrick Venturea2efc762019-03-06 13:23:42 -080016 $(OESDK_TESTCASE_FLAGS) \
17 $(CODE_COVERAGE_LIBS)
Patrick Ventureef3aead2018-09-12 08:53:29 -070018
19# Run all 'check' test programs
20check_PROGRAMS = \
21 ipmi_unittest \
22 ipmi_getcount_unittest \
23 ipmi_enumerate_unittest \
24 ipmi_open_unittest \
25 ipmi_close_unittest \
26 ipmi_delete_unittest \
27 ipmi_stat_unittest \
28 ipmi_sessionstat_unittest \
29 ipmi_commit_unittest \
30 ipmi_read_unittest \
31 ipmi_write_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070032 ipmi_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070033 ipmi_validate_unittest \
34 manager_unittest \
35 manager_getsession_unittest \
36 manager_open_unittest \
Kun Yiaa17bda2019-11-14 13:12:42 -080037 manager_expire_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070038 manager_stat_unittest \
39 manager_sessionstat_unittest \
40 manager_commit_unittest \
41 manager_close_unittest \
42 manager_delete_unittest \
43 manager_write_unittest \
44 manager_read_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070045 manager_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070046 process_unittest \
Patrick Venturec18e2b62018-11-21 14:19:28 -080047 utils_unittest
48
Patrick Ventureef3aead2018-09-12 08:53:29 -070049TESTS = $(check_PROGRAMS)
50
51ipmi_unittest_SOURCES = ipmi_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070052ipmi_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070053
54ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070055ipmi_getcount_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070056
57ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070058ipmi_enumerate_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070059
60ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070061ipmi_open_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070062
63ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070064ipmi_close_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070065
66ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070067ipmi_delete_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070068
69ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070070ipmi_stat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070071
72ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070073ipmi_sessionstat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070074
75ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070076ipmi_commit_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070077
78ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070079ipmi_read_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070080
81ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070082ipmi_write_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070083
Patrick Venture5c4b17b2018-10-04 10:32:22 -070084ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070085ipmi_writemeta_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Venture5c4b17b2018-10-04 10:32:22 -070086
Patrick Ventureef3aead2018-09-12 08:53:29 -070087ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070088ipmi_validate_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070089
90manager_unittest_SOURCES = manager_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070091manager_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070092
93manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070094manager_getsession_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070095
96manager_open_unittest_SOURCES = manager_open_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -070097manager_open_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -070098
Kun Yiaa17bda2019-11-14 13:12:42 -080099manager_expire_unittest_SOURCES = manager_expire_unittest.cpp
100manager_expire_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
101
Patrick Ventureef3aead2018-09-12 08:53:29 -0700102manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700103manager_stat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700104
105manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700106manager_sessionstat_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700107
108manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700109manager_commit_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700110
111manager_close_unittest_SOURCES = manager_close_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700112manager_close_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700113
114manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700115manager_delete_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700116
117manager_write_unittest_SOURCES = manager_write_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700118manager_write_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700119
120manager_read_unittest_SOURCES = manager_read_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700121manager_read_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Ventureef3aead2018-09-12 08:53:29 -0700122
Patrick Venture5c4b17b2018-10-04 10:32:22 -0700123manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700124manager_writemeta_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Venture5c4b17b2018-10-04 10:32:22 -0700125
Patrick Ventureef3aead2018-09-12 08:53:29 -0700126process_unittest_SOURCES = process_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700127process_unittest_LDADD = $(top_builddir)/libblobcmds_common.la
Patrick Venturec18e2b62018-11-21 14:19:28 -0800128
129utils_unittest_SOURCES = utils_unittest.cpp
Patrick Venture924bc382019-03-19 07:36:44 -0700130utils_unittest_LDADD = $(top_builddir)/libblobcmds_common.la $(PHOSPHOR_LOGGING_LIBS)