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