r16044: Create a samba3 specific file in torture/rpc. The tests in there survive
[Samba.git] / source / torture / config.mk
blob71679418c4df2fabc6e4240fb76c67c69e7882ae
1 # TORTURE subsystem
2 [LIBRARY::torture]
3 DESCRIPTION = Samba torture (test) suite
4 SO_VERSION = 0
5 VERSION = 0.0.1
6 PUBLIC_HEADERS = torture.h
7 PUBLIC_PROTO_HEADER = proto.h
8 OBJ_FILES = \
9 torture.o
10 PUBLIC_DEPENDENCIES = \
11 TORTURE_UTIL \
12 TORTURE_RAW \
13 TORTURE_SMB2 \
14 TORTURE_RAP \
15 TORTURE_AUTH \
16 TORTURE_LOCAL \
17 TORTURE_NBENCH \
18 TORTURE_LDAP \
19 TORTURE_NBT \
20 LIBSAMBA-CONFIG \
21 LIBSAMBA-UTIL
23 [SUBSYSTEM::TORTURE_UTIL]
24 OBJ_FILES = torture_util.o
25 PUBLIC_PROTO_HEADER = util.h
26 PUBLIC_DEPENDENCIES = POPT_CREDENTIALS
28 [SUBSYSTEM::TORTURE_UI]
29 OBJ_FILES = ui.o
30 PUBLIC_HEADERS = ui.h
31 PUBLIC_DEPENDENCIES = LIBTALLOC
33 #################################
34 # Start SUBSYSTEM TORTURE_BASIC
35 [MODULE::TORTURE_BASIC]
36 SUBSYSTEM = torture
37 INIT_FUNCTION = torture_base_init
38 PRIVATE_PROTO_HEADER = \
39 basic/proto.h
40 OBJ_FILES = \
41 basic/base.o \
42 basic/scanner.o \
43 basic/utable.o \
44 basic/charset.o \
45 basic/mangle_test.o \
46 basic/denytest.o \
47 basic/aliases.o \
48 basic/locking.o \
49 basic/secleak.o \
50 basic/rename.o \
51 basic/dir.o \
52 basic/delete.o \
53 basic/unlink.o \
54 basic/disconnect.o \
55 basic/delaywrite.o \
56 basic/attr.o \
57 basic/properties.o
58 PUBLIC_DEPENDENCIES = \
59 LIBCLI_SMB POPT_CREDENTIALS
60 # End SUBSYSTEM TORTURE_BASIC
61 #################################
63 #################################
64 # Start SUBSYSTEM TORTURE_RAW
65 [SUBSYSTEM::TORTURE_RAW]
66 PRIVATE_PROTO_HEADER = \
67 raw/proto.h
68 OBJ_FILES = \
69 raw/qfsinfo.o \
70 raw/qfileinfo.o \
71 raw/setfileinfo.o \
72 raw/search.o \
73 raw/close.o \
74 raw/open.o \
75 raw/mkdir.o \
76 raw/oplock.o \
77 raw/notify.o \
78 raw/mux.o \
79 raw/ioctl.o \
80 raw/chkpath.o \
81 raw/unlink.o \
82 raw/read.o \
83 raw/context.o \
84 raw/write.o \
85 raw/lock.o \
86 raw/rename.o \
87 raw/eas.o \
88 raw/streams.o \
89 raw/acls.o \
90 raw/seek.o \
91 raw/composite.o
92 PUBLIC_DEPENDENCIES = \
93 LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE \
94 POPT_CREDENTIALS
95 # End SUBSYSTEM TORTURE_RAW
96 #################################
98 include smb2/config.mk
100 [MODULE::torture_rpc]
101 # TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
102 OUTPUT_TYPE = INTEGRATED
103 SUBSYSTEM = torture
104 INIT_FUNCTION = torture_rpc_init
105 PRIVATE_PROTO_HEADER = \
106 rpc/proto.h
107 OBJ_FILES = \
108 rpc/join.o \
109 rpc/lsa.o \
110 rpc/lsa_lookup.o \
111 rpc/session_key.o \
112 rpc/echo.o \
113 rpc/dcom.o \
114 rpc/dfs.o \
115 rpc/drsuapi.o \
116 rpc/drsuapi_cracknames.o \
117 rpc/dssync.o \
118 rpc/spoolss.o \
119 rpc/unixinfo.o \
120 rpc/samr.o \
121 rpc/wkssvc.o \
122 rpc/srvsvc.o \
123 rpc/svcctl.o \
124 rpc/atsvc.o \
125 rpc/eventlog.o \
126 rpc/epmapper.o \
127 rpc/winreg.o \
128 rpc/initshutdown.o \
129 rpc/oxidresolve.o \
130 rpc/remact.o \
131 rpc/mgmt.o \
132 rpc/scanner.o \
133 rpc/autoidl.o \
134 rpc/countcalls.o \
135 rpc/testjoin.o \
136 rpc/schannel.o \
137 rpc/netlogon.o \
138 rpc/samlogon.o \
139 rpc/samsync.o \
140 rpc/rot.o \
141 rpc/bind.o \
142 rpc/dssetup.o \
143 rpc/alter_context.o \
144 rpc/bench.o \
145 rpc/samba3rpc.o \
146 rpc/rpc.o \
147 rpc/async_bind.o
148 PUBLIC_DEPENDENCIES = \
149 NDR_TABLE RPC_NDR_UNIXINFO RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
150 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
151 RPC_NDR_MGMT RPC_NDR_NETLOGON RPC_NDR_ATSVC RPC_NDR_DRSUAPI \
152 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
153 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
154 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER LIBSAMBA-NET \
155 LIBCLI_AUTH POPT_CREDENTIALS
157 #################################
158 # Start SUBSYSTEM TORTURE_RAP
159 [SUBSYSTEM::TORTURE_RAP]
160 PRIVATE_PROTO_HEADER = \
161 rap/proto.h
162 OBJ_FILES = \
163 rap/rap.o
164 PUBLIC_DEPENDENCIES = \
165 LIBCLI_SMB
166 # End SUBSYSTEM TORTURE_RAP
167 #################################
169 #################################
170 # Start SUBSYSTEM TORTURE_AUTH
171 [SUBSYSTEM::TORTURE_AUTH]
172 PRIVATE_PROTO_HEADER = \
173 auth/proto.h
174 OBJ_FILES = \
175 auth/ntlmssp.o \
176 auth/pac.o
177 PUBLIC_DEPENDENCIES = \
178 LIBCLI_SMB gensec auth LIBSAMBA3 KERBEROS \
179 POPT_CREDENTIALS
180 # End SUBSYSTEM TORTURE_AUTH
181 #################################
183 include local/config.mk
185 #################################
186 # Start SUBSYSTEM TORTURE_NBENCH
187 [SUBSYSTEM::TORTURE_NBENCH]
188 PRIVATE_PROTO_HEADER = \
189 nbench/proto.h
190 OBJ_FILES = \
191 nbench/nbio.o \
192 nbench/nbench.o
193 # End SUBSYSTEM TORTURE_NBENCH
194 #################################
196 #################################
197 # Start SUBSYSTEM TORTURE_LDAP
198 [SUBSYSTEM::TORTURE_LDAP]
199 PRIVATE_PROTO_HEADER = \
200 ldap/proto.h
201 OBJ_FILES = \
202 ldap/common.o \
203 ldap/basic.o \
204 ldap/schema.o \
205 ldap/cldap.o \
206 ldap/cldapbench.o
207 PUBLIC_DEPENDENCIES = \
208 LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS
209 # End SUBSYSTEM TORTURE_LDAP
210 #################################
212 #################################
213 # Start SUBSYSTEM TORTURE_NBT
214 [SUBSYSTEM::TORTURE_NBT]
215 PRIVATE_PROTO_HEADER = \
216 nbt/proto.h
217 OBJ_FILES = \
218 nbt/query.o \
219 nbt/register.o \
220 nbt/wins.o \
221 nbt/winsbench.o \
222 nbt/winsreplication.o \
223 nbt/dgram.o \
224 nbt/browse.o
225 PUBLIC_DEPENDENCIES = \
226 LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL
227 # End SUBSYSTEM TORTURE_NBT
228 #################################
230 #################################
231 # Start SUBSYSTEM TORTURE_NET
232 [MODULE::TORTURE_NET]
233 SUBSYSTEM = torture
234 INIT_FUNCTION = torture_net_init
235 PRIVATE_PROTO_HEADER = \
236 libnet/proto.h
237 OBJ_FILES = \
238 libnet/libnet.o \
239 libnet/userinfo.o \
240 libnet/userman.o \
241 libnet/domain.o \
242 libnet/libnet_lookup.o \
243 libnet/libnet_user.o \
244 libnet/libnet_share.o \
245 libnet/libnet_rpc.o
246 PUBLIC_DEPENDENCIES = \
247 LIBSAMBA-NET \
248 POPT_CREDENTIALS
249 # End SUBSYSTEM TORTURE_NET
250 #################################
252 #################################
253 # Start BINARY smbtorture
254 [BINARY::smbtorture]
255 INSTALLDIR = BINDIR
256 OBJ_FILES = \
257 smbtorture.o
258 PRIVATE_DEPENDENCIES = \
259 torture \
260 LIBPOPT \
261 POPT_SAMBA \
262 POPT_CREDENTIALS
263 MANPAGE = man/smbtorture.1
264 # End BINARY smbtorture
265 #################################
267 #################################
268 # Start BINARY gentest
269 [BINARY::gentest]
270 INSTALLDIR = BINDIR
271 OBJ_FILES = \
272 gentest.o
273 PRIVATE_DEPENDENCIES = \
274 LIBSAMBA-CONFIG \
275 LIBSAMBA-UTIL \
276 LIBPOPT \
277 POPT_SAMBA \
278 POPT_CREDENTIALS \
279 LIBCLI_SMB \
280 LIBCLI_RAW
281 MANPAGE = man/gentest.1
282 # End BINARY gentest
283 #################################
285 #################################
286 # Start BINARY masktest
287 [BINARY::masktest]
288 INSTALLDIR = BINDIR
289 OBJ_FILES = \
290 masktest.o
291 PRIVATE_DEPENDENCIES = \
292 LIBSAMBA-CONFIG \
293 LIBSAMBA-UTIL \
294 LIBPOPT \
295 POPT_SAMBA \
296 POPT_CREDENTIALS \
297 LIBCLI_SMB
298 MANPAGE = man/masktest.1
299 # End BINARY masktest
300 #################################
302 #################################
303 # Start BINARY locktest
304 [BINARY::locktest]
305 INSTALLDIR = BINDIR
306 OBJ_FILES = \
307 locktest.o
308 PRIVATE_DEPENDENCIES = \
309 LIBCLI_SMB \
310 LIBSAMBA-CONFIG \
311 LIBSAMBA-UTIL
312 MANPAGE = man/locktest.1
313 # End BINARY locktest
314 #################################
316 GCOV_FLAGS = -ftest-coverage -fprofile-arcs
317 GCOV_LIBS = -lgcov
319 gcov:
320 @$(MAKE) test \
321 CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
322 LD_FLAGS="$(LD_FLAGS) $(GCOV_FLAGS)" \
323 LIBS="$(LIBS) $(GCOV_LIBS)"
324 for I in $(sort $(dir $(ALL_OBJS))); \
325 do $(GCOV) -p -o $$I $$I/*.c; \
326 done