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 = \ |
| 5 | $(GTEST_MAIN_CFLAGS) |
| 6 | AM_LDFLAGS = \ |
| 7 | $(GMOCK_LIBS) \ |
| 8 | $(GTEST_MAIN_LIBS) \ |
| 9 | $(OESDK_TESTCASE_FLAGS) |
| 10 | |
| 11 | # Run all 'check' test programs |
| 12 | check_PROGRAMS = \ |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 13 | firmware_handler_unittest \ |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 14 | firmware_stat_unittest \ |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 15 | firmware_canhandle_unittest \ |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 16 | firmware_open_unittest \ |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 17 | firmware_write_unittest \ |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 18 | firmware_writemeta_unittest \ |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 19 | firmware_close_unittest \ |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 20 | firmware_delete_unittest \ |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 21 | firmware_sessionstat_unittest \ |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 22 | file_handler_unittest |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 23 | |
| 24 | TESTS = $(check_PROGRAMS) |
| 25 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 26 | firmware_handler_unittest_SOURCES = firmware_handler_unittest.cpp |
| 27 | firmware_handler_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 21be45a | 2018-11-06 12:08:52 -0800 | [diff] [blame] | 28 | |
Patrick Venture | de77b30 | 2018-11-06 15:38:04 -0800 | [diff] [blame] | 29 | firmware_stat_unittest_SOURCES = firmware_stat_unittest.cpp |
| 30 | firmware_stat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 46637c8 | 2018-11-06 15:20:24 -0800 | [diff] [blame] | 31 | |
Patrick Venture | df848ee | 2018-11-06 15:44:00 -0800 | [diff] [blame] | 32 | firmware_canhandle_unittest_SOURCES = firmware_canhandle_unittest.cpp |
| 33 | firmware_canhandle_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 72388d7 | 2018-11-07 15:06:36 -0800 | [diff] [blame] | 34 | |
| 35 | firmware_open_unittest_SOURCES = firmware_open_unittest.cpp |
| 36 | firmware_open_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 18235e6 | 2018-11-08 10:21:09 -0800 | [diff] [blame] | 37 | |
| 38 | firmware_write_unittest_SOURCES = firmware_write_unittest.cpp |
| 39 | firmware_write_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 8c53533 | 2018-11-08 15:58:00 -0800 | [diff] [blame] | 40 | |
| 41 | firmware_writemeta_unittest_SOURCES = firmware_writemeta_unittest.cpp |
| 42 | firmware_writemeta_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 68bb143 | 2018-11-09 20:08:48 -0800 | [diff] [blame] | 43 | |
| 44 | firmware_close_unittest_SOURCES = firmware_close_unittest.cpp |
| 45 | firmware_close_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | 9e5aab2 | 2018-11-09 20:49:28 -0800 | [diff] [blame] | 46 | |
| 47 | firmware_delete_unittest_SOURCES = firmware_delete_unittest.cpp |
| 48 | firmware_delete_unittest_LDADD = $(top_builddir)/firmware_handler.o |
Patrick Venture | a17cf44 | 2018-11-15 09:31:51 -0800 | [diff] [blame] | 49 | |
Patrick Venture | cc7d160 | 2018-11-15 13:58:33 -0800 | [diff] [blame] | 50 | firmware_sessionstat_unittest_SOURCES = firmware_sessionstat_unittest.cpp |
| 51 | firmware_sessionstat_unittest_LDADD = $(top_builddir)/firmware_handler.o |
| 52 | |
Patrick Venture | 7753d94 | 2018-11-15 13:15:36 -0800 | [diff] [blame] | 53 | file_handler_unittest_SOURCES = file_handler_unittest.cpp |
Patrick Venture | 86b49e2 | 2018-11-15 14:29:00 -0800 | [diff] [blame^] | 54 | file_handler_unittest_LDADD = $(top_builddir)/file_handler.o -lstdc++fs |