blob: e49ef22be98422762fd61aa1b520f7b4fb4b68e5 [file] [log] [blame]
Patrick Venture380832c2019-06-19 10:54:44 -07001@VALGRIND_CHECK_RULES@
2
3AM_CPPFLAGS = \
4 -I$(top_srcdir)/ \
5 -I$(top_srcdir)/tools/ \
6 $(GTEST_CFLAGS) \
7 $(GMOCK_CFLAGS) \
8 $(CODE_COVERAGE_CPPFLAGS)
9AM_CXXFLAGS = \
10 $(CODE_COVERAGE_CXXFLAGS)
11AM_LDFLAGS = \
12 $(GTEST_LIBS) \
13 $(GMOCK_LIBS) \
14 -lgmock_main \
15 $(OESDK_TESTCASE_FLAGS) \
16 $(CODE_COVERAGE_LIBS)
17
18check_PROGRAMS = \
19 tools_bt_unittest \
20 tools_lpc_unittest \
Benjamin Fair20a18092020-06-08 11:12:21 -070021 tools_pci_unittest \
Benjamin Fair30d09a32019-10-11 16:57:47 -070022 tools_net_unittest \
Patrick Venture01123b22019-06-20 13:49:06 -070023 tools_updater_unittest \
Patrick Venture4d1c6872020-10-05 10:41:26 -070024 tools_helper_unittest \
25 io_unittest
Patrick Venture380832c2019-06-19 10:54:44 -070026
27TESTS = $(check_PROGRAMS)
28
29tools_bt_unittest_SOURCES = tools_bt_unittest.cpp
30tools_bt_unittest_LDADD = $(top_builddir)/tools/libupdater.la
31
32tools_lpc_unittest_SOURCES = tools_lpc_unittest.cpp
33tools_lpc_unittest_LDADD = $(top_builddir)/tools/libupdater.la
34
Benjamin Fair20a18092020-06-08 11:12:21 -070035tools_pci_unittest_SOURCES = tools_pci_unittest.cpp
36tools_pci_unittest_LDADD = $(top_builddir)/tools/libupdater.la
37
Benjamin Fair30d09a32019-10-11 16:57:47 -070038tools_net_unittest_SOURCES = tools_net_unittest.cpp
39tools_net_unittest_LDADD = $(top_builddir)/tools/libupdater.la
40
Patrick Venture380832c2019-06-19 10:54:44 -070041tools_updater_unittest_SOURCES = tools_updater_unittest.cpp
42tools_updater_unittest_LDADD = $(top_builddir)/tools/libupdater.la
Patrick Venture01123b22019-06-20 13:49:06 -070043
44tools_helper_unittest_SOURCES = tools_helper_unittest.cpp
45tools_helper_unittest_LDADD = $(top_builddir)/tools/libupdater.la
Patrick Venture4d1c6872020-10-05 10:41:26 -070046
47io_unittest_SOURCES = io_unittest.cpp
48io_unittest_LDADD = $(top_builddir)/tools/libupdater.la