blob: cff1416ffbf5f53d17b056695b1420a6296dd4c2 [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 = \
6 $(GTEST_MAIN_CFLAGS)
7AM_LDFLAGS = \
8 $(GMOCK_LIBS) \
9 $(GTEST_MAIN_LIBS) \
10 $(OESDK_TESTCASE_FLAGS)
11
12# Run all 'check' test programs
13check_PROGRAMS = \
Kun Yi9125e632019-01-09 13:52:06 -080014 sys_file_unittest \
Kun Yid297c9f2019-01-09 13:52:30 -080015 handler_commit_unittest \
Kun Yi38146a02018-12-18 21:54:26 -080016 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080017 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080018 handler_unittest
19TESTS = $(check_PROGRAMS)
20
Kun Yi9125e632019-01-09 13:52:06 -080021sys_file_unittest_SOURCES = sys_file_unittest.cpp
22sys_file_unittest_LDADD = $(top_builddir)/sys_file.o
23
Kun Yi91beea62018-11-26 15:23:14 -080024handler_unittest_SOURCES = handler_unittest.cpp
25handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080026 $(top_builddir)/handler.o \
27 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080028 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080029 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
30 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080031handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080032
Kun Yid297c9f2019-01-09 13:52:30 -080033handler_commit_unittest_SOURCES = handler_commit_unittest.cpp
34handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
35 $(top_builddir)/handler.o \
36 $(top_builddir)/binarystore.o \
37 $(top_builddir)/sys_file.o \
38 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
39 -lprotobuf
40handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
41
Kun Yi38146a02018-12-18 21:54:26 -080042handler_open_unittest_SOURCES = handler_open_unittest.cpp
43handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080044 $(top_builddir)/handler.o \
45 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080046 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080047 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
48 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080049handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080050
51handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
52handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080053 $(top_builddir)/handler.o \
54 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080055 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080056 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
57 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080058handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)