blob: 742e7e2c67b8c3b20e11678b7d90a17a89b16b9c [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 Yi1a25e0d2020-05-11 12:28:53 -070019 handler_stat_unittest \
Kun Yi38146a02018-12-18 21:54:26 -080020 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080021 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080022 handler_unittest
23TESTS = $(check_PROGRAMS)
24
Kun Yi4dc76482019-03-05 16:06:19 -080025parse_config_unittest_SOURCES = parse_config_unittest.cpp
26
Kun Yi9125e632019-01-09 13:52:06 -080027sys_file_unittest_SOURCES = sys_file_unittest.cpp
Patrick Venture15f0f942020-07-09 09:38:18 -070028sys_file_unittest_LDADD = $(top_builddir)/sys_file_impl.o
Kun Yi9125e632019-01-09 13:52:06 -080029
Kun Yi91beea62018-11-26 15:23:14 -080030handler_unittest_SOURCES = handler_unittest.cpp
31handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080032 $(top_builddir)/handler.o \
33 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070034 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080035 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
36 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080037handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080038
Kun Yid297c9f2019-01-09 13:52:30 -080039handler_commit_unittest_SOURCES = handler_commit_unittest.cpp
40handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
41 $(top_builddir)/handler.o \
42 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070043 $(top_builddir)/sys_file_impl.o \
Kun Yid297c9f2019-01-09 13:52:30 -080044 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
45 -lprotobuf
46handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
47
Kun Yi1a25e0d2020-05-11 12:28:53 -070048handler_stat_unittest_SOURCES = handler_stat_unittest.cpp
49handler_stat_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
50 $(top_builddir)/handler.o \
51 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070052 $(top_builddir)/sys_file_impl.o \
Kun Yi1a25e0d2020-05-11 12:28:53 -070053 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
54 -lprotobuf
55handler_stat_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
56
Kun Yi38146a02018-12-18 21:54:26 -080057handler_open_unittest_SOURCES = handler_open_unittest.cpp
58handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080059 $(top_builddir)/handler.o \
60 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070061 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080062 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
63 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080064handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080065
66handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
67handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080068 $(top_builddir)/handler.o \
69 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070070 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080071 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
72 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080073handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)