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 | |
Ratan Gupta | b400597 | 2019-09-19 06:19:16 +0530 | [diff] [blame] | 5 | check_PROGRAMS = test |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 6 | |
| 7 | test_SOURCES = \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 8 | test_util.cpp \ |
| 9 | mock_syscall.cpp \ |
William A. Kennington III | c920bdb | 2019-04-19 14:23:06 -0700 | [diff] [blame] | 10 | test_neighbor.cpp \ |
| 11 | test_netlink.cpp \ |
Ratan Gupta | 47722dc | 2017-05-26 18:32:23 +0530 | [diff] [blame] | 12 | test_network_manager.cpp \ |
Ratan Gupta | 2aca45c | 2017-07-26 01:16:27 +0530 | [diff] [blame] | 13 | test_ethernet_interface.cpp \ |
Nagaraju Goruganti | 067ca2d | 2018-01-17 01:12:00 -0600 | [diff] [blame] | 14 | test_rtnetlink.cpp \ |
Ratan Gupta | 2aca45c | 2017-07-26 01:16:27 +0530 | [diff] [blame] | 15 | test_config_parser.cpp \ |
| 16 | test_vlan_interface.cpp |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 17 | |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 18 | generic_cpp_flags = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 19 | |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 20 | generic_cxx_flags = $(PTHREAD_CFLAGS) \ |
| 21 | $(SYSTEMD_CFLAGS) \ |
| 22 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 23 | $(SDEVENTPLUS_CFLAGS) \ |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 24 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 25 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 26 | |
Ratan Gupta | 3529717 | 2018-11-28 18:40:16 +0530 | [diff] [blame] | 27 | generic_ld_flags = -lgtest_main -lgtest -lgmock -lstdc++fs \ |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 28 | $(OESDK_TESTCASE_FLAGS) \ |
| 29 | $(SYSTEMD_LIBS) \ |
| 30 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 31 | $(SDEVENTPLUS_LIBS) \ |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 32 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 33 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 34 | |
| 35 | test_CPPFLAGS = ${generic_cpp_flags} |
| 36 | test_CXXFLAGS = ${generic_cxx_flags} |
William A. Kennington III | cb64b99 | 2019-04-21 18:45:07 -0700 | [diff] [blame] | 37 | test_LDFLAGS = ${generic_ld_flags} -ldl |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 38 | |
Ratan Gupta | eaefe58 | 2017-08-03 13:47:42 +0530 | [diff] [blame] | 39 | test_LDADD = $(top_builddir)/ethernet_interface.o \ |
| 40 | $(top_builddir)/network_manager.o \ |
| 41 | $(top_builddir)/network_config.o \ |
| 42 | $(top_builddir)/ipaddress.o \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 43 | $(top_builddir)/neighbor.o \ |
William A. Kennington III | c920bdb | 2019-04-19 14:23:06 -0700 | [diff] [blame] | 44 | $(top_builddir)/netlink.o \ |
Ratan Gupta | eaefe58 | 2017-08-03 13:47:42 +0530 | [diff] [blame] | 45 | $(top_builddir)/routing_table.o \ |
| 46 | $(top_builddir)/util.o \ |
Nagaraju Goruganti | 067ca2d | 2018-01-17 01:12:00 -0600 | [diff] [blame] | 47 | $(top_builddir)/rtnetlink_server.o \ |
Ratan Gupta | eaefe58 | 2017-08-03 13:47:42 +0530 | [diff] [blame] | 48 | $(top_builddir)/system_configuration.o \ |
| 49 | $(top_builddir)/dhcp_configuration.o \ |
| 50 | $(top_builddir)/config_parser.o \ |
Ratan Gupta | 3d3e4fc | 2017-07-25 13:38:19 +0530 | [diff] [blame] | 51 | $(top_builddir)/vlan_interface.o \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 52 | $(top_builddir)/xyz/openbmc_project/Network/VLAN/Create/phosphor_network_manager-server.o \ |
William A. Kennington III | 0850579 | 2019-01-30 16:00:04 -0800 | [diff] [blame] | 53 | $(top_builddir)/xyz/openbmc_project/Network/IP/Create/phosphor_network_manager-server.o \ |
| 54 | $(top_builddir)/xyz/openbmc_project/Network/Neighbor/CreateStatic/phosphor_network_manager-server.o |