Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | # Run all 'check' test programs |
| 4 | TESTS = $(check_PROGRAMS) |
| 5 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 6 | cppflags = -Igtest \ |
| 7 | $(GTEST_CPPFLAGS) \ |
| 8 | $(AM_CPPFLAGS) \ |
| 9 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 10 | $(SDBUSPLUS_CFLAGS) |
Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame] | 11 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 12 | cxxflags = $(PTHREAD_CFLAGS) |
Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame] | 13 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 14 | ldflags = -lgtest_main \ |
| 15 | -lgtest \ |
| 16 | $(PTHREAD_LIBS) \ |
| 17 | $(OESDK_TESTCASE_FLAGS) \ |
| 18 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 19 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 20 | $(SDBUSPLUS_LIBS) \ |
| 21 | -lcrypt \ |
| 22 | -lstdc++fs |
Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame] | 23 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 24 | check_PROGRAMS = ldap_config_test |
| 25 | ldap_config_test_CPPFLAGS = $(cppflags) |
| 26 | ldap_config_test_CXXFLAGS = $(cxxflags) |
| 27 | ldap_config_test_LDFLAGS = $(ldflags) \ |
Nagaraju Goruganti | d514e5d | 2018-11-08 03:07:25 -0600 | [diff] [blame] | 28 | -lldap \ |
| 29 | -lgmock |
| 30 | ldap_config_test_SOURCES = ldap_config_test.cpp utils_test.cpp |
Ratan Gupta | 37fb3fe | 2019-04-13 12:54:18 +0530 | [diff] [blame] | 31 | ldap_config_test_LDADD = $(top_builddir)/phosphor-ldap-config/ldap_config.o \ |
Ratan Gupta | 95a2931 | 2019-02-18 20:34:10 +0530 | [diff] [blame] | 32 | $(top_builddir)/phosphor-ldap-config/utils.o \ |
Ratan Gupta | 37fb3fe | 2019-04-13 12:54:18 +0530 | [diff] [blame] | 33 | $(top_builddir)/phosphor-ldap-config/ldap_config_serialize.o \ |
Ratan Gupta | e1f4db6 | 2019-04-11 18:57:42 +0530 | [diff] [blame] | 34 | $(top_builddir)/phosphor-ldap-config/ldap_config_mgr.o |
Tom Joseph | f870b48 | 2018-11-19 09:55:45 +0530 | [diff] [blame] | 35 | |
| 36 | check_PROGRAMS += ldap_mapper_test |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 37 | ldap_mapper_test_CPPFLAGS = $(cppflags) |
| 38 | ldap_mapper_test_CXXFLAGS = $(cxxflags) |
| 39 | ldap_mapper_test_LDFLAGS = $(ldflags) |
Tom Joseph | f870b48 | 2018-11-19 09:55:45 +0530 | [diff] [blame] | 40 | ldap_mapper_test_SOURCES = ldap_mapper_test.cpp |
| 41 | ldap_mapper_test_LDADD = $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_entry.o \ |
| 42 | $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_mgr.o \ |
| 43 | $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_serialize.o |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame^] | 44 | |
| 45 | check_PROGRAMS += user_mgr_test |
| 46 | user_mgr_test_CPPFLAGS = $(cppflags) |
| 47 | user_mgr_test_CXXFLAGS = $(cxxflags) $(GTEST_CPPFLAGS) |
| 48 | user_mgr_test_LDFLAGS = $(ldflags) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock |
| 49 | user_mgr_test_SOURCES = user_mgr_test.cpp |
| 50 | user_mgr_test_LDADD = $(top_builddir)/user_mgr.o \ |
| 51 | $(top_builddir)/users.o |