blob: 112b404dfe0424baba1a5cfa50a7b27563290ccf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
|
AM_CPPFLAGS = \
-Wall \
-I$(top_srcdir)/src \
-I. \
-DLOCALEDIR=\"$(localedir)\" \
-DVARDIR=\"$(localstatedir)\" \
$(DBUS_CFLAGS) \
$(GLIB2_CFLAGS) \
$(NULL)
SSSD_LIBS = \
$(TALLOC_LIBS) \
$(TEVENT_LIBS) \
$(POPT_LIBS) \
$(LDB_LIBS) \
$(DBUS_LIBS) \
$(PCRE_LIBS) \
$(INI_CONFIG_LIBS) \
$(COLLECTION_LIBS) \
$(DHASH_LIBS) \
$(SSS_CRYPT_LIBS) \
$(OPENLDAP_LIBS) \
$(TDB_LIBS)
AM_TESTS_ENVIRONMENT = \
SSSD_SRCDIR=$(top_srcdir) \
. $(top_srcdir)/src/tests/cwrap/cwrap_test_setup.sh; \
$(NULL)
check_PROGRAMS = \
become_user-tests \
server-tests \
usertools-tests \
$(NULL)
PYTHON_TESTS = \
test_krb5_child.py \
$(NULL)
check_LTLIBRARIES = \
libsss_test_common.la
TESTS = \
$(check_PROGRAMS) \
$(NULL)
libsss_test_common_la_SOURCES = \
../common_tev.c \
../common_dom.c \
../leak_check.c \
../common.c
libsss_test_common_la_LIBADD = \
$(TALLOC_LIBS) \
$(TEVENT_LIBS)
become_user_tests_SOURCES = \
test_become_user.c \
$(NULL)
become_user_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
become_user_tests_LDADD = \
$(POPT_LIBS) \
$(CMOCKA_LIBS) \
$(LIBCAPNG_LIBS) \
$(abs_top_builddir)/libsss_debug.la \
libsss_test_common.la \
$(NULL)
server_tests_SOURCES = \
test_server.c \
../../../src/util/server.c \
../../../src/util/become_user.c \
../../../src/util/backup_file.c \
../../../src/util/domain_info_utils.c \
../../../src/util/atomic_io.c \
../../../src/util/signal.c \
../../../src/util/util.c \
../../../src/util/strtonum.c \
../../../src/util/util_errors.c \
../../../src/util/safe-format-string.c \
../../../src/util/sss_tc_utf8.c \
../../../src/util/sss_utf8.c \
../../../src/util/usertools.c \
../../../src/confdb/confdb.c \
../../../src/db/sysdb.c \
../../../src/db/sysdb_upgrade.c \
../../../src/db/sysdb_ops.c \
../../../src/db/sysdb_search.c \
../../../src/db/sysdb_autofs.c \
../../../src/db/sysdb_services.c \
$(NULL)
server_tests_CFLAGS = \
$(AM_CFLAGS) \
$(LIBCAPNG_CFLAGS) \
-DTEST_DB_PATH=\"server_tests\" \
-DTEST_PID_PATH=\"server_tests\" \
-DUNIT_TESTING \
$(NULL)
server_tests_LDADD = \
$(CMOCKA_LIBS) \
$(LIBCAPNG_LIBS) \
$(UNICODE_LIBS) \
$(LIBCAPNG_LIBS) \
$(SSSD_LIBS) \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_crypt.la \
libsss_test_common.la \
$(NULL)
usertools_tests_SOURCES = \
test_usertools.c \
../../../src/util/domain_info_utils.c \
../../../src/util/safe-format-string.c \
../../../src/util/usertools.c \
../../../src/util/strtonum.c \
../../../src/util/backup_file.c \
../../../src/util/atomic_io.c \
../../../src/util/util.c \
../../../src/util/util_errors.c \
../../../src/util/sss_tc_utf8.c \
../../../src/util/sss_utf8.c \
../../../src/confdb/confdb.c \
../../../src/db/sysdb.c \
../../../src/db/sysdb_upgrade.c \
../../../src/db/sysdb_autofs.c \
../../../src/db/sysdb_search.c \
../../../src/db/sysdb_services.c \
../../../src/db/sysdb_ops.c \
$(NULL)
usertools_tests_CFLAGS = \
$(AM_CFLAGS) \
$(NULL)
usertools_tests_LDADD = \
$(CMOCKA_LIBS) \
$(UNICODE_LIBS) \
$(SSSD_LIBS) \
$(abs_top_builddir)/libsss_debug.la \
$(abs_top_builddir)/libsss_crypt.la \
libsss_test_common.la \
$(NULL)
tests: $(check_PROGRAMS)
|