libcli: Speed up sddl_decode_ace()
[samba4-gss.git] / source4 / torture / wscript_build
blobb38a30c98da112a1bab35ffd6de3826fe04dea7e
1 #!/usr/bin/env python
3 provision = bld.pyembed_libname('PROVISION')
4 samba_net_join = bld.pyembed_libname('samba-net-join')
6 bld.SAMBA_SUBSYSTEM('TORTURE_UTIL',
7 source='util_smb.c',
8 public_deps='torture',
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',
17 internal_module=True,
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',
30 internal_module=True,
31 enabled=bld.PYTHON_BUILD_IS_ENABLED()
34 bld.RECURSE('smb2')
35 bld.RECURSE('winbind')
36 bld.RECURSE('libnetapi')
37 bld.RECURSE('libsmbclient')
38 bld.RECURSE('gpo')
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',
49 source='''ndr/ndr.c
50 ndr/dcerpc.c
51 ndr/winreg.c
52 ndr/atsvc.c
53 ndr/lsa.c
54 ndr/epmap.c
55 ndr/dfs.c
56 ndr/netlogon.c
57 ndr/drsuapi.c
58 ndr/spoolss.c
59 ndr/ntprinting.c
60 ndr/samr.c
61 ndr/dfsblob.c
62 ndr/drsblobs.c
63 ndr/dnsp.c
64 ndr/nbt.c
65 ndr/ntlmssp.c
66 ndr/string.c
67 ndr/backupkey.c
68 ndr/witness.c
69 ndr/clusapi.c
70 ndr/negoex.c
71 ndr/krb5pac.c
72 ndr/winspool.c
73 ndr/cabinet.c
74 ndr/charset.c
75 ndr/svcctl.c
76 ndr/odj.c
77 ''',
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',
85 deps='talloc',
86 enabled=bld.PYTHON_BUILD_IS_ENABLED())
88 bld.SAMBA_MODULE('torture_rpc',
89 source='''
90 rpc/join.c
91 rpc/lsa.c
92 rpc/forest_trust.c
93 rpc/lsa_lookup.c
94 rpc/session_key.c
95 rpc/echo.c
96 rpc/dfs.c
97 rpc/drsuapi.c
98 rpc/drsuapi_w2k8.c
99 rpc/drsuapi_cracknames.c
100 rpc/dsgetinfo.c
101 rpc/spoolss.c
102 rpc/spoolss_win.c
103 rpc/spoolss_access.c
104 rpc/unixinfo.c
105 rpc/samr.c
106 rpc/samr_accessmask.c
107 rpc/samr_handletype.c
108 rpc/samr_priv.c
109 rpc/wkssvc.c
110 rpc/srvsvc.c
111 rpc/svcctl.c
112 rpc/atsvc.c
113 rpc/eventlog.c
114 rpc/epmapper.c
115 rpc/winreg.c
116 rpc/initshutdown.c
117 rpc/mgmt.c
118 rpc/scanner.c
119 rpc/countcalls.c
120 rpc/testjoin.c
121 rpc/schannel.c
122 rpc/netlogon.c
123 rpc/netlogon_crypto.c
124 rpc/remote_pac.c
125 rpc/samlogon.c
126 rpc/samsync.c
127 rpc/dssetup.c
128 rpc/alter_context.c
129 rpc/bench.c
130 rpc/samba3rpc.c
131 rpc/rpc.c
132 rpc/async_bind.c
133 rpc/handles.c
134 rpc/frsapi.c
135 rpc/object_uuid.c
136 rpc/ntsvcs.c
137 rpc/browser.c
138 rpc/bind.c
139 rpc/fsrvp.c
140 rpc/clusapi.c
141 rpc/witness.c
142 rpc/iremotewinspool.c
143 rpc/iremotewinspool_driver.c
144 rpc/mdssvc.c
145 rpc/backupkey.c''' + ntvfs_specific['source'],
146 autoproto='rpc/proto.h',
147 subsystem='smbtorture',
148 init_function='torture_rpc_init',
149 deps='''
150 ndr-table
151 RPC_NDR_UNIXINFO
152 dcerpc-samr
153 RPC_NDR_WINREG
154 RPC_NDR_INITSHUTDOWN
155 RPC_NDR_EVENTLOG
156 RPC_NDR_ECHO
157 RPC_NDR_SVCCTL
158 RPC_NDR_NETLOGON
159 RPC_NDR_ATSVC
160 RPC_NDR_DRSUAPI
161 RPC_NDR_LSA
162 RPC_NDR_EPMAPPER
163 RPC_NDR_DFS
164 RPC_NDR_FRSAPI
165 RPC_NDR_SPOOLSS
166 RPC_NDR_SRVSVC
167 RPC_NDR_WKSSVC
168 RPC_NDR_DSSETUP
169 RPC_NDR_NTSVCS
171 LIBCLI_AUTH
172 INIT_LSA
173 popt
174 CMDLINE_S4
175 TORTURE_LDAP
176 TORTURE_UTIL
177 TORTURE_RAP
178 service
179 process_model
180 RPC_NDR_BROWSER
181 LIBCLI_DRSUAPI
182 TORTURE_DFS
183 RPC_NDR_FSRVP
184 RPC_NDR_CLUSAPI
185 RPC_NDR_WITNESS
186 RPC_NDR_BACKUPKEY
187 RPC_NDR_WINSPOOL
188 IREMOTEWINSPOOL_COMMON
189 printer_driver
190 RPC_NDR_MDSSVC
191 mdssvc
192 ''' % samba_net_join + ntvfs_specific['deps'],
193 internal_module=True,
194 enabled=bld.PYTHON_BUILD_IS_ENABLED())
196 bld.RECURSE('drs')
197 bld.RECURSE('dns')
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',
215 internal_module=True
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',
224 internal_module=True
227 bld.RECURSE('local')
228 bld.RECURSE('krb5')
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',
235 deps='TORTURE_UTIL',
236 internal_module=True
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',
245 deps='TORTURE_UTIL',
246 internal_module=True
250 bld.SAMBA_MODULE('TORTURE_LDAP',
251 source='''
252 ldap/common.c
253 ldap/basic.c
254 ldap/schema.c
255 ldap/uptodatevector.c
256 ldap/cldap.c
257 ldap/netlogon.c
258 ldap/cldapbench.c
259 ldap/ldap_sort.c
260 ldap/nested_search.c
261 ldap/session_expiry.c
262 ''',
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',
298 deps='torture_rpc',
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',
322 source=[],
323 manpages='man/smbtorture.1',
324 private_headers='smbtorture.h',
325 deps='torturemain torture popt CMDLINE_S4 dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
326 pyembed=True,
327 enabled=bld.PYTHON_BUILD_IS_ENABLED()
330 bld.SAMBA_BINARY('gentest',
331 source='gentest.c',
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',
338 source='masktest.c',
339 manpages='man/masktest.1',
340 deps='samba-hostconfig samba-util popt CMDLINE_S4 LIBCLI_SMB param_options'
344 bld.SAMBA_BINARY('locktest',
345 source='locktest.c',
346 # COV_TARGET='test',
347 #ldflags='--coverage',
348 #cflags='--coverage',
349 # GCOV='1',
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()