blob: 52ad53a173824b428f9d883a1ea5a629aeaec772 [file] [log] [blame]
Vishwanatha Subbanna035a9692017-09-15 18:50:43 +05301AM_CPPFLAGS = -I$(top_srcdir)
2
3# Run all 'check' test programs
4TESTS = $(check_PROGRAMS)
5
Sumanth Bhat736648e2019-03-06 14:19:25 +05306cppflags = -Igtest \
7 $(GTEST_CPPFLAGS) \
8 $(AM_CPPFLAGS) \
9 $(PHOSPHOR_LOGGING_CFLAGS) \
10 $(SDBUSPLUS_CFLAGS)
Vishwanatha Subbanna035a9692017-09-15 18:50:43 +053011
Sumanth Bhat736648e2019-03-06 14:19:25 +053012cxxflags = $(PTHREAD_CFLAGS)
Vishwanatha Subbanna035a9692017-09-15 18:50:43 +053013
Sumanth Bhat736648e2019-03-06 14:19:25 +053014ldflags = -lgtest_main \
15 -lgtest \
16 $(PTHREAD_LIBS) \
17 $(OESDK_TESTCASE_FLAGS) \
18 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
19 $(PHOSPHOR_LOGGING_LIBS) \
20 $(SDBUSPLUS_LIBS) \
Gunnar Mills703131f2020-10-28 14:26:33 -050021 -lcrypt
Vishwanatha Subbanna035a9692017-09-15 18:50:43 +053022
Sumanth Bhat736648e2019-03-06 14:19:25 +053023check_PROGRAMS = ldap_config_test
24ldap_config_test_CPPFLAGS = $(cppflags)
25ldap_config_test_CXXFLAGS = $(cxxflags)
26ldap_config_test_LDFLAGS = $(ldflags) \
Nagaraju Gorugantid514e5d2018-11-08 03:07:25 -060027 -lldap \
28 -lgmock
29ldap_config_test_SOURCES = ldap_config_test.cpp utils_test.cpp
Ratan Gupta37fb3fe2019-04-13 12:54:18 +053030ldap_config_test_LDADD = $(top_builddir)/phosphor-ldap-config/ldap_config.o \
Ratan Gupta95a29312019-02-18 20:34:10 +053031 $(top_builddir)/phosphor-ldap-config/utils.o \
Ratan Gupta7b04c352019-04-12 21:46:29 +053032 $(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 Josephf870b482018-11-19 09:55:45 +053035
raviteja-b8cc44052019-02-27 23:29:36 -060036check_PROGRAMS += user_mgr_test
37user_mgr_test_CPPFLAGS = $(cppflags)
38user_mgr_test_CXXFLAGS = $(cxxflags) $(GTEST_CPPFLAGS)
39user_mgr_test_LDFLAGS = $(ldflags) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock
40user_mgr_test_SOURCES = user_mgr_test.cpp
41user_mgr_test_LDADD = $(top_builddir)/user_mgr.o \
42 $(top_builddir)/users.o