blob: 3d539166bfcec7732aa573e2ca7c0b481a1142eb [file] [log] [blame]
Kun Yi91beea62018-11-26 15:23:14 -08001AM_CPPFLAGS = -I$(top_srcdir)/ \
Kun Yi0a940b92019-01-07 16:33:11 -08002 -I$(builddir)
Kun Yi91beea62018-11-26 15:23:14 -08003 $(GTEST_CFLAGS) \
4 $(GMOCK_CFLAGS)
5AM_CXXFLAGS = \
Kun Yi8bcf79d2019-01-16 15:17:57 -08006 $(GTEST_MAIN_CFLAGS) \
7 $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi91beea62018-11-26 15:23:14 -08008AM_LDFLAGS = \
9 $(GMOCK_LIBS) \
10 $(GTEST_MAIN_LIBS) \
Kun Yi8bcf79d2019-01-16 15:17:57 -080011 $(OESDK_TESTCASE_FLAGS) \
12 $(PHOSPHOR_LOGGING_LIBS)
Kun Yi91beea62018-11-26 15:23:14 -080013
14# Run all 'check' test programs
15check_PROGRAMS = \
Kun Yi4dc76482019-03-05 16:06:19 -080016 parse_config_unittest \
Kun Yi9125e632019-01-09 13:52:06 -080017 sys_file_unittest \
Kun Yid297c9f2019-01-09 13:52:30 -080018 handler_commit_unittest \
Kun Yi38146a02018-12-18 21:54:26 -080019 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080020 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080021 handler_unittest
22TESTS = $(check_PROGRAMS)
23
Kun Yi4dc76482019-03-05 16:06:19 -080024parse_config_unittest_SOURCES = parse_config_unittest.cpp
25
Kun Yi9125e632019-01-09 13:52:06 -080026sys_file_unittest_SOURCES = sys_file_unittest.cpp
27sys_file_unittest_LDADD = $(top_builddir)/sys_file.o
28
Kun Yi91beea62018-11-26 15:23:14 -080029handler_unittest_SOURCES = handler_unittest.cpp
30handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080031 $(top_builddir)/handler.o \
32 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080033 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080034 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
35 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080036handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080037
Kun Yid297c9f2019-01-09 13:52:30 -080038handler_commit_unittest_SOURCES = handler_commit_unittest.cpp
39handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
40 $(top_builddir)/handler.o \
41 $(top_builddir)/binarystore.o \
42 $(top_builddir)/sys_file.o \
43 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
44 -lprotobuf
45handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
46
Kun Yi38146a02018-12-18 21:54:26 -080047handler_open_unittest_SOURCES = handler_open_unittest.cpp
48handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080049 $(top_builddir)/handler.o \
50 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080051 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080052 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
53 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080054handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080055
56handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
57handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080058 $(top_builddir)/handler.o \
59 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080060 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080061 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
62 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080063handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)