blob: b2fa580ef3c25a829c8f6470a3e7c59407536b42 [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 \
27 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
28 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080029handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080030
31handler_open_unittest_SOURCES = handler_open_unittest.cpp
32handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080033 $(top_builddir)/handler.o \
34 $(top_builddir)/binarystore.o \
35 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
36 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080037handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080038
39handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
40handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080041 $(top_builddir)/handler.o \
42 $(top_builddir)/binarystore.o \
43 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
44 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080045handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)