blob: 0d36509a667c595fddb24964cb47b4848e01c0f3 [file] [log] [blame]
Patrick Ventureef3aead2018-09-12 08:53:29 -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 = \
13 ipmi_unittest \
14 ipmi_getcount_unittest \
15 ipmi_enumerate_unittest \
16 ipmi_open_unittest \
17 ipmi_close_unittest \
18 ipmi_delete_unittest \
19 ipmi_stat_unittest \
20 ipmi_sessionstat_unittest \
21 ipmi_commit_unittest \
22 ipmi_read_unittest \
23 ipmi_write_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070024 ipmi_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070025 ipmi_validate_unittest \
26 manager_unittest \
27 manager_getsession_unittest \
28 manager_open_unittest \
29 manager_stat_unittest \
30 manager_sessionstat_unittest \
31 manager_commit_unittest \
32 manager_close_unittest \
33 manager_delete_unittest \
34 manager_write_unittest \
35 manager_read_unittest \
Patrick Venture5c4b17b2018-10-04 10:32:22 -070036 manager_writemeta_unittest \
Patrick Ventureef3aead2018-09-12 08:53:29 -070037 process_unittest \
Patrick Venturec18e2b62018-11-21 14:19:28 -080038 crc_unittest \
39 utils_unittest
40
Patrick Ventureef3aead2018-09-12 08:53:29 -070041TESTS = $(check_PROGRAMS)
42
43ipmi_unittest_SOURCES = ipmi_unittest.cpp
44ipmi_unittest_LDADD = $(top_builddir)/ipmi.o
45
46ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
47ipmi_getcount_unittest_LDADD = $(top_builddir)/ipmi.o
48
49ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
50ipmi_enumerate_unittest_LDADD = $(top_builddir)/ipmi.o
51
52ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
53ipmi_open_unittest_LDADD = $(top_builddir)/ipmi.o
54
55ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
56ipmi_close_unittest_LDADD = $(top_builddir)/ipmi.o
57
58ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
59ipmi_delete_unittest_LDADD = $(top_builddir)/ipmi.o
60
61ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
62ipmi_stat_unittest_LDADD = $(top_builddir)/ipmi.o
63
64ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
65ipmi_sessionstat_unittest_LDADD = $(top_builddir)/ipmi.o
66
67ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
68ipmi_commit_unittest_LDADD = $(top_builddir)/ipmi.o
69
70ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
71ipmi_read_unittest_LDADD = $(top_builddir)/ipmi.o
72
73ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
74ipmi_write_unittest_LDADD = $(top_builddir)/ipmi.o
75
Patrick Venture5c4b17b2018-10-04 10:32:22 -070076ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp
77ipmi_writemeta_unittest_LDADD = $(top_builddir)/ipmi.o
78
Patrick Ventureef3aead2018-09-12 08:53:29 -070079ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
80ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
81
82manager_unittest_SOURCES = manager_unittest.cpp
83manager_unittest_LDADD = $(top_builddir)/manager.o
84
85manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
86manager_getsession_unittest_LDADD = $(top_builddir)/manager.o
87
88manager_open_unittest_SOURCES = manager_open_unittest.cpp
89manager_open_unittest_LDADD = $(top_builddir)/manager.o
90
91manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
92manager_stat_unittest_LDADD = $(top_builddir)/manager.o
93
94manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
95manager_sessionstat_unittest_LDADD = $(top_builddir)/manager.o
96
97manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
98manager_commit_unittest_LDADD = $(top_builddir)/manager.o
99
100manager_close_unittest_SOURCES = manager_close_unittest.cpp
101manager_close_unittest_LDADD = $(top_builddir)/manager.o
102
103manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
104manager_delete_unittest_LDADD = $(top_builddir)/manager.o
105
106manager_write_unittest_SOURCES = manager_write_unittest.cpp
107manager_write_unittest_LDADD = $(top_builddir)/manager.o
108
109manager_read_unittest_SOURCES = manager_read_unittest.cpp
110manager_read_unittest_LDADD = $(top_builddir)/manager.o
111
Patrick Venture5c4b17b2018-10-04 10:32:22 -0700112manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp
113manager_writemeta_unittest_LDADD = $(top_builddir)/manager.o
114
Patrick Ventureef3aead2018-09-12 08:53:29 -0700115process_unittest_SOURCES = process_unittest.cpp
116process_unittest_LDADD = $(top_builddir)/process.o $(top_builddir)/ipmi.o \
117 $(top_builddir)/crc.o
118
119crc_unittest_SOURCES = crc_unittest.cpp
120crc_unittest_LDADD = $(top_builddir)/crc.o
Patrick Venturec18e2b62018-11-21 14:19:28 -0800121
122utils_unittest_SOURCES = utils_unittest.cpp
123utils_unittest_LDADD = $(top_builddir)/utils.o $(PHOSPHOR_LOGGING_LIBS)