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) \ |
Gunnar Mills | 703131f | 2020-10-28 14:26:33 -0500 | [diff] [blame] | 21 | -lcrypt |
Vishwanatha Subbanna | 035a969 | 2017-09-15 18:50:43 +0530 | [diff] [blame] | 22 | |
Sumanth Bhat | 736648e | 2019-03-06 14:19:25 +0530 | [diff] [blame] | 23 | check_PROGRAMS = ldap_config_test |
| 24 | ldap_config_test_CPPFLAGS = $(cppflags) |
| 25 | ldap_config_test_CXXFLAGS = $(cxxflags) |
| 26 | ldap_config_test_LDFLAGS = $(ldflags) \ |
Nagaraju Goruganti | d514e5d | 2018-11-08 03:07:25 -0600 | [diff] [blame] | 27 | -lldap \ |
| 28 | -lgmock |
| 29 | ldap_config_test_SOURCES = ldap_config_test.cpp utils_test.cpp |
Ratan Gupta | 37fb3fe | 2019-04-13 12:54:18 +0530 | [diff] [blame] | 30 | ldap_config_test_LDADD = $(top_builddir)/phosphor-ldap-config/ldap_config.o \ |
Ratan Gupta | 95a2931 | 2019-02-18 20:34:10 +0530 | [diff] [blame] | 31 | $(top_builddir)/phosphor-ldap-config/utils.o \ |
Ratan Gupta | 7b04c35 | 2019-04-12 21:46:29 +0530 | [diff] [blame] | 32 | $(top_builddir)/phosphor-ldap-config/ldap_config_mgr.o \ |
| 33 | $(top_builddir)/phosphor-ldap-config/ldap_mapper_entry.o \ |
| 34 | $(top_builddir)/phosphor-ldap-config/ldap_mapper_serialize.o |
Tom Joseph | f870b48 | 2018-11-19 09:55:45 +0530 | [diff] [blame] | 35 | |
raviteja-b | 8cc4405 | 2019-02-27 23:29:36 -0600 | [diff] [blame] | 36 | check_PROGRAMS += user_mgr_test |
| 37 | user_mgr_test_CPPFLAGS = $(cppflags) |
| 38 | user_mgr_test_CXXFLAGS = $(cxxflags) $(GTEST_CPPFLAGS) |
| 39 | user_mgr_test_LDFLAGS = $(ldflags) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock |
| 40 | user_mgr_test_SOURCES = user_mgr_test.cpp |
| 41 | user_mgr_test_LDADD = $(top_builddir)/user_mgr.o \ |
| 42 | $(top_builddir)/users.o |