3 provision
= bld
.pyembed_libname('PROVISION')
4 samba_net_join
= bld
.pyembed_libname('samba-net-join')
6 bld
.SAMBA_SUBSYSTEM('TORTURE_UTIL',
9 deps
='smbclient-raw CMDLINE_S4 CREDENTIALS_KRB5'
13 bld
.SAMBA_MODULE('TORTURE_BASIC',
14 source
='basic/base.c basic/misc.c basic/scanner.c basic/utable.c basic/charset.c basic/mangle_test.c basic/denytest.c basic/aliases.c basic/locking.c basic/secleak.c basic/rename.c basic/dir.c basic/delete.c basic/unlink.c basic/disconnect.c basic/delaywrite.c basic/attr.c basic/properties.c',
15 subsystem
='smbtorture',
16 deps
='LIBCLI_SMB TORTURE_UTIL smbclient-raw TORTURE_RAW',
18 autoproto
='basic/proto.h',
19 init_function
='torture_base_init',
20 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
24 bld
.SAMBA_MODULE('TORTURE_RAW',
25 source
='raw/qfsinfo.c raw/qfileinfo.c raw/setfileinfo.c raw/search.c raw/close.c raw/open.c raw/mkdir.c raw/oplock.c raw/notify.c raw/mux.c raw/ioctl.c raw/chkpath.c raw/unlink.c raw/read.c raw/context.c raw/session.c raw/write.c raw/lock.c raw/pingpong.c raw/lockbench.c raw/lookuprate.c raw/tconrate.c raw/openbench.c raw/rename.c raw/eas.c raw/streams.c raw/acls.c raw/seek.c raw/samba3hide.c raw/samba3misc.c raw/composite.c raw/raw.c raw/offline.c',
26 autoproto
='raw/proto.h',
27 subsystem
='smbtorture',
28 init_function
='torture_raw_init',
29 deps
='LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE TORTURE_UTIL',
31 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
35 bld
.RECURSE('winbind')
36 bld
.RECURSE('libnetapi')
37 bld
.RECURSE('libsmbclient')
40 ntvfs_specific
= dict(source
='', deps
='')
42 # Yes, the spoolss_notify test uses the NTVFS file server to run the SMB server expected
43 # to handle the RPC callback!
44 if bld
.CONFIG_SET('WITH_NTVFS_FILESERVER'):
45 ntvfs_specific
['source'] += ' rpc/spoolss_notify.c'
46 ntvfs_specific
['deps'] += ' SMB_SERVER dcerpc_server ntvfs'
48 bld
.SAMBA_SUBSYSTEM('TORTURE_NDR',
78 autoproto
='ndr/proto.h',
79 deps
='torture krb5samba',
80 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
83 bld
.SAMBA_SUBSYSTEM('IREMOTEWINSPOOL_COMMON',
84 source
='rpc/iremotewinspool_common.c',
86 enabled
=bld
.PYTHON_BUILD_IS_ENABLED())
88 bld
.SAMBA_MODULE('torture_rpc',
99 rpc/drsuapi_cracknames.c
106 rpc/samr_accessmask.c
107 rpc/samr_handletype.c
123 rpc/netlogon_crypto.c
142 rpc/iremotewinspool.c
143 rpc/iremotewinspool_driver.c
145 rpc/backupkey.c''' + ntvfs_specific
['source'],
146 autoproto
='rpc/proto.h',
147 subsystem
='smbtorture',
148 init_function
='torture_rpc_init',
188 IREMOTEWINSPOOL_COMMON
192 ''' % samba_net_join
+ ntvfs_specific
['deps'],
193 internal_module
=True,
194 enabled
=bld
.PYTHON_BUILD_IS_ENABLED())
199 bld
.SAMBA_MODULE('TORTURE_RAP',
200 source
='rap/rap.c rap/rpc.c rap/printing.c rap/sam.c',
201 autoproto
='rap/proto.h',
202 subsystem
='smbtorture',
203 init_function
='torture_rap_init',
204 deps
='TORTURE_UTIL LIBCLI_SMB NDR_RAP LIBCLI_RAP',
205 internal_module
=True,
206 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
209 bld
.SAMBA_MODULE('TORTURE_DFS',
210 source
='dfs/domaindfs.c dfs/common.c',
211 autoproto
='dfs/proto.h',
212 subsystem
='smbtorture',
213 init_function
='torture_dfs_init',
214 deps
='TORTURE_UTIL LIBCLI_SMB',
219 bld
.SAMBA_MODULE('TORTURE_AUTH',
220 source
='auth/ntlmssp.c auth/pac.c auth/smbencrypt.c',
221 autoproto
='auth/proto.h',
222 subsystem
='smbtorture',
223 deps
='LIBCLI_SMB gensec auth4 authkrb5 smbpasswdparser torture com_err gensec_ntlmssp CMDLINE_S4',
230 bld
.SAMBA_MODULE('TORTURE_NBENCH',
231 source
='nbench/nbio.c nbench/nbench.c',
232 autoproto
='nbench/proto.h',
233 subsystem
='smbtorture',
234 init_function
='torture_nbench_init',
240 bld
.SAMBA_MODULE('TORTURE_UNIX',
241 source
='unix/unix.c unix/whoami.c unix/unix_info2.c',
242 autoproto
='unix/proto.h',
243 subsystem
='smbtorture',
244 init_function
='torture_unix_init',
250 bld
.SAMBA_MODULE('TORTURE_LDAP',
255 ldap/uptodatevector.c
261 ldap/session_expiry.c
263 subsystem
='smbtorture',
264 deps
='cli-ldap cli_cldap samdb torture ldbsamba CMDLINE_S4',
265 internal_module
=True,
266 autoproto
='ldap/proto.h',
267 init_function
='torture_ldap_init'
271 bld
.SAMBA_MODULE('TORTURE_NBT',
272 source
='nbt/query.c nbt/register.c nbt/wins.c nbt/winsbench.c nbt/winsreplication.c nbt/dgram.c nbt/nbt.c',
273 autoproto
='nbt/proto.h',
274 subsystem
='smbtorture',
275 init_function
='torture_nbt_init',
276 deps
='LIBCLI_SMB cli-nbt LIBCLI_DGRAM LIBCLI_WREPL torture_rpc',
277 internal_module
=True,
278 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
282 bld
.SAMBA_MODULE('TORTURE_NET',
283 source
='libnet/libnet.c libnet/utils.c libnet/userinfo.c libnet/userman.c libnet/groupinfo.c libnet/groupman.c libnet/domain.c libnet/libnet_lookup.c libnet/libnet_user.c libnet/libnet_group.c libnet/libnet_share.c libnet/libnet_rpc.c libnet/libnet_domain.c libnet/libnet_BecomeDC.c',
284 autoproto
='libnet/proto.h',
285 subsystem
='smbtorture',
286 init_function
='torture_net_init',
287 deps
='%s torture_rpc %s' % (provision
, samba_net_join
),
288 internal_module
=True,
289 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
293 bld
.SAMBA_MODULE('TORTURE_NTP',
294 source
='ntp/ntp_signd.c',
295 autoproto
='ntp/proto.h',
296 subsystem
='smbtorture',
297 init_function
='torture_ntp_init',
299 internal_module
=True,
300 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
303 bld
.SAMBA_MODULE('TORTURE_VFS',
304 source
='vfs/vfs.c vfs/fruit.c vfs/acl_xattr.c',
305 subsystem
='smbtorture',
306 deps
='LIBCLI_SMB TORTURE_UTIL smbclient-raw TORTURE_RAW',
307 internal_module
=True,
308 autoproto
='vfs/proto.h',
309 init_function
='torture_vfs_init'
312 TORTURE_MODULES
= 'TORTURE_BASIC TORTURE_RAW torture_rpc TORTURE_RAP TORTURE_AUTH TORTURE_NBENCH TORTURE_UNIX TORTURE_LDAP TORTURE_NBT TORTURE_NET TORTURE_NTP torture_registry TORTURE_VFS'
314 bld
.SAMBA_SUBSYSTEM('torturemain',
315 source
='smbtorture.c torture.c shell.c',
316 subsystem_name
='smbtorture',
317 deps
='torture dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES
,
318 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
321 bld
.SAMBA_BINARY('smbtorture',
323 manpages
='man/smbtorture.1',
324 private_headers
='smbtorture.h',
325 deps
='torturemain torture popt CMDLINE_S4 dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES
,
327 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()
330 bld
.SAMBA_BINARY('gentest',
332 manpages
='man/gentest.1',
333 deps
='samba-hostconfig samba-util popt CMDLINE_S4 LIBCLI_SMB smbclient-raw param_options'
337 bld
.SAMBA_BINARY('masktest',
339 manpages
='man/masktest.1',
340 deps
='samba-hostconfig samba-util popt CMDLINE_S4 LIBCLI_SMB param_options'
344 bld
.SAMBA_BINARY('locktest',
347 #ldflags='--coverage',
348 #cflags='--coverage',
350 manpages
='man/locktest.1',
351 deps
='popt CMDLINE_S4 samba-util LIBCLI_SMB samba-hostconfig param_options',
354 bld
.SAMBA_MODULE('TORTURE_DSDB',
355 source
="../../source4/dsdb/common/tests/dsdb.c",
356 autoproto
='dsdb_proto.h',
357 subsystem
='smbtorture',
358 init_function
='torture_dsdb_init',
359 deps
="TORTURE_UTIL samba-util",
360 internal_module
=True,
361 enabled
=bld
.PYTHON_BUILD_IS_ENABLED()