blob: 1fd0f337ac6404675aad504751dbdee15b69e040 [file] [log] [blame]
Ratan Gupta8ab17922017-05-25 13:07:05 +05301AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir}
Ratan Gupta594123d2017-05-16 22:48:35 +05302
3TESTS = $(check_PROGRAMS)
4
5check_PROGRAMS = test
6
7test_SOURCES = \
Ratan Gupta8ab17922017-05-25 13:07:05 +05308 test_util.cpp \
9 mock_syscall.cpp \
Ratan Gupta47722dc2017-05-26 18:32:23 +053010 test_network_manager.cpp \
11 test_ethernet_interface.cpp
Ratan Gupta594123d2017-05-16 22:48:35 +053012
13test_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
Ratan Gupta11cef802017-05-29 08:41:48 +053014test_CXXFLAGS = $(PTHREAD_CFLAGS) \
15 $(SYSTEMD_CFLAGS) \
16 $(SDBUSPLUS_CFLAGS) \
17 $(PHOSPHOR_LOGGING_CFLAGS) \
18 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Ratan Gupta594123d2017-05-16 22:48:35 +053019
20test_LDFLAGS = -lgtest_main -lgtest -lstdc++fs \
21 $(OESDK_TESTCASE_FLAGS) \
22 $(SYSTEMD_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053023 $(SDBUSPLUS_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053024 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053025 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Ratan Gupta594123d2017-05-16 22:48:35 +053026
Ratan Gupta8ab17922017-05-25 13:07:05 +053027test_LDADD = $(top_builddir)/ethernet_interface.cpp \
28 $(top_builddir)/network_manager.cpp \
29 $(top_builddir)/network_config.cpp \
30 $(top_builddir)/ipaddress.cpp \
31 $(top_builddir)/util.cpp \
32 $(top_builddir)/xyz/openbmc_project/Network/VLAN/Create/phosphor_network_manager-server.o \
33 $(top_builddir)/xyz/openbmc_project/Network/IP/Create/phosphor_network_manager-server.o