blob: 29586bfb4c03eedaa1457d975c7ef215e55d256f [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 \
24 ipmi_validate_unittest \
25 manager_unittest \
26 manager_getsession_unittest \
27 manager_open_unittest \
28 manager_stat_unittest \
29 manager_sessionstat_unittest \
30 manager_commit_unittest \
31 manager_close_unittest \
32 manager_delete_unittest \
33 manager_write_unittest \
34 manager_read_unittest \
35 process_unittest \
36 crc_unittest
37TESTS = $(check_PROGRAMS)
38
39ipmi_unittest_SOURCES = ipmi_unittest.cpp
40ipmi_unittest_LDADD = $(top_builddir)/ipmi.o
41
42ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
43ipmi_getcount_unittest_LDADD = $(top_builddir)/ipmi.o
44
45ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
46ipmi_enumerate_unittest_LDADD = $(top_builddir)/ipmi.o
47
48ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
49ipmi_open_unittest_LDADD = $(top_builddir)/ipmi.o
50
51ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
52ipmi_close_unittest_LDADD = $(top_builddir)/ipmi.o
53
54ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
55ipmi_delete_unittest_LDADD = $(top_builddir)/ipmi.o
56
57ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
58ipmi_stat_unittest_LDADD = $(top_builddir)/ipmi.o
59
60ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
61ipmi_sessionstat_unittest_LDADD = $(top_builddir)/ipmi.o
62
63ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
64ipmi_commit_unittest_LDADD = $(top_builddir)/ipmi.o
65
66ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
67ipmi_read_unittest_LDADD = $(top_builddir)/ipmi.o
68
69ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
70ipmi_write_unittest_LDADD = $(top_builddir)/ipmi.o
71
72ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
73ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
74
75manager_unittest_SOURCES = manager_unittest.cpp
76manager_unittest_LDADD = $(top_builddir)/manager.o
77
78manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
79manager_getsession_unittest_LDADD = $(top_builddir)/manager.o
80
81manager_open_unittest_SOURCES = manager_open_unittest.cpp
82manager_open_unittest_LDADD = $(top_builddir)/manager.o
83
84manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
85manager_stat_unittest_LDADD = $(top_builddir)/manager.o
86
87manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
88manager_sessionstat_unittest_LDADD = $(top_builddir)/manager.o
89
90manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
91manager_commit_unittest_LDADD = $(top_builddir)/manager.o
92
93manager_close_unittest_SOURCES = manager_close_unittest.cpp
94manager_close_unittest_LDADD = $(top_builddir)/manager.o
95
96manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
97manager_delete_unittest_LDADD = $(top_builddir)/manager.o
98
99manager_write_unittest_SOURCES = manager_write_unittest.cpp
100manager_write_unittest_LDADD = $(top_builddir)/manager.o
101
102manager_read_unittest_SOURCES = manager_read_unittest.cpp
103manager_read_unittest_LDADD = $(top_builddir)/manager.o
104
105process_unittest_SOURCES = process_unittest.cpp
106process_unittest_LDADD = $(top_builddir)/process.o $(top_builddir)/ipmi.o \
107 $(top_builddir)/crc.o
108
109crc_unittest_SOURCES = crc_unittest.cpp
110crc_unittest_LDADD = $(top_builddir)/crc.o