selftest: Add tests for the dlz_bind9 module
[samba.git] / source4 / torture / wscript_build
1 #!/usr/bin/env python
2
3
4 bld.SAMBA_SUBSYSTEM('TORTURE_UTIL',
5         source='util_smb.c',
6         public_deps='torture POPT_CREDENTIALS',
7         deps='smbclient-raw'
8         )
9
10
11 bld.SAMBA_MODULE('TORTURE_BASIC',
12         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',
13         subsystem='smbtorture',
14         deps='LIBCLI_SMB POPT_CREDENTIALS TORTURE_UTIL smbclient-raw TORTURE_RAW',
15         internal_module=True,
16         autoproto='basic/proto.h',
17         init_function='torture_base_init'
18         )
19
20
21 bld.SAMBA_MODULE('TORTURE_RAW',
22         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',
23         autoproto='raw/proto.h',
24         subsystem='smbtorture',
25         init_function='torture_raw_init',
26         deps='LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE POPT_CREDENTIALS TORTURE_UTIL',
27         internal_module=True
28         )
29
30 bld.RECURSE('smb2')
31 bld.RECURSE('winbind')
32 bld.RECURSE('libnetapi')
33 bld.RECURSE('libsmbclient')
34
35 heimdal_specific = dict()
36 heimdal_specific['ndr'] = ('','')
37 heimdal_specific['rpc'] = ('','')
38 if bld.CONFIG_SET('AD_DC_BUILD_IS_ENABLED'):
39         heimdal_specific['ndr'] = (' ndr/backupkey.c','')
40         heimdal_specific['rpc'] = (' rpc/backupkey.c rpc/spoolss_notify.c rpc/spoolss_win.c',
41                                     ' RPC_NDR_BACKUPKEY SMB_SERVER dcerpc_server ntvfs')
42
43 bld.SAMBA_SUBSYSTEM('TORTURE_NDR',
44         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/ntprinting.c ndr/samr.c ndr/dfsblob.c ndr/drsblobs.c ndr/nbt.c ndr/ntlmssp.c ndr/string.c'+heimdal_specific['ndr'][0],
45         autoproto='ndr/proto.h',
46         deps='torture'
47         )
48
49
50 bld.SAMBA_MODULE('torture_rpc',
51         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_access.c rpc/unixinfo.c rpc/samr.c rpc/samr_accessmask.c rpc/samr_priv.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 rpc/fsrvp.c '+heimdal_specific['rpc'][0],
52         autoproto='rpc/proto.h',
53         subsystem='smbtorture',
54         init_function='torture_rpc_init',
55         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 service process_model RPC_NDR_BROWSER LIBCLI_DRSUAPI TORTURE_DFS RPC_NDR_FSRVP '+heimdal_specific['rpc'][1],
56         internal_module=True
57         )
58
59 bld.RECURSE('drs')
60 bld.RECURSE('dns')
61
62 bld.SAMBA_MODULE('TORTURE_RAP',
63         source='rap/rap.c rap/rpc.c rap/printing.c rap/sam.c',
64         autoproto='rap/proto.h',
65         subsystem='smbtorture',
66         init_function='torture_rap_init',
67         deps='TORTURE_UTIL LIBCLI_SMB NDR_RAP LIBCLI_RAP',
68         internal_module=True
69         )
70
71 bld.SAMBA_MODULE('TORTURE_DFS',
72         source='dfs/domaindfs.c dfs/common.c',
73         autoproto='dfs/proto.h',
74         subsystem='smbtorture',
75         init_function='torture_dfs_init',
76         deps='TORTURE_UTIL LIBCLI_SMB',
77         internal_module=True
78         )
79
80
81 bld.SAMBA_MODULE('TORTURE_AUTH',
82         source='auth/ntlmssp.c auth/pac.c auth/smbencrypt.c',
83         autoproto='auth/proto.h',
84         subsystem='smbtorture',
85         deps='LIBCLI_SMB gensec auth4 authkrb5 POPT_CREDENTIALS smbpasswdparser torture com_err gensec_ntlmssp',
86         internal_module=True
87         )
88
89 bld.RECURSE('local')
90
91 bld.SAMBA_MODULE('TORTURE_NBENCH',
92         source='nbench/nbio.c nbench/nbench.c',
93         autoproto='nbench/proto.h',
94         subsystem='smbtorture',
95         init_function='torture_nbench_init',
96         deps='TORTURE_UTIL',
97         internal_module=True
98         )
99
100
101 bld.SAMBA_MODULE('TORTURE_UNIX',
102         source='unix/unix.c unix/whoami.c unix/unix_info2.c',
103         autoproto='unix/proto.h',
104         subsystem='smbtorture',
105         init_function='torture_unix_init',
106         deps='TORTURE_UTIL',
107         internal_module=True
108         )
109
110
111 bld.SAMBA_MODULE('TORTURE_LDAP',
112         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',
113         subsystem='smbtorture',
114         deps='cli-ldap cli_cldap samdb POPT_CREDENTIALS torture ldbsamba',
115         internal_module=True,
116         autoproto='ldap/proto.h',
117         init_function='torture_ldap_init'
118         )
119
120
121 bld.SAMBA_MODULE('TORTURE_NBT',
122         source='nbt/query.c nbt/register.c nbt/wins.c nbt/winsbench.c nbt/winsreplication.c nbt/dgram.c nbt/nbt.c',
123         autoproto='nbt/proto.h',
124         subsystem='smbtorture',
125         init_function='torture_nbt_init',
126         deps='LIBCLI_SMB cli-nbt LIBCLI_DGRAM LIBCLI_WREPL torture_rpc',
127         internal_module=True
128         )
129
130
131 bld.SAMBA_MODULE('TORTURE_NET',
132         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',
133         autoproto='libnet/proto.h',
134         subsystem='smbtorture',
135         init_function='torture_net_init',
136         deps='samba-net POPT_CREDENTIALS torture_rpc PROVISION',
137         internal_module=True
138         )
139
140
141 bld.SAMBA_MODULE('TORTURE_NTP',
142         source='ntp/ntp_signd.c',
143         autoproto='ntp/proto.h',
144         subsystem='smbtorture',
145         init_function='torture_ntp_init',
146         deps='POPT_CREDENTIALS torture_rpc',
147         internal_module=True
148         )
149
150 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'
151
152 bld.SAMBA_SUBSYSTEM('torturemain',
153                     source='smbtorture.c torture.c shell.c',
154                     subsystem_name='smbtorture',
155                     deps='torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
156                     )
157
158 bld.SAMBA_BINARY('smbtorture',
159                  source=[],
160                  manpages='man/smbtorture.1',
161                  public_headers='smbtorture.h',
162                  deps='torturemain torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
163                  pyembed=True
164                  )
165
166 bld.SAMBA_BINARY('gentest',
167         source='gentest.c',
168         manpages='man/gentest.1',
169         deps='samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB smbclient-raw param_options'
170         )
171
172
173 bld.SAMBA_BINARY('masktest',
174         source='masktest.c',
175         manpages='man/masktest.1',
176         deps='samba-hostconfig samba-util popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB param_options'
177         )
178
179
180 bld.SAMBA_BINARY('locktest',
181         source='locktest.c',
182         # COV_TARGET='test',
183         #ldflags='--coverage',
184         #cflags='--coverage',
185         # GCOV='1',
186         manpages='man/locktest.1',
187         deps='popt POPT_SAMBA POPT_CREDENTIALS samba-util LIBCLI_SMB samba-hostconfig param_options',
188         )
189