blob: 06b7bb27eee6a0749c2820d1aa86c50350b35eba [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
6# Build/add utest to test suite
7check_PROGRAMS = utest
8utest_CPPFLAGS = -Igtest \
9 $(GTEST_CPPFLAGS) \
10 $(AM_CPPFLAGS) \
11 $(PHOSPHOR_LOGGING_CFLAGS) \
12 $(SDBUSPLUS_CFLAGS)
13
14utest_CXXFLAGS = $(PTHREAD_CFLAGS)
15
16utest_LDFLAGS = -lgtest_main \
17 -lgtest \
18 $(PTHREAD_LIBS) \
19 $(OESDK_TESTCASE_FLAGS) \
20 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
21 $(PHOSPHOR_LOGGING_LIBS) \
22 $(SDBUSPLUS_LIBS) \
23 -lcrypt \
24 -lstdc++fs
25
26utest_SOURCES = utest.cpp
27utest_LDADD = $(top_builddir)/user.o
Nagaraju Gorugantid514e5d2018-11-08 03:07:25 -060028
29check_PROGRAMS += ldap_config_test
30ldap_config_test_CPPFLAGS = $(utest_CPPFLAGS)
31ldap_config_test_CXXFLAGS = $(utest_CXXFLAGS)
32ldap_config_test_LDFLAGS = $(utest_LDFLAGS) \
33 -lldap \
34 -lgmock
35ldap_config_test_SOURCES = ldap_config_test.cpp utils_test.cpp
Ratan Gupta95a29312019-02-18 20:34:10 +053036ldap_config_test_LDADD = $(top_builddir)/phosphor-ldap-config/ldap_configuration.o \
37 $(top_builddir)/phosphor-ldap-config/utils.o \
38 $(top_builddir)/phosphor-ldap-config/ldap_serialize.o
Tom Josephf870b482018-11-19 09:55:45 +053039
40check_PROGRAMS += ldap_mapper_test
41ldap_mapper_test_CPPFLAGS = $(utest_CPPFLAGS)
42ldap_mapper_test_CXXFLAGS = $(utest_CXXFLAGS)
43ldap_mapper_test_LDFLAGS = $(utest_LDFLAGS)
44ldap_mapper_test_SOURCES = ldap_mapper_test.cpp
45ldap_mapper_test_LDADD = $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_entry.o \
46 $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_mgr.o \
47 $(top_builddir)/phosphor-ldap-mapper/ldap_mapper_serialize.o