blob: f5fe63b71b53ee2510c776bbbfc476f75fc2ac2f [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 Yi38146a02018-12-18 21:54:26 -080015 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080016 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080017 handler_unittest
18TESTS = $(check_PROGRAMS)
19
Kun Yi9125e632019-01-09 13:52:06 -080020sys_file_unittest_SOURCES = sys_file_unittest.cpp
21sys_file_unittest_LDADD = $(top_builddir)/sys_file.o
22
Kun Yi91beea62018-11-26 15:23:14 -080023handler_unittest_SOURCES = handler_unittest.cpp
24handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080025 $(top_builddir)/handler.o \
26 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080027 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080028 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
29 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080030handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080031
32handler_open_unittest_SOURCES = handler_open_unittest.cpp
33handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080034 $(top_builddir)/handler.o \
35 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080036 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080037 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
38 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080039handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080040
41handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
42handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080043 $(top_builddir)/handler.o \
44 $(top_builddir)/binarystore.o \
Kun Yi2765b642019-01-16 11:11:24 -080045 $(top_builddir)/sys_file.o \
Kun Yi0a940b92019-01-07 16:33:11 -080046 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
47 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080048handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)