blob: 9f417379ce7900efe75964c33eb342ab5ccb12e9 [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 Yi38146a02018-12-18 21:54:26 -080014 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080015 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080016 handler_unittest
17TESTS = $(check_PROGRAMS)
18
19handler_unittest_SOURCES = handler_unittest.cpp
20handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080021 $(top_builddir)/handler.o \
22 $(top_builddir)/binarystore.o \
23 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
24 -lprotobuf
Kun Yi91beea62018-11-26 15:23:14 -080025handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080026
27handler_open_unittest_SOURCES = handler_open_unittest.cpp
28handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080029 $(top_builddir)/handler.o \
30 $(top_builddir)/binarystore.o \
31 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
32 -lprotobuf
Kun Yi38146a02018-12-18 21:54:26 -080033handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080034
35handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
36handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080037 $(top_builddir)/handler.o \
38 $(top_builddir)/binarystore.o \
39 $(top_builddir)/libbinarystore_la-binaryblob.pb.o \
40 -lprotobuf
Kun Yic0adbc32018-12-18 22:35:29 -080041handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)