blob: 2e36c8e8174aa3370d1e8edae59058a69c8ff1d6 [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 Yi9125e632019-01-09 13:52:06 -080016 sys_file_unittest \
Kun Yid297c9f2019-01-09 13:52:30 -080017 handler_commit_unittest \
Kun Yi38146a02018-12-18 21:54:26 -080018 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080019 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080020 handler_unittest
21TESTS = $(check_PROGRAMS)
22
Kun Yi9125e632019-01-09 13:52:06 -080023sys_file_unittest_SOURCES = sys_file_unittest.cpp
24sys_file_unittest_LDADD = $(top_builddir)/sys_file.o
25
Kun Yi91beea62018-11-26 15:23:14 -080026handler_unittest_SOURCES = handler_unittest.cpp
27handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080028 $(top_builddir)/handler.o \
29 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080030 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080031 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
32 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080033handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080034
Kun Yid297c9f2019-01-09 13:52:30 -080035handler_commit_unittest_SOURCES = handler_commit_unittest.cpp
36handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
37 $(top_builddir)/handler.o \
38 $(top_builddir)/binarystore.o \
39 $(top_builddir)/sys_file.o \
40 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
41 -lprotobuf
42handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
43
Kun Yi38146a02018-12-18 21:54:26 -080044handler_open_unittest_SOURCES = handler_open_unittest.cpp
45handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080046 $(top_builddir)/handler.o \
47 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080048 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080049 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
50 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080051handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080052
53handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
54handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080055 $(top_builddir)/handler.o \
56 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080057 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080058 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
59 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080060handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)