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 = \ |
Kun Yi | 8bcf79d | 2019-01-16 15:17:57 -0800 | [diff] [blame] | 6 | $(GTEST_MAIN_CFLAGS) \ |
| 7 | $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 8 | AM_LDFLAGS = \ |
| 9 | $(GMOCK_LIBS) \ |
| 10 | $(GTEST_MAIN_LIBS) \ |
Kun Yi | 8bcf79d | 2019-01-16 15:17:57 -0800 | [diff] [blame] | 11 | $(OESDK_TESTCASE_FLAGS) \ |
| 12 | $(PHOSPHOR_LOGGING_LIBS) |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 13 | |
| 14 | # Run all 'check' test programs |
| 15 | check_PROGRAMS = \ |
Kun Yi | 4dc7648 | 2019-03-05 16:06:19 -0800 | [diff] [blame] | 16 | parse_config_unittest \ |
Kun Yi | 9125e63 | 2019-01-09 13:52:06 -0800 | [diff] [blame] | 17 | sys_file_unittest \ |
Kun Yi | d297c9f | 2019-01-09 13:52:30 -0800 | [diff] [blame] | 18 | handler_commit_unittest \ |
Kun Yi | 1a25e0d | 2020-05-11 12:28:53 -0700 | [diff] [blame] | 19 | handler_stat_unittest \ |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 20 | handler_open_unittest \ |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 21 | handler_readwrite_unittest \ |
Maksym Sloyko | eb27411 | 2021-10-27 23:48:32 +0000 | [diff] [blame] | 22 | handler_unittest \ |
| 23 | binarystore_unittest |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 24 | TESTS = $(check_PROGRAMS) |
| 25 | |
Kun Yi | 4dc7648 | 2019-03-05 16:06:19 -0800 | [diff] [blame] | 26 | parse_config_unittest_SOURCES = parse_config_unittest.cpp |
| 27 | |
Kun Yi | 9125e63 | 2019-01-09 13:52:06 -0800 | [diff] [blame] | 28 | sys_file_unittest_SOURCES = sys_file_unittest.cpp |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 29 | sys_file_unittest_LDADD = $(top_builddir)/sys_file_impl.o |
Kun Yi | 9125e63 | 2019-01-09 13:52:06 -0800 | [diff] [blame] | 30 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 31 | handler_unittest_SOURCES = handler_unittest.cpp |
| 32 | handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 33 | $(top_builddir)/handler.o \ |
| 34 | $(top_builddir)/binarystore.o \ |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 35 | $(top_builddir)/sys_file_impl.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 36 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 37 | -lprotobuf |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 38 | handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 39 | |
Kun Yi | d297c9f | 2019-01-09 13:52:30 -0800 | [diff] [blame] | 40 | handler_commit_unittest_SOURCES = handler_commit_unittest.cpp |
| 41 | handler_commit_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
| 42 | $(top_builddir)/handler.o \ |
| 43 | $(top_builddir)/binarystore.o \ |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 44 | $(top_builddir)/sys_file_impl.o \ |
Kun Yi | d297c9f | 2019-01-09 13:52:30 -0800 | [diff] [blame] | 45 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 46 | -lprotobuf |
| 47 | handler_commit_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
| 48 | |
Kun Yi | 1a25e0d | 2020-05-11 12:28:53 -0700 | [diff] [blame] | 49 | handler_stat_unittest_SOURCES = handler_stat_unittest.cpp |
| 50 | handler_stat_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
| 51 | $(top_builddir)/handler.o \ |
| 52 | $(top_builddir)/binarystore.o \ |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 53 | $(top_builddir)/sys_file_impl.o \ |
Kun Yi | 1a25e0d | 2020-05-11 12:28:53 -0700 | [diff] [blame] | 54 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 55 | -lprotobuf |
| 56 | handler_stat_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
| 57 | |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 58 | handler_open_unittest_SOURCES = handler_open_unittest.cpp |
| 59 | handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 60 | $(top_builddir)/handler.o \ |
| 61 | $(top_builddir)/binarystore.o \ |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 62 | $(top_builddir)/sys_file_impl.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 63 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 64 | -lprotobuf |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 65 | handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 66 | |
| 67 | handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp |
| 68 | handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 69 | $(top_builddir)/handler.o \ |
| 70 | $(top_builddir)/binarystore.o \ |
Patrick Venture | 15f0f94 | 2020-07-09 09:38:18 -0700 | [diff] [blame] | 71 | $(top_builddir)/sys_file_impl.o \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 72 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 73 | -lprotobuf |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 74 | handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Maksym Sloyko | eb27411 | 2021-10-27 23:48:32 +0000 | [diff] [blame] | 75 | |
| 76 | binarystore_unittest_SOURCES = binarystore_unittest.cpp |
| 77 | binarystore_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
| 78 | $(top_builddir)/binarystore.o \ |
| 79 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 80 | -lprotobuf |
| 81 | binarystore_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |