blob: 16c1bb32ada72caf45ccdf432891a272ab67975b [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 \
24 tools_helper_unittest
Patrick Venture380832c2019-06-19 10:54:44 -070025
26TESTS = $(check_PROGRAMS)
27
28tools_bt_unittest_SOURCES = tools_bt_unittest.cpp
29tools_bt_unittest_LDADD = $(top_builddir)/tools/libupdater.la
30
31tools_lpc_unittest_SOURCES = tools_lpc_unittest.cpp
32tools_lpc_unittest_LDADD = $(top_builddir)/tools/libupdater.la
33
Benjamin Fair20a18092020-06-08 11:12:21 -070034tools_pci_unittest_SOURCES = tools_pci_unittest.cpp
35tools_pci_unittest_LDADD = $(top_builddir)/tools/libupdater.la
36
Benjamin Fair30d09a32019-10-11 16:57:47 -070037tools_net_unittest_SOURCES = tools_net_unittest.cpp
38tools_net_unittest_LDADD = $(top_builddir)/tools/libupdater.la
39
Patrick Venture380832c2019-06-19 10:54:44 -070040tools_updater_unittest_SOURCES = tools_updater_unittest.cpp
41tools_updater_unittest_LDADD = $(top_builddir)/tools/libupdater.la
Patrick Venture01123b22019-06-20 13:49:06 -070042
43tools_helper_unittest_SOURCES = tools_helper_unittest.cpp
44tools_helper_unittest_LDADD = $(top_builddir)/tools/libupdater.la