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