2010-03-28 01:48:49 +03:00
#!/usr/bin/env python
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('TORTURE_UTIL',
source='util_smb.c',
public_deps='torture POPT_CREDENTIALS',
deps='LIBCLI_RAW'
)
bld.SAMBA_MODULE('TORTURE_BASIC',
2010-03-17 12:12:16 +03:00
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',
2010-03-17 14:07:42 +03:00
subsystem='smbtorture',
deps='LIBCLI_SMB POPT_CREDENTIALS TORTURE_UTIL LIBCLI_RAW TORTURE_RAW',
2010-03-17 12:12:16 +03:00
internal_module=True,
2010-03-17 14:07:42 +03:00
autoproto='basic/proto.h',
init_function='torture_base_init'
)
bld.SAMBA_MODULE('TORTURE_RAW',
2010-03-17 12:12:16 +03:00
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/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',
2010-03-17 14:07:42 +03:00
autoproto='raw/proto.h',
subsystem='smbtorture',
init_function='torture_raw_init',
deps='LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE POPT_CREDENTIALS TORTURE_UTIL',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
2010-04-04 07:08:05 +04:00
bld.RECURSE('smb2')
bld.RECURSE('winbind')
bld.RECURSE('libnetapi')
bld.RECURSE('libsmbclient')
2010-03-17 14:07:42 +03:00
bld.SAMBA_SUBSYSTEM('TORTURE_NDR',
2010-09-14 19:27:55 +04:00
source='ndr/ndr.c ndr/winreg.c ndr/atsvc.c ndr/lsa.c ndr/epmap.c ndr/dfs.c ndr/netlogon.c ndr/drsuapi.c ndr/spoolss.c ndr/samr.c ndr/dfsblob.c ndr/drsblobs.c ndr/nbt.c ndr/ntlmssp.c',
2010-03-17 14:07:42 +03:00
autoproto='ndr/proto.h',
2010-10-11 02:49:13 +04:00
deps='torture'
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('torture_rpc',
2010-06-22 17:06:27 +04:00
source='rpc/join.c rpc/lsa.c rpc/forest_trust.c rpc/lsa_lookup.c rpc/session_key.c rpc/echo.c rpc/dfs.c rpc/drsuapi.c rpc/drsuapi_cracknames.c rpc/dsgetinfo.c rpc/spoolss.c rpc/spoolss_notify.c rpc/spoolss_win.c rpc/spoolss_access.c rpc/unixinfo.c rpc/samr.c rpc/samr_accessmask.c rpc/wkssvc.c rpc/srvsvc.c rpc/svcctl.c rpc/atsvc.c rpc/eventlog.c rpc/epmapper.c rpc/winreg.c rpc/initshutdown.c rpc/oxidresolve.c rpc/remact.c rpc/mgmt.c rpc/scanner.c rpc/autoidl.c rpc/countcalls.c rpc/testjoin.c rpc/schannel.c rpc/netlogon.c rpc/remote_pac.c rpc/samlogon.c rpc/samsync.c rpc/multi_bind.c rpc/dssetup.c rpc/alter_context.c rpc/bench.c rpc/samba3rpc.c rpc/rpc.c rpc/async_bind.c rpc/handles.c rpc/frsapi.c rpc/object_uuid.c rpc/ntsvcs.c rpc/browser.c rpc/bind.c',
2010-03-17 14:07:42 +03:00
autoproto='rpc/proto.h',
subsystem='smbtorture',
init_function='torture_rpc_init',
2010-10-24 22:26:09 +04:00
deps='ndr-table RPC_NDR_UNIXINFO dcerpc-samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL RPC_NDR_NETLOGON dcerpc-atsvc RPC_NDR_DRSUAPI RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_FRSAPI RPC_NDR_SPOOLSS RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER RPC_NDR_NTSVCS WB_HELPER samba-net LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_UTIL TORTURE_RAP dcerpc_server service process_model ntvfs RPC_NDR_BROWSER LIBCLI_DRSUAPI TORTURE_DFS',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
2010-04-04 07:08:05 +04:00
bld.RECURSE('drs')
2010-03-17 14:07:42 +03:00
bld.SAMBA_MODULE('TORTURE_RAP',
2010-05-07 17:45:23 +04:00
source='rap/rap.c rap/rpc.c rap/printing.c rap/sam.c',
2010-03-17 14:07:42 +03:00
autoproto='rap/proto.h',
subsystem='smbtorture',
init_function='torture_rap_init',
2010-04-29 01:08:14 +04:00
deps='TORTURE_UTIL LIBCLI_SMB NDR_RAP',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
2010-05-10 01:39:27 +04:00
bld.SAMBA_MODULE('TORTURE_DFS',
source='dfs/domaindfs.c dfs/common.c',
autoproto='dfs/proto.h',
subsystem='smbtorture',
init_function='torture_dfs_init',
deps='TORTURE_UTIL LIBCLI_SMB',
internal_module=True
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_MODULE('TORTURE_AUTH',
source='auth/ntlmssp.c auth/pac.c',
autoproto='auth/proto.h',
subsystem='smbtorture',
2010-10-30 04:46:20 +04:00
deps='LIBCLI_SMB gensec auth authkrb5 POPT_CREDENTIALS smbpasswd torture com_err gensec_ntlmssp',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
2010-04-04 07:08:05 +04:00
bld.RECURSE('local')
2010-03-17 14:07:42 +03:00
bld.SAMBA_MODULE('TORTURE_NBENCH',
source='nbench/nbio.c nbench/nbench.c',
autoproto='nbench/proto.h',
subsystem='smbtorture',
init_function='torture_nbench_init',
deps='TORTURE_UTIL',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('TORTURE_UNIX',
source='unix/unix.c unix/whoami.c unix/unix_info2.c',
autoproto='unix/proto.h',
subsystem='smbtorture',
init_function='torture_unix_init',
deps='TORTURE_UTIL',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('TORTURE_LDAP',
source='ldap/common.c ldap/basic.c ldap/schema.c ldap/uptodatevector.c ldap/cldap.c ldap/cldapbench.c ldap/ldap_sort.c ldap/nested_search.c',
subsystem='smbtorture',
2010-11-07 03:57:34 +03:00
deps='cli-ldap LIBCLI_CLDAP samdb POPT_CREDENTIALS torture ldbsamba',
2010-03-17 12:12:16 +03:00
internal_module=True,
2010-03-17 14:07:42 +03:00
autoproto='ldap/proto.h',
init_function='torture_ldap_init'
)
bld.SAMBA_MODULE('TORTURE_NBT',
source='nbt/query.c nbt/register.c nbt/wins.c nbt/winsbench.c nbt/winsreplication.c nbt/dgram.c nbt/nbt.c',
autoproto='nbt/proto.h',
subsystem='smbtorture',
init_function='torture_nbt_init',
2010-10-24 22:26:09 +04:00
deps='LIBCLI_SMB cli-nbt LIBCLI_DGRAM LIBCLI_WREPL torture_rpc',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('TORTURE_NET',
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',
autoproto='libnet/proto.h',
subsystem='smbtorture',
init_function='torture_net_init',
2010-10-24 05:41:59 +04:00
deps='samba-net POPT_CREDENTIALS torture_rpc PROVISION',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_MODULE('TORTURE_NTP',
source='ntp/ntp_signd.c',
autoproto='ntp/proto.h',
subsystem='smbtorture',
init_function='torture_ntp_init',
deps='POPT_CREDENTIALS torture_rpc',
2010-03-17 12:12:16 +03:00
internal_module=True
2010-03-17 14:07:42 +03:00
)
2010-03-17 12:12:16 +03:00
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'
2010-03-17 14:07:42 +03:00
2010-04-29 01:47:57 +04:00
bld.SAMBA_SUBSYSTEM('torturemain',
2010-03-20 07:24:15 +03:00
source='smbtorture.c torture.c shell.c',
2010-04-29 01:47:57 +04:00
subsystem_name='smbtorture',
deps='torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_BINARY('smbtorture',
2010-04-29 01:47:57 +04:00
source=[],
manpages='man/smbtorture.1',
public_headers='smbtorture.h',
deps='torturemain torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
2010-10-10 06:25:50 +04:00
pyembed=True
2010-04-29 01:47:57 +04:00
)
2010-03-17 14:07:42 +03:00
bld.SAMBA_BINARY('gentest',
source='gentest.c',
manpages='man/gentest.1',
2010-10-24 21:42:58 +04:00
deps='samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB LIBCLI_RAW'
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_BINARY('masktest',
source='masktest.c',
manpages='man/masktest.1',
2010-10-24 21:42:58 +04:00
deps='samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB'
2010-03-17 14:07:42 +03:00
)
bld.SAMBA_BINARY('locktest',
source='locktest.c',
# COV_TARGET='test',
2010-03-17 12:12:16 +03:00
#ldflags='--coverage',
#cflags='--coverage',
2010-03-17 14:07:42 +03:00
# GCOV='1',
2010-03-17 12:12:16 +03:00
manpages='man/locktest.1',
2010-10-24 21:42:58 +04:00
deps='popt POPT_SAMBA POPT_CREDENTIALS samba-util LIBCLI_SMB samba-hostconfig',
2010-03-17 14:07:42 +03:00
)