Patrick Venture | ba32fe4 | 2019-03-19 12:50:59 -0700 | [diff] [blame] | 1 | @VALGRIND_CHECK_RULES@ |
| 2 | |
Patrick Venture | 1ddb94f | 2019-03-13 16:01:35 -0700 | [diff] [blame] | 3 | AM_CPPFLAGS = \ |
| 4 | -I$(top_srcdir)/ \ |
| 5 | $(GTEST_CFLAGS) \ |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 6 | $(GMOCK_CFLAGS) \ |
| 7 | $(CODE_COVERAGE_CPPFLAGS) |
| 8 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 9 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
Patrick Venture | 1ddb94f | 2019-03-13 16:01:35 -0700 | [diff] [blame] | 10 | AM_LDFLAGS = \ |
| 11 | $(GTEST_LIBS) \ |
| 12 | $(GMOCK_LIBS) \ |
| 13 | -lgmock_main \ |
Patrick Venture | 6667a64 | 2019-03-13 16:39:30 -0700 | [diff] [blame] | 14 | $(OESDK_TESTCASE_FLAGS) \ |
| 15 | $(CODE_COVERAGE_LIBS) |
Patrick Venture | 848b938 | 2019-03-13 15:48:23 -0700 | [diff] [blame] | 16 | |
| 17 | check_PROGRAMS = |
| 18 | TESTS = $(check_PROGRAMS) |
Patrick Venture | 1ddb94f | 2019-03-13 16:01:35 -0700 | [diff] [blame] | 19 | |
Patrick Venture | f085d91 | 2019-03-15 08:50:00 -0700 | [diff] [blame] | 20 | check_PROGRAMS += handler_unittest |
| 21 | handler_unittest_SOURCES = handler_unittest.cpp |
| 22 | handler_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
| 23 | |
Patrick Venture | 1ddb94f | 2019-03-13 16:01:35 -0700 | [diff] [blame] | 24 | check_PROGRAMS += eth_unittest |
| 25 | eth_unittest_SOURCES = eth_unittest.cpp |
| 26 | eth_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Patrick Venture | d2037c6 | 2019-03-15 10:29:47 -0700 | [diff] [blame] | 27 | |
| 28 | check_PROGRAMS += cable_unittest |
| 29 | cable_unittest_SOURCES = cable_unittest.cpp |
| 30 | cable_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Patrick Venture | bb90d4f | 2019-03-15 13:42:06 -0700 | [diff] [blame] | 31 | |
| 32 | check_PROGRAMS += cpld_unittest |
| 33 | cpld_unittest_SOURCES = cpld_unittest.cpp |
| 34 | cpld_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Patrick Venture | aa37412 | 2019-03-15 15:09:10 -0700 | [diff] [blame] | 35 | |
| 36 | check_PROGRAMS += psu_unittest |
| 37 | psu_unittest_SOURCES = psu_unittest.cpp |
| 38 | psu_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Patrick Venture | 07f8515 | 2019-03-15 21:36:56 -0700 | [diff] [blame] | 39 | |
| 40 | check_PROGRAMS += entity_unittest |
| 41 | entity_unittest_SOURCES = entity_unittest.cpp |
| 42 | entity_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame] | 43 | |
William A. Kennington III | 29f35bc | 2020-11-03 23:30:31 -0800 | [diff] [blame] | 44 | check_PROGRAMS += machine_unittest |
| 45 | machine_unittest_SOURCES = machine_unittest.cpp |
| 46 | machine_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
| 47 | |
Patrick Venture | 49f23ad | 2019-03-16 11:59:55 -0700 | [diff] [blame] | 48 | check_PROGRAMS += pcie_unittest |
| 49 | pcie_unittest_SOURCES = pcie_unittest.cpp |
| 50 | pcie_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
Willy Tu | 3b1b427 | 2021-03-02 17:58:10 -0800 | [diff] [blame] | 51 | |
| 52 | check_PROGRAMS += flash_unittest |
| 53 | flash_unittest_SOURCES = flash_unittest.cpp |
| 54 | flash_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |
linyuny | 8cfa4c4 | 2021-06-16 13:53:08 -0700 | [diff] [blame^] | 55 | |
| 56 | check_PROGRAMS += poweroff_unittest |
| 57 | poweroff_unittest_SOURCES = poweroff_unittest.cpp |
| 58 | poweroff_unittest_LDADD = $(top_builddir)/libsyscmds_common.la |