Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/ \ |
| 2 | $(GTEST_CFLAGS) \ |
| 3 | $(GMOCK_CFLAGS) |
| 4 | AM_CXXFLAGS = \ |
Patrick Venture | 4eb5595 | 2018-11-16 15:36:24 -0800 | [diff] [blame] | 5 | $(GTEST_MAIN_CFLAGS) \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame^] | 6 | $(SDBUSPLUS_CFLAGS) \ |
| 7 | $(PHOSPHOR_LOGGING_CFLAGS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 8 | AM_LDFLAGS = \ |
| 9 | $(GMOCK_LIBS) \ |
| 10 | $(GTEST_MAIN_LIBS) \ |
Patrick Venture | 4eb5595 | 2018-11-16 15:36:24 -0800 | [diff] [blame] | 11 | $(OESDK_TESTCASE_FLAGS) \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame^] | 12 | $(SDBUSPLUS_LIBS) \ |
| 13 | $(PHOSPHOR_LOGGING_LIBS) |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 14 | |
| 15 | # Run all 'check' test programs |
| 16 | check_PROGRAMS = \ |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame^] | 17 | firmware_createhandler_unittest \ |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 18 | firmware_handler_unittest \ |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 19 | firmware_stat_unittest \ |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 20 | firmware_canhandle_unittest \ |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 21 | firmware_open_unittest \ |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 22 | firmware_write_unittest \ |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 23 | firmware_writemeta_unittest \ |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 24 | firmware_close_unittest \ |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 25 | firmware_delete_unittest \ |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 26 | firmware_sessionstat_unittest \ |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 27 | firmware_commit_unittest \ |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 28 | file_handler_unittest |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 29 | |
| 30 | TESTS = $(check_PROGRAMS) |
| 31 | |
Patrick Venture | d333a87 | 2018-12-03 16:24:26 -0800 | [diff] [blame^] | 32 | firmware_createhandler_unittest_SOURCES = firmware_createhandler_unittest.cpp |
| 33 | firmware_createhandler_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 34 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 35 | firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp |
| 36 | firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 37 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 38 | firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp |
| 39 | firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 40 | |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 41 | firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp |
| 42 | firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 43 | |
| 44 | firmware_open_unittest_SOURCES = firmware_open_unittest.cpp |
| 45 | firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 46 | |
| 47 | firmware_write_unittest_SOURCES = firmware_write_unittest.cpp |
| 48 | firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 49 | |
| 50 | firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp |
| 51 | firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 52 | |
| 53 | firmware_close_unittest_SOURCES = firmware_close_unittest.cpp |
| 54 | firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 55 | |
| 56 | firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp |
| 57 | firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 58 | |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 59 | firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp |
| 60 | firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 61 | |
Patrick Venture | ffcc550 | 2018-11-16 12:32:38 -0800 | [diff] [blame] | 62 | firmware_commit_unittest_SOURCES = firmware_commit_unittest.cpp |
| 63 | firmware_commit_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 64 | |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 65 | file_handler_unittest_SOURCES = file_handler_unittest.cpp |
Patrick Venture | 86b49e2 | 2018-11-15 14:29:00 -0800 | [diff] [blame] | 66 | file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs |