Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/ \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 2 | -I$(builddir) |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 3 | $(GTEST_CFLAGS) \ |
| 4 | $(GMOCK_CFLAGS) |
| 5 | AM_CXXFLAGS = \ |
| 6 | $(GTEST_MAIN_CFLAGS) |
| 7 | AM_LDFLAGS = \ |
| 8 | $(GMOCK_LIBS) \ |
| 9 | $(GTEST_MAIN_LIBS) \ |
| 10 | $(OESDK_TESTCASE_FLAGS) |
| 11 | |
| 12 | # Run all 'check' test programs |
| 13 | check_PROGRAMS = \ |
Kun Yi | 9125e63 | 2019-01-09 13:52:06 -0800 | [diff] [blame] | 14 | sys_file_unittest \ |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 15 | handler_open_unittest \ |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 16 | handler_readwrite_unittest \ |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 17 | handler_unittest |
| 18 | TESTS = $(check_PROGRAMS) |
| 19 | |
Kun Yi | 9125e63 | 2019-01-09 13:52:06 -0800 | [diff] [blame] | 20 | sys_file_unittest_SOURCES = sys_file_unittest.cpp |
| 21 | sys_file_unittest_LDADD = $(top_builddir)/sys_file.o |
| 22 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 23 | handler_unittest_SOURCES = handler_unittest.cpp |
| 24 | handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 25 | $(top_builddir)/handler.o \ |
| 26 | $(top_builddir)/binarystore.o \ |
Kun Yi | 2765b64 | 2019-01-16 11:11:24 -0800 | [diff] [blame^] | 27 | $(top_builddir)/sys_file.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 28 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 29 | -lprotobuf |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 30 | handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 31 | |
| 32 | handler_open_unittest_SOURCES = handler_open_unittest.cpp |
| 33 | handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 34 | $(top_builddir)/handler.o \ |
| 35 | $(top_builddir)/binarystore.o \ |
Kun Yi | 2765b64 | 2019-01-16 11:11:24 -0800 | [diff] [blame^] | 36 | $(top_builddir)/sys_file.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 37 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 38 | -lprotobuf |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 39 | handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 40 | |
| 41 | handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp |
| 42 | handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 43 | $(top_builddir)/handler.o \ |
| 44 | $(top_builddir)/binarystore.o \ |
Kun Yi | 2765b64 | 2019-01-16 11:11:24 -0800 | [diff] [blame^] | 45 | $(top_builddir)/sys_file.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 46 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 47 | -lprotobuf |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 48 | handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |