fd93f92758d59773133c70e2da8734d7e9324f02
[bbaumbach/samba-autobuild/.git] / source4 / torture / config.mk
1 # TORTURE subsystem
2 [LIBRARY::torture]
3 DESCRIPTION = Samba torture (test) suite
4 SO_VERSION = 0
5 VERSION = 0.0.1
6 PUBLIC_HEADERS = torture.h
7 PUBLIC_PROTO_HEADER = proto.h
8 OBJ_FILES = \
9                 torture.o \
10                 ui.o
11 REQUIRED_SUBSYSTEMS = \
12                 TORTURE_UTIL \
13                 TORTURE_RAW \
14                 TORTURE_SMB2 \
15                 TORTURE_RAP \
16                 TORTURE_AUTH \
17                 TORTURE_LOCAL \
18                 TORTURE_NBENCH \
19                 TORTURE_LDAP \
20                 TORTURE_NBT \
21                 LIBSAMBA-CONFIG \
22                 LIBSAMBA-UTIL
23
24 [SUBSYSTEM::TORTURE_UTIL]
25 OBJ_FILES = torture_util.o
26 PUBLIC_PROTO_HEADER = util.h
27
28 #################################
29 # Start SUBSYSTEM TORTURE_BASIC
30 [MODULE::TORTURE_BASIC]
31 SUBSYSTEM = torture
32 INIT_FUNCTION = torture_base_init
33 PRIVATE_PROTO_HEADER = \
34                 basic/proto.h
35 OBJ_FILES = \
36                 basic/base.o \
37                 basic/scanner.o \
38                 basic/utable.o \
39                 basic/charset.o \
40                 basic/mangle_test.o \
41                 basic/denytest.o \
42                 basic/aliases.o \
43                 basic/locking.o \
44                 basic/secleak.o \
45                 basic/rename.o \
46                 basic/dir.o \
47                 basic/delete.o \
48                 basic/unlink.o \
49                 basic/disconnect.o \
50                 basic/delaywrite.o \
51                 basic/attr.o \
52                 basic/properties.o 
53 REQUIRED_SUBSYSTEMS = \
54                 LIBSMB 
55 # End SUBSYSTEM TORTURE_BASIC
56 #################################
57
58 #################################
59 # Start SUBSYSTEM TORTURE_RAW
60 [SUBSYSTEM::TORTURE_RAW]
61 PRIVATE_PROTO_HEADER = \
62                 raw/proto.h
63 OBJ_FILES = \
64                 raw/qfsinfo.o \
65                 raw/qfileinfo.o \
66                 raw/setfileinfo.o \
67                 raw/search.o \
68                 raw/close.o \
69                 raw/open.o \
70                 raw/mkdir.o \
71                 raw/oplock.o \
72                 raw/notify.o \
73                 raw/mux.o \
74                 raw/ioctl.o \
75                 raw/chkpath.o \
76                 raw/unlink.o \
77                 raw/read.o \
78                 raw/context.o \
79                 raw/write.o \
80                 raw/lock.o \
81                 raw/rename.o \
82                 raw/eas.o \
83                 raw/streams.o \
84                 raw/acls.o \
85                 raw/seek.o \
86                 raw/composite.o
87 REQUIRED_SUBSYSTEMS = \
88                 LIBSMB LIBCLI_LSA
89 # End SUBSYSTEM TORTURE_RAW
90 #################################
91
92 include smb2/config.mk
93
94 [MODULE::torture_com]
95 INIT_FUNCTION = torture_com_init
96 SUBSYSTEM = torture
97 PRIVATE_PROTO_HEADER = \
98                 com/proto.h
99 OBJ_FILES = \
100                 com/simple.o
101 REQUIRED_SUBSYSTEMS = \
102                 com dcom
103
104 [MODULE::torture_rpc]
105 # TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
106 OUTPUT_TYPE = MERGEDOBJ
107 SUBSYSTEM = torture
108 INIT_FUNCTION = torture_rpc_init
109 PRIVATE_PROTO_HEADER = \
110                 rpc/proto.h
111 OBJ_FILES = \
112                 rpc/join.o \
113                 rpc/lsa.o \
114                 rpc/lsa_lookup.o \
115                 rpc/session_key.o \
116                 rpc/echo.o \
117                 rpc/dcom.o \
118                 rpc/dfs.o \
119                 rpc/drsuapi.o \
120                 rpc/drsuapi_cracknames.o \
121                 rpc/dssync.o \
122                 rpc/spoolss.o \
123                 rpc/unixinfo.o \
124                 rpc/samr.o \
125                 rpc/wkssvc.o \
126                 rpc/srvsvc.o \
127                 rpc/svcctl.o \
128                 rpc/atsvc.o \
129                 rpc/eventlog.o \
130                 rpc/epmapper.o \
131                 rpc/winreg.o \
132                 rpc/initshutdown.o \
133                 rpc/oxidresolve.o \
134                 rpc/remact.o \
135                 rpc/mgmt.o \
136                 rpc/scanner.o \
137                 rpc/autoidl.o \
138                 rpc/countcalls.o \
139                 rpc/testjoin.o \
140                 rpc/schannel.o \
141                 rpc/netlogon.o \
142                 rpc/samlogon.o \
143                 rpc/samsync.o \
144                 rpc/rot.o \
145                 rpc/bind.o \
146                 rpc/dssetup.o \
147                 rpc/alter_context.o \
148                 rpc/bench.o \
149                 rpc/rpc.o
150 REQUIRED_SUBSYSTEMS = \
151                 NDR_TABLE RPC_NDR_UNIXINFO RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
152                 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
153                 RPC_NDR_MGMT RPC_NDR_NETLOGON RPC_NDR_ATSVC RPC_NDR_DRSUAPI \
154                 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
155                 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
156                 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER LIBSAMBA-NET
157
158 #################################
159 # Start SUBSYSTEM TORTURE_RAP
160 [SUBSYSTEM::TORTURE_RAP]
161 PRIVATE_PROTO_HEADER = \
162                 rap/proto.h
163 OBJ_FILES = \
164                 rap/rap.o
165 REQUIRED_SUBSYSTEMS = \
166                 LIBSMB
167 # End SUBSYSTEM TORTURE_RAP
168 #################################
169
170 #################################
171 # Start SUBSYSTEM TORTURE_AUTH
172 [SUBSYSTEM::TORTURE_AUTH]
173 PRIVATE_PROTO_HEADER = \
174                 auth/proto.h
175 OBJ_FILES = \
176                 auth/ntlmssp.o \
177                 auth/pac.o
178 REQUIRED_SUBSYSTEMS = \
179                 LIBSMB gensec auth
180 # End SUBSYSTEM TORTURE_AUTH
181 #################################
182
183 include local/config.mk
184
185 #################################
186 # Start SUBSYSTEM TORTURE_NBENCH
187 [SUBSYSTEM::TORTURE_NBENCH]
188 PRIVATE_PROTO_HEADER = \
189                 nbench/proto.h
190 OBJ_FILES = \
191                 nbench/nbio.o \
192                 nbench/nbench.o
193 # End SUBSYSTEM TORTURE_NBENCH
194 #################################
195
196 #################################
197 # Start SUBSYSTEM TORTURE_LDAP
198 [SUBSYSTEM::TORTURE_LDAP]
199 PRIVATE_PROTO_HEADER = \
200                 ldap/proto.h
201 OBJ_FILES = \
202                 ldap/common.o \
203                 ldap/basic.o \
204                 ldap/cldap.o \
205                 ldap/cldapbench.o
206 REQUIRED_SUBSYSTEMS = \
207                 LIBCLI_LDAP LIBCLI_CLDAP
208 # End SUBSYSTEM TORTURE_LDAP
209 #################################
210
211 #################################
212 # Start SUBSYSTEM TORTURE_NBT
213 [SUBSYSTEM::TORTURE_NBT]
214 PRIVATE_PROTO_HEADER = \
215                 nbt/proto.h
216 OBJ_FILES = \
217                 nbt/query.o \
218                 nbt/register.o \
219                 nbt/wins.o \
220                 nbt/winsbench.o \
221                 nbt/winsreplication.o \
222                 nbt/dgram.o \
223                 nbt/browse.o
224 REQUIRED_SUBSYSTEMS = \
225                 LIBSMB LIBCLI_NBT LIBCLI_WREPL
226 # End SUBSYSTEM TORTURE_NBT
227 #################################
228
229 #################################
230 # Start SUBSYSTEM TORTURE_NET
231 [MODULE::TORTURE_NET]
232 SUBSYSTEM = torture
233 INIT_FUNCTION = torture_net_init
234 PRIVATE_PROTO_HEADER = \
235                 libnet/proto.h
236 OBJ_FILES = \
237                 libnet/libnet.o \
238                 libnet/userinfo.o \
239                 libnet/userman.o \
240                 libnet/domain.o \
241                 libnet/libnet_lookup.o \
242                 libnet/libnet_user.o \
243                 libnet/libnet_share.o \
244                 libnet/libnet_rpc.o
245 REQUIRED_SUBSYSTEMS = \
246                 LIBSAMBA-NET
247 # End SUBSYSTEM TORTURE_NET
248 #################################
249
250 #################################
251 # Start BINARY smbtorture
252 [BINARY::smbtorture]
253 INSTALLDIR = BINDIR
254 OBJ_FILES = \
255                 smbtorture.o
256 REQUIRED_SUBSYSTEMS = \
257                 torture \
258                 LIBPOPT \
259                 POPT_SAMBA \
260                 POPT_CREDENTIALS
261 MANPAGE = man/smbtorture.1
262 # End BINARY smbtorture
263 #################################
264
265 #################################
266 # Start BINARY gentest
267 [BINARY::gentest]
268 INSTALLDIR = BINDIR
269 OBJ_FILES = \
270                 gentest.o
271 REQUIRED_SUBSYSTEMS = \
272                 LIBSAMBA-CONFIG \
273                 LIBSAMBA-UTIL \
274                 LIBPOPT \
275                 POPT_SAMBA \
276                 POPT_CREDENTIALS \
277                 LIBSMB
278 MANPAGE = man/gentest.1
279 # End BINARY gentest
280 #################################
281
282 #################################
283 # Start BINARY masktest
284 [BINARY::masktest]
285 INSTALLDIR = BINDIR
286 OBJ_FILES = \
287                 masktest.o
288 REQUIRED_SUBSYSTEMS = \
289                 LIBSAMBA-CONFIG \
290                 LIBSAMBA-UTIL \
291                 LIBPOPT \
292                 POPT_SAMBA \
293                 POPT_CREDENTIALS \
294                 LIBSMB
295 MANPAGE = man/masktest.1
296 # End BINARY masktest
297 #################################
298
299 #################################
300 # Start BINARY locktest
301 [BINARY::locktest]
302 INSTALLDIR = BINDIR
303 OBJ_FILES = \
304                 locktest.o
305 REQUIRED_SUBSYSTEMS = \
306                 LIBSMB \
307                 LIBSAMBA-CONFIG \
308                 LIBSAMBA-UTIL
309 MANPAGE = man/locktest.1
310 # End BINARY locktest
311 #################################
312
313 GCOV_FLAGS = -ftest-coverage -fprofile-arcs
314 GCOV_LIBS = -lgcov
315
316 gcov: 
317         @$(MAKE) test \
318                 CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
319                 LD_FLAGS="$(LD_FLAGS) $(GCOV_FLAGS)" \
320                 LIBS="$(LIBS) $(GCOV_LIBS)"
321         for I in $(sort $(dir $(ALL_OBJS))); \
322                 do $(GCOV) -p -o $$I $$I/*.c; \
323         done