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 | |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 5 | check_PROGRAMS = test test_dns_updater test_watch |
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 \ |
Ratan Gupta | 47722dc | 2017-05-26 18:32:23 +0530 | [diff] [blame] | 10 | test_network_manager.cpp \ |
Ratan Gupta | 2aca45c | 2017-07-26 01:16:27 +0530 | [diff] [blame] | 11 | test_ethernet_interface.cpp \ |
Nagaraju Goruganti | 067ca2d | 2018-01-17 01:12:00 -0600 | [diff] [blame] | 12 | test_rtnetlink.cpp \ |
Ratan Gupta | 2aca45c | 2017-07-26 01:16:27 +0530 | [diff] [blame] | 13 | test_config_parser.cpp \ |
| 14 | test_vlan_interface.cpp |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 15 | |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 16 | test_dns_updater_SOURCES = test_dns_updater.cpp |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 17 | test_watch_SOURCES = test_watch.cpp |
Ratan Gupta | fc2c724 | 2017-05-29 08:46:06 +0530 | [diff] [blame] | 18 | |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 19 | generic_cpp_flags = -Igtest $(GTEST_CPPFLAGS) $(AM_CPPFLAGS) |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 20 | |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 21 | generic_cxx_flags = $(PTHREAD_CFLAGS) \ |
| 22 | $(SYSTEMD_CFLAGS) \ |
| 23 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 24 | $(SDEVENTPLUS_CFLAGS) \ |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 25 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 26 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 27 | |
| 28 | generic_ld_flags = -lgtest_main -lgtest -lstdc++fs \ |
| 29 | $(OESDK_TESTCASE_FLAGS) \ |
| 30 | $(SYSTEMD_LIBS) \ |
| 31 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | 3a70fa2 | 2018-09-20 18:48:20 -0700 | [diff] [blame] | 32 | $(SDEVENTPLUS_LIBS) \ |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 33 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 34 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| 35 | |
| 36 | test_CPPFLAGS = ${generic_cpp_flags} |
| 37 | test_CXXFLAGS = ${generic_cxx_flags} |
| 38 | test_LDFLAGS = ${generic_ld_flags} |
| 39 | |
| 40 | test_dns_updater_CPPFLAGS = ${generic_cpp_flags} |
| 41 | test_dns_updater_CXXFLAGS = ${generic_cxx_flags} |
| 42 | test_dns_updater_LDFLAGS = ${generic_ld_flags} |
Ratan Gupta | 594123d | 2017-05-16 22:48:35 +0530 | [diff] [blame] | 43 | |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 44 | test_watch_CPPFLAGS = ${generic_cpp_flags} |
| 45 | test_watch_CXXFLAGS = ${generic_cxx_flags} |
| 46 | test_watch_LDFLAGS = ${generic_ld_flags} |
| 47 | |
Ratan Gupta | eaefe58 | 2017-08-03 13:47:42 +0530 | [diff] [blame] | 48 | test_LDADD = $(top_builddir)/ethernet_interface.o \ |
| 49 | $(top_builddir)/network_manager.o \ |
| 50 | $(top_builddir)/network_config.o \ |
| 51 | $(top_builddir)/ipaddress.o \ |
| 52 | $(top_builddir)/routing_table.o \ |
| 53 | $(top_builddir)/util.o \ |
Nagaraju Goruganti | 067ca2d | 2018-01-17 01:12:00 -0600 | [diff] [blame] | 54 | $(top_builddir)/rtnetlink_server.o \ |
Ratan Gupta | eaefe58 | 2017-08-03 13:47:42 +0530 | [diff] [blame] | 55 | $(top_builddir)/system_configuration.o \ |
| 56 | $(top_builddir)/dhcp_configuration.o \ |
| 57 | $(top_builddir)/config_parser.o \ |
Ratan Gupta | 3d3e4fc | 2017-07-25 13:38:19 +0530 | [diff] [blame] | 58 | $(top_builddir)/vlan_interface.o \ |
Ratan Gupta | 8ab1792 | 2017-05-25 13:07:05 +0530 | [diff] [blame] | 59 | $(top_builddir)/xyz/openbmc_project/Network/VLAN/Create/phosphor_network_manager-server.o \ |
| 60 | $(top_builddir)/xyz/openbmc_project/Network/IP/Create/phosphor_network_manager-server.o |
Vishwanatha Subbanna | f00182e | 2017-10-16 19:08:59 +0530 | [diff] [blame] | 61 | |
| 62 | test_dns_updater_LDADD = $(top_builddir)/dns_updater.o |
Vishwanatha Subbanna | ca4ce1b | 2017-10-16 23:17:18 +0530 | [diff] [blame] | 63 | test_watch_LDADD = $(top_builddir)/watch.o |