blob: 59325f2e9e0567c1a1db0bf86cc0a172a35f5e12 [file] [log] [blame]
Kun Yi91beea62018-11-26 15:23:14 -08001AM_CPPFLAGS = -I$(top_srcdir)/ \
2 $(GTEST_CFLAGS) \
3 $(GMOCK_CFLAGS)
4AM_CXXFLAGS = \
5 $(GTEST_MAIN_CFLAGS)
6AM_LDFLAGS = \
7 $(GMOCK_LIBS) \
8 $(GTEST_MAIN_LIBS) \
9 $(OESDK_TESTCASE_FLAGS)
10
11# Run all 'check' test programs
12check_PROGRAMS = \
Kun Yi38146a02018-12-18 21:54:26 -080013 handler_open_unittest \
Kun Yic0adbc32018-12-18 22:35:29 -080014 handler_readwrite_unittest \
Kun Yi91beea62018-11-26 15:23:14 -080015 handler_unittest
16TESTS = $(check_PROGRAMS)
17
18handler_unittest_SOURCES = handler_unittest.cpp
19handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi64dc05c2018-12-19 13:19:03 -080020 $(top_builddir)/handler.o $(top_builddir)/binarystore.o
Kun Yi91beea62018-11-26 15:23:14 -080021handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yi38146a02018-12-18 21:54:26 -080022
23handler_open_unittest_SOURCES = handler_open_unittest.cpp
24handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi64dc05c2018-12-19 13:19:03 -080025 $(top_builddir)/handler.o $(top_builddir)/binarystore.o
Kun Yi38146a02018-12-18 21:54:26 -080026handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)
Kun Yic0adbc32018-12-18 22:35:29 -080027
28handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp
29handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi64dc05c2018-12-19 13:19:03 -080030 $(top_builddir)/handler.o $(top_builddir)/binarystore.o
Kun Yic0adbc32018-12-18 22:35:29 -080031handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS)