blob: 86cfad163b913fbf355060e92f7edfee76d5549e [file] [log] [blame]
Patrick Venturefd4cdea2019-03-07 07:38:28 -08001@VALGRIND_CHECK_RULES@
Patrick Venturea2efc762019-03-06 13:23:42 -08002@CODE_COVERAGE_RULES@
3
Patrick Venturefb808d12019-03-06 13:16:30 -08004AM_CPPFLAGS = \
5 -I$(top_srcdir)/ \
Patrick Ventureef3aead2018-09-12 08:53:29 -07006 $(GTEST_CFLAGS) \
Patrick Venturea2efc762019-03-06 13:23:42 -08007 $(GMOCK_CFLAGS) \
8 $(CODE_COVERAGE_CPPFLAGS)
9AM_CFLAGS = \
10 $(CODE_COVERAGE_CFLAGS)
11AM_CXXFLAGS = \
12 $(CODE_COVERAGE_CXXFLAGS)
Patrick Ventureef3aead2018-09-12 08:53:29 -070013AM_LDFLAGS = \
Patrick Venturefb808d12019-03-06 13:16:30 -080014 $(GTEST_LIBS) \
Patrick Ventureef3aead2018-09-12 08:53:29 -070015 $(GMOCK_LIBS) \
Patrick Venturefb808d12019-03-06 13:16:30 -080016 -lgmock_main \
Patrick Venturea2efc762019-03-06 13:23:42 -080017 $(OESDK_TESTCASE_FLAGS) \
18 $(CODE_COVERAGE_LIBS)
Patrick Ventureef3aead2018-09-12 08:53:29 -070019
20# Run all 'check' test programs
21check_PROGRAMS = \
22 ipmi_unittest \
23 ipmi_getcount_unittest \
24 ipmi_enumerate_unittest \
25 ipmi_open_unittest \
26 ipmi_close_unittest \
27 ipmi_delete_unittest \
28 ipmi_stat_unittest \
29 ipmi_sessionstat_unittest \
30 ipmi_commit_unittest \
31 ipmi_read_unittest \
32 ipmi_write_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070033 ipmi_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070034 ipmi_validate_unittest \
35 manager_unittest \
36 manager_getsession_unittest \
37 manager_open_unittest \
38 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 crc_unittest \
48 utils_unittest
49
Patrick Ventureef3aead2018-09-12 08:53:29 -070050TESTS = $(check_PROGRAMS)
51
52ipmi_unittest_SOURCES = ipmi_unittest.cpp
53ipmi_unittest_LDADD = $(top_builddir)/ipmi.o
54
55ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
56ipmi_getcount_unittest_LDADD = $(top_builddir)/ipmi.o
57
58ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
59ipmi_enumerate_unittest_LDADD = $(top_builddir)/ipmi.o
60
61ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
62ipmi_open_unittest_LDADD = $(top_builddir)/ipmi.o
63
64ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
65ipmi_close_unittest_LDADD = $(top_builddir)/ipmi.o
66
67ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
68ipmi_delete_unittest_LDADD = $(top_builddir)/ipmi.o
69
70ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
71ipmi_stat_unittest_LDADD = $(top_builddir)/ipmi.o
72
73ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
74ipmi_sessionstat_unittest_LDADD = $(top_builddir)/ipmi.o
75
76ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
77ipmi_commit_unittest_LDADD = $(top_builddir)/ipmi.o
78
79ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
80ipmi_read_unittest_LDADD = $(top_builddir)/ipmi.o
81
82ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
83ipmi_write_unittest_LDADD = $(top_builddir)/ipmi.o
84
Patrick Venture5c4b17b2018-10-04 10:32:22 -070085ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp
86ipmi_writemeta_unittest_LDADD = $(top_builddir)/ipmi.o
87
Patrick Ventureef3aead2018-09-12 08:53:29 -070088ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
89ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
90
91manager_unittest_SOURCES = manager_unittest.cpp
92manager_unittest_LDADD = $(top_builddir)/manager.o
93
94manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
95manager_getsession_unittest_LDADD = $(top_builddir)/manager.o
96
97manager_open_unittest_SOURCES = manager_open_unittest.cpp
98manager_open_unittest_LDADD = $(top_builddir)/manager.o
99
100manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
101manager_stat_unittest_LDADD = $(top_builddir)/manager.o
102
103manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
104manager_sessionstat_unittest_LDADD = $(top_builddir)/manager.o
105
106manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
107manager_commit_unittest_LDADD = $(top_builddir)/manager.o
108
109manager_close_unittest_SOURCES = manager_close_unittest.cpp
110manager_close_unittest_LDADD = $(top_builddir)/manager.o
111
112manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
113manager_delete_unittest_LDADD = $(top_builddir)/manager.o
114
115manager_write_unittest_SOURCES = manager_write_unittest.cpp
116manager_write_unittest_LDADD = $(top_builddir)/manager.o
117
118manager_read_unittest_SOURCES = manager_read_unittest.cpp
119manager_read_unittest_LDADD = $(top_builddir)/manager.o
120
Patrick Venture5c4b17b2018-10-04 10:32:22 -0700121manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp
122manager_writemeta_unittest_LDADD = $(top_builddir)/manager.o
123
Patrick Ventureef3aead2018-09-12 08:53:29 -0700124process_unittest_SOURCES = process_unittest.cpp
125process_unittest_LDADD = $(top_builddir)/process.o $(top_builddir)/ipmi.o \
126 $(top_builddir)/crc.o
127
128crc_unittest_SOURCES = crc_unittest.cpp
129crc_unittest_LDADD = $(top_builddir)/crc.o
Patrick Venturec18e2b62018-11-21 14:19:28 -0800130
131utils_unittest_SOURCES = utils_unittest.cpp
132utils_unittest_LDADD = $(top_builddir)/utils.o $(PHOSPHOR_LOGGING_LIBS)