Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I${top_srcdir} -I${top_builddir} |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 2 | |
| 3 | TESTS = $(check_PROGRAMS) |
| 4 | |
| 5 | check_PROGRAMS = test |
| 6 | |
| 7 | test_SOURCES = \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 8 | test_util.cpp \ |
| 9 | mock_syscall.cpp \ |
Ratan Gupta | 47722dc | 2017-05-26 18:32:23 +0530 | [diff] [blame] | 10 | test_network_manager.cpp \ |
| 11 | test_ethernet_interface.cpp |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 12 | |
| 13 | test_CPPFLAGS = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Ratan Gupta | 11cef80 | 2017-05-29 08:41:48 +0530 | [diff] [blame] | 14 | test_CXXFLAGS = $(PTHREAD_CFLAGS) \ |
| 15 | $(SYSTEMD_CFLAGS) \ |
| 16 | $(SDBUSPLUS_CFLAGS) \ |
| 17 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 18 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 19 | |
| 20 | test_LDFLAGS = -lgtest_main -lgtest -lstdc++fs \ |
| 21 | $(OESDK_TESTCASE_FLAGS) \ |
| 22 | $(SYSTEMD_LIBS) \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 23 | $(SDBUSPLUS_LIBS) \ |
Ratan Gupta | 11cef80 | 2017-05-29 08:41:48 +0530 | [diff] [blame] | 24 | $(PHOSPHOR_LOGGING_LIBS) \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 25 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 26 | |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 27 | test_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 |