blob: 2e07b58f82bed840d6de72a74800357c3f3f2357 [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 \
Maksym Sloykoeb274112021-10-27 23:48:32 +000022 handler_unittest \
23 binarystore_unittest
Kun Yi91beea62018-11-26 15:23:14 -080024TESTS = $(check_PROGRAMS)
25
Kun Yi4dc76482019-03-05 16:06:19 -080026parse_config_unittest_SOURCES = parse_config_unittest.cpp
27
Kun Yi9125e632019-01-09 13:52:06 -080028sys_file_unittest_SOURCES = sys_file_unittest.cpp
Patrick Venture15f0f942020-07-09 09:38:18 -070029sys_file_unittest_LDADD = $(top_builddir)/sys_file_impl.o
Kun Yi9125e632019-01-09 13:52:06 -080030
Kun Yi91beea62018-11-26 15:23:14 -080031handler_unittest_SOURCES = handler_unittest.cpp
32handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080033 $(top_builddir)/handler.o \
34 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070035 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080036 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
37 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080038handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080039
Kun Yid297c9f2019-01-09 13:52:30 -080040handler_commit_unittest_SOURCES = handler_commit_unittest.cpp
41handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
42 $(top_builddir)/handler.o \
43 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070044 $(top_builddir)/sys_file_impl.o \
Kun Yid297c9f2019-01-09 13:52:30 -080045 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
46 -lprotobuf
47handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
48
Kun Yi1a25e0d2020-05-11 12:28:53 -070049handler_stat_unittest_SOURCES = handler_stat_unittest.cpp
50handler_stat_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
51 $(top_builddir)/handler.o \
52 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070053 $(top_builddir)/sys_file_impl.o \
Kun Yi1a25e0d2020-05-11 12:28:53 -070054 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
55 -lprotobuf
56handler_stat_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
57
Kun Yi38146a02018-12-18 21:54:26 -080058handler_open_unittest_SOURCES = handler_open_unittest.cpp
59handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080060 $(top_builddir)/handler.o \
61 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070062 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080063 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
64 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080065handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080066
67handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
68handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080069 $(top_builddir)/handler.o \
70 $(top_builddir)/binarystore.o \
Patrick Venture15f0f942020-07-09 09:38:18 -070071 $(top_builddir)/sys_file_impl.o \
Kun Yi0a940b92019-01-07 16:33:11 -080072 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
73 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080074handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Maksym Sloykoeb274112021-10-27 23:48:32 +000075
76binarystore_unittest_SOURCES = binarystore_unittest.cpp
77binarystore_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
78 $(top_builddir)/binarystore.o \
79 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
80 -lprotobuf
81binarystore_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)