blob: dc862c4b8f41653d20c3ad8f2f4a4b690fdabe67 [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 \
37 manager_stat_unittest \
38 manager_sessionstat_unittest \
39 manager_commit_unittest \
40 manager_close_unittest \
41 manager_delete_unittest \
42 manager_write_unittest \
43 manager_read_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070044 manager_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070045 process_unittest \
Patrick Venturec18e2b62018-11-21 14:19:28 -080046 utils_unittest
47
Patrick Ventureef3aead2018-09-12 08:53:29 -070048TESTS = $(check_PROGRAMS)
49
50ipmi_unittest_SOURCES = ipmi_unittest.cpp
51ipmi_unittest_LDADD = $(top_builddir)/ipmi.o
52
53ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
54ipmi_getcount_unittest_LDADD = $(top_builddir)/ipmi.o
55
56ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
57ipmi_enumerate_unittest_LDADD = $(top_builddir)/ipmi.o
58
59ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
60ipmi_open_unittest_LDADD = $(top_builddir)/ipmi.o
61
62ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
63ipmi_close_unittest_LDADD = $(top_builddir)/ipmi.o
64
65ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
66ipmi_delete_unittest_LDADD = $(top_builddir)/ipmi.o
67
68ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
69ipmi_stat_unittest_LDADD = $(top_builddir)/ipmi.o
70
71ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
72ipmi_sessionstat_unittest_LDADD = $(top_builddir)/ipmi.o
73
74ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
75ipmi_commit_unittest_LDADD = $(top_builddir)/ipmi.o
76
77ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
78ipmi_read_unittest_LDADD = $(top_builddir)/ipmi.o
79
80ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
81ipmi_write_unittest_LDADD = $(top_builddir)/ipmi.o
82
Patrick Venture5c4b17b2018-10-04 10:32:22 -070083ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp
84ipmi_writemeta_unittest_LDADD = $(top_builddir)/ipmi.o
85
Patrick Ventureef3aead2018-09-12 08:53:29 -070086ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
87ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
88
89manager_unittest_SOURCES = manager_unittest.cpp
90manager_unittest_LDADD = $(top_builddir)/manager.o
91
92manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
93manager_getsession_unittest_LDADD = $(top_builddir)/manager.o
94
95manager_open_unittest_SOURCES = manager_open_unittest.cpp
96manager_open_unittest_LDADD = $(top_builddir)/manager.o
97
98manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
99manager_stat_unittest_LDADD = $(top_builddir)/manager.o
100
101manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
102manager_sessionstat_unittest_LDADD = $(top_builddir)/manager.o
103
104manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
105manager_commit_unittest_LDADD = $(top_builddir)/manager.o
106
107manager_close_unittest_SOURCES = manager_close_unittest.cpp
108manager_close_unittest_LDADD = $(top_builddir)/manager.o
109
110manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
111manager_delete_unittest_LDADD = $(top_builddir)/manager.o
112
113manager_write_unittest_SOURCES = manager_write_unittest.cpp
114manager_write_unittest_LDADD = $(top_builddir)/manager.o
115
116manager_read_unittest_SOURCES = manager_read_unittest.cpp
117manager_read_unittest_LDADD = $(top_builddir)/manager.o
118
Patrick Venture5c4b17b2018-10-04 10:32:22 -0700119manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp
120manager_writemeta_unittest_LDADD = $(top_builddir)/manager.o
121
Patrick Ventureef3aead2018-09-12 08:53:29 -0700122process_unittest_SOURCES = process_unittest.cpp
Patrick Venturede8a16e2019-03-07 12:48:32 -0800123process_unittest_LDADD = $(top_builddir)/process.o $(top_builddir)/ipmi.o
Patrick Venturec18e2b62018-11-21 14:19:28 -0800124
125utils_unittest_SOURCES = utils_unittest.cpp
126utils_unittest_LDADD = $(top_builddir)/utils.o $(PHOSPHOR_LOGGING_LIBS)