s4-waf: removed the AUTOGENERATED markers
[kai/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='LIBCLI_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 LIBCLI_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/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.BUILD_SUBDIR('smb2')
31 bld.BUILD_SUBDIR('winbind')
32 bld.BUILD_SUBDIR('libnetapi')
33 bld.BUILD_SUBDIR('libsmbclient')
34
35 bld.SAMBA_SUBSYSTEM('TORTURE_NDR',
36         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',
37         autoproto='ndr/proto.h',
38         deps='torture SERVICE_SMB'
39         )
40
41
42 bld.SAMBA_MODULE('torture_rpc',
43         source='rpc/join.c rpc/lsa.c rpc/lsa_lookup.c rpc/session_key.c rpc/echo.c rpc/dfs.c rpc/drsuapi.c rpc/drsuapi_cracknames.c rpc/dssync.c rpc/dsgetinfo.c rpc/spoolss.c rpc/spoolss_notify.c rpc/spoolss_win.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/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',
44         autoproto='rpc/proto.h',
45         subsystem='smbtorture',
46         init_function='torture_rpc_init',
47         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 dcerpc_mgmt 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 LIBSAMBA-NET LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_UTIL TORTURE_RAP dcerpc_server service process_model ntvfs SERVICE_SMB RPC_NDR_BROWSER LIBCLI_DRSUAPI TORTURE_LDB_MODULE',
48         internal_module=True
49         )
50
51 bld.BUILD_SUBDIR('drs')
52
53 bld.SAMBA_MODULE('TORTURE_RAP',
54         source='rap/rap.c rap/rpc.c',
55         autoproto='rap/proto.h',
56         subsystem='smbtorture',
57         init_function='torture_rap_init',
58         deps='TORTURE_UTIL LIBCLI_SMB',
59         internal_module=True
60         )
61
62
63 bld.SAMBA_MODULE('TORTURE_AUTH',
64         source='auth/ntlmssp.c auth/pac.c',
65         autoproto='auth/proto.h',
66         subsystem='smbtorture',
67         deps='LIBCLI_SMB gensec auth KERBEROS POPT_CREDENTIALS SMBPASSWD torture',
68         internal_module=True
69         )
70
71 bld.BUILD_SUBDIR('local')
72
73 bld.SAMBA_MODULE('TORTURE_NBENCH',
74         source='nbench/nbio.c nbench/nbench.c',
75         autoproto='nbench/proto.h',
76         subsystem='smbtorture',
77         init_function='torture_nbench_init',
78         deps='TORTURE_UTIL',
79         internal_module=True
80         )
81
82
83 bld.SAMBA_MODULE('TORTURE_UNIX',
84         source='unix/unix.c unix/whoami.c unix/unix_info2.c',
85         autoproto='unix/proto.h',
86         subsystem='smbtorture',
87         init_function='torture_unix_init',
88         deps='TORTURE_UTIL',
89         internal_module=True
90         )
91
92
93 bld.SAMBA_MODULE('TORTURE_LDAP',
94         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',
95         subsystem='smbtorture',
96         deps='LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS torture LDB_WRAP',
97         internal_module=True,
98         autoproto='ldap/proto.h',
99         init_function='torture_ldap_init'
100         )
101
102
103 bld.SAMBA_MODULE('TORTURE_NBT',
104         source='nbt/query.c nbt/register.c nbt/wins.c nbt/winsbench.c nbt/winsreplication.c nbt/dgram.c nbt/nbt.c',
105         autoproto='nbt/proto.h',
106         subsystem='smbtorture',
107         init_function='torture_nbt_init',
108         deps='LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL torture_rpc',
109         internal_module=True
110         )
111
112
113 bld.SAMBA_MODULE('TORTURE_NET',
114         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',
115         autoproto='libnet/proto.h',
116         subsystem='smbtorture',
117         init_function='torture_net_init',
118         deps='LIBSAMBA-NET POPT_CREDENTIALS torture_rpc PROVISION',
119         internal_module=True
120         )
121
122
123 bld.SAMBA_MODULE('TORTURE_NTP',
124         source='ntp/ntp_signd.c',
125         autoproto='ntp/proto.h',
126         subsystem='smbtorture',
127         init_function='torture_ntp_init',
128         deps='POPT_CREDENTIALS torture_rpc',
129         internal_module=True
130         )
131
132 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'
133
134 bld.SAMBA_BINARY('smbtorture',
135         source='smbtorture.c torture.c',
136         manpages='man/smbtorture.1',
137         public_headers='smbtorture.h',
138         installdir='BINDIR',
139         deps='torture popt POPT_SAMBA POPT_CREDENTIALS dcerpc LIBCLI_SMB SMBREADLINE ' + TORTURE_MODULES,
140         needs_python=True
141         )
142
143
144 bld.SAMBA_BINARY('gentest',
145         source='gentest.c',
146         manpages='man/gentest.1',
147         installdir='BINDIR',
148         deps='LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB LIBCLI_RAW'
149         )
150
151
152 bld.SAMBA_BINARY('masktest',
153         source='masktest.c',
154         manpages='man/masktest.1',
155         installdir='BINDIR',
156         deps='LIBSAMBA-HOSTCONFIG LIBSAMBA-UTIL popt POPT_SAMBA POPT_CREDENTIALS LIBCLI_SMB'
157         )
158
159
160 bld.SAMBA_BINARY('locktest',
161         source='locktest.c',
162         # COV_TARGET='test',
163         #ldflags='--coverage',
164         #cflags='--coverage',
165         # GCOV='1',
166         manpages='man/locktest.1',
167         deps='popt POPT_SAMBA POPT_CREDENTIALS LIBSAMBA-UTIL LIBCLI_SMB LIBSAMBA-HOSTCONFIG',
168         installdir='BINDIR'
169         )
170