blob: c61497560f31c34a655a1768d9a39449d8673963 [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 Guptaed123a32017-06-15 09:07:31 +053011 test_ethernet_interface.cpp \
12 test_config_parser.cpp
Ratan Gupta594123d2017-05-16 22:48:35 +053013
14test_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS)
Ratan Guptafc2c7242017-05-29 08:46:06 +053015
Ratan Gupta11cef802017-05-29 08:41:48 +053016test_CXXFLAGS = $(PTHREAD_CFLAGS) \
17 $(SYSTEMD_CFLAGS) \
18 $(SDBUSPLUS_CFLAGS) \
19 $(PHOSPHOR_LOGGING_CFLAGS) \
20 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Ratan Gupta594123d2017-05-16 22:48:35 +053021
22test_LDFLAGS = -lgtest_main -lgtest -lstdc++fs \
23 $(OESDK_TESTCASE_FLAGS) \
24 $(SYSTEMD_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053025 $(SDBUSPLUS_LIBS) \
Ratan Gupta11cef802017-05-29 08:41:48 +053026 $(PHOSPHOR_LOGGING_LIBS) \
Ratan Gupta8ab17922017-05-25 13:07:05 +053027 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Ratan Gupta594123d2017-05-16 22:48:35 +053028
Ratan Gupta8ab17922017-05-25 13:07:05 +053029test_LDADD = $(top_builddir)/ethernet_interface.cpp \
30 $(top_builddir)/network_manager.cpp \
31 $(top_builddir)/network_config.cpp \
32 $(top_builddir)/ipaddress.cpp \
Ratan Guptafc2c7242017-05-29 08:46:06 +053033 $(top_builddir)/routing_table.cpp \
Ratan Gupta8ab17922017-05-25 13:07:05 +053034 $(top_builddir)/util.cpp \
Ratan Guptaef85eb92017-06-15 08:57:54 +053035 $(top_builddir)/system_configuration.cpp \
Ratan Gupta935bc332017-07-11 17:47:14 +053036 $(top_builddir)/dhcp_configuration.cpp \
Ratan Guptaed123a32017-06-15 09:07:31 +053037 $(top_builddir)/config_parser.cpp \
Ratan Gupta8ab17922017-05-25 13:07:05 +053038 $(top_builddir)/xyz/openbmc_project/Network/VLAN/Create/phosphor_network_manager-server.o \
39 $(top_builddir)/xyz/openbmc_project/Network/IP/Create/phosphor_network_manager-server.o