blob: f1d11d453186c09a8242ef809114e33f53bb6369 [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 \
Ratan Gupta2aca45c2017-07-26 01:16:27 +053011 test_ethernet_interface.cpp \
12 test_config_parser.cpp \
13 test_vlan_interface.cpp
Ratan Gupta594123d2017-05-16 22:48:35 +053014
15test_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
Ratan Guptafc2c7242017-05-29 08:46:06 +053016
Ratan Gupta11cef802017-05-29 08:41:48 +053017test_CXXFLAGS = $(PTHREAD_CFLAGS) \
18 $(SYSTEMD_CFLAGS) \
19 $(SDBUSPLUS_CFLAGS) \
20 $(PHOSPHOR_LOGGING_CFLAGS) \
21 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Ratan Gupta594123d2017-05-16 22:48:35 +053022
23test_LDFLAGS = -lgtest_main -lgtest -lstdc++fs \
24 $(OESDK_TESTCASE_FLAGS) \
25 $(SYSTEMD_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053026 $(SDBUSPLUS_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053027 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053028 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Ratan Gupta594123d2017-05-16 22:48:35 +053029
Ratan Guptaeaefe582017-08-03 13:47:42 +053030test_LDADD = $(top_builddir)/ethernet_interface.o \
31 $(top_builddir)/network_manager.o \
32 $(top_builddir)/network_config.o \
33 $(top_builddir)/ipaddress.o \
34 $(top_builddir)/routing_table.o \
35 $(top_builddir)/util.o \
36 $(top_builddir)/system_configuration.o \
37 $(top_builddir)/dhcp_configuration.o \
38 $(top_builddir)/config_parser.o \
Ratan Gupta3d3e4fc2017-07-25 13:38:19 +053039 $(top_builddir)/vlan_interface.o \
Ratan Gupta8ab17922017-05-25 13:07:05 +053040 $(top_builddir)/xyz/openbmc_project/Network/VLAN/Create/phosphor_network_manager-server.o \
41 $(top_builddir)/xyz/openbmc_project/Network/IP/Create/phosphor_network_manager-server.o