blob: a502e7733ff4f0b1eb30dbd93ead3783c49727c3 [file] [log] [blame]
Patrick Ventureba32fe42019-03-19 12:50:59 -07001@VALGRIND_CHECK_RULES@
2
Patrick Venture1ddb94f2019-03-13 16:01:35 -07003AM_CPPFLAGS = \
4 -I$(top_srcdir)/ \
5 $(GTEST_CFLAGS) \
Patrick Venture6667a642019-03-13 16:39:30 -07006 $(GMOCK_CFLAGS) \
7 $(CODE_COVERAGE_CPPFLAGS)
8AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
9AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
Patrick Venture1ddb94f2019-03-13 16:01:35 -070010AM_LDFLAGS = \
11 $(GTEST_LIBS) \
12 $(GMOCK_LIBS) \
13 -lgmock_main \
Patrick Venture6667a642019-03-13 16:39:30 -070014 $(OESDK_TESTCASE_FLAGS) \
15 $(CODE_COVERAGE_LIBS)
Patrick Venture848b9382019-03-13 15:48:23 -070016
17check_PROGRAMS =
18TESTS = $(check_PROGRAMS)
Patrick Venture1ddb94f2019-03-13 16:01:35 -070019
Patrick Venturef085d912019-03-15 08:50:00 -070020check_PROGRAMS += handler_unittest
21handler_unittest_SOURCES = handler_unittest.cpp
22handler_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
23
Patrick Venture1ddb94f2019-03-13 16:01:35 -070024check_PROGRAMS += eth_unittest
25eth_unittest_SOURCES = eth_unittest.cpp
26eth_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Patrick Ventured2037c62019-03-15 10:29:47 -070027
28check_PROGRAMS += cable_unittest
29cable_unittest_SOURCES = cable_unittest.cpp
30cable_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Patrick Venturebb90d4f2019-03-15 13:42:06 -070031
32check_PROGRAMS += cpld_unittest
33cpld_unittest_SOURCES = cpld_unittest.cpp
34cpld_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Patrick Ventureaa374122019-03-15 15:09:10 -070035
36check_PROGRAMS += psu_unittest
37psu_unittest_SOURCES = psu_unittest.cpp
38psu_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Patrick Venture07f85152019-03-15 21:36:56 -070039
40check_PROGRAMS += entity_unittest
41entity_unittest_SOURCES = entity_unittest.cpp
42entity_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Patrick Venture49f23ad2019-03-16 11:59:55 -070043
William A. Kennington III29f35bc2020-11-03 23:30:31 -080044check_PROGRAMS += machine_unittest
45machine_unittest_SOURCES = machine_unittest.cpp
46machine_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
47
Patrick Venture49f23ad2019-03-16 11:59:55 -070048check_PROGRAMS += pcie_unittest
49pcie_unittest_SOURCES = pcie_unittest.cpp
50pcie_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
Willy Tu3b1b4272021-03-02 17:58:10 -080051
52check_PROGRAMS += flash_unittest
53flash_unittest_SOURCES = flash_unittest.cpp
54flash_unittest_LDADD = $(top_builddir)/libsyscmds_common.la
linyuny8cfa4c42021-06-16 13:53:08 -070055
56check_PROGRAMS += poweroff_unittest
57poweroff_unittest_SOURCES = poweroff_unittest.cpp
58poweroff_unittest_LDADD = $(top_builddir)/libsyscmds_common.la