some shells are picky about ^ without quotes
[Samba.git] / source4 / torture / config.mk
blob895fef617452aa24a8a9486510c87e9227b911c9
1 [SUBSYSTEM::TORTURE_UTIL]
2 PRIVATE_DEPENDENCIES = LIBCLI_RAW
3 PUBLIC_DEPENDENCIES = torture POPT_CREDENTIALS
5 TORTURE_UTIL_OBJ_FILES = $(addprefix $(torturesrcdir)/, util_smb.o)
7 #################################
8 # Start SUBSYSTEM TORTURE_BASIC
9 [MODULE::TORTURE_BASIC]
10 SUBSYSTEM = smbtorture
11 INIT_FUNCTION = torture_base_init
12 OUTPUT_TYPE = MERGED_OBJ
13 PRIVATE_DEPENDENCIES = \
14 LIBCLI_SMB POPT_CREDENTIALS \
15 TORTURE_UTIL LIBCLI_RAW \
16 TORTURE_RAW
17 # End SUBSYSTEM TORTURE_BASIC
18 #################################
20 TORTURE_BASIC_OBJ_FILES = $(addprefix $(torturesrcdir)/basic/, \
21 base.o \
22 misc.o \
23 scanner.o \
24 utable.o \
25 charset.o \
26 mangle_test.o \
27 denytest.o \
28 aliases.o \
29 locking.o \
30 secleak.o \
31 rename.o \
32 dir.o \
33 delete.o \
34 unlink.o \
35 disconnect.o \
36 delaywrite.o \
37 attr.o \
38 properties.o)
40 $(eval $(call proto_header_template,$(torturesrcdir)/basic/proto.h,$(TORTURE_BASIC_OBJ_FILES:.o=.c)))
42 #################################
43 # Start SUBSYSTEM TORTURE_RAW
44 [MODULE::TORTURE_RAW]
45 OUTPUT_TYPE = MERGED_OBJ
46 SUBSYSTEM = smbtorture
47 INIT_FUNCTION = torture_raw_init
48 PRIVATE_DEPENDENCIES = \
49 LIBCLI_SMB LIBCLI_LSA LIBCLI_SMB_COMPOSITE \
50 POPT_CREDENTIALS TORTURE_UTIL
51 # End SUBSYSTEM TORTURE_RAW
52 #################################
54 TORTURE_RAW_OBJ_FILES = $(addprefix $(torturesrcdir)/raw/, \
55 qfsinfo.o \
56 qfileinfo.o \
57 setfileinfo.o \
58 search.o \
59 close.o \
60 open.o \
61 mkdir.o \
62 oplock.o \
63 notify.o \
64 mux.o \
65 ioctl.o \
66 chkpath.o \
67 unlink.o \
68 read.o \
69 context.o \
70 write.o \
71 lock.o \
72 pingpong.o \
73 lockbench.o \
74 lookuprate.o \
75 tconrate.o \
76 openbench.o \
77 rename.o \
78 eas.o \
79 streams.o \
80 acls.o \
81 seek.o \
82 samba3hide.o \
83 samba3misc.o \
84 composite.o \
85 raw.o \
86 offline.o)
88 $(eval $(call proto_header_template,$(torturesrcdir)/raw/proto.h,$(TORTURE_RAW_OBJ_FILES:.o=.c)))
90 mkinclude smb2/config.mk
91 mkinclude winbind/config.mk
93 [SUBSYSTEM::TORTURE_NDR]
94 PRIVATE_DEPENDENCIES = torture SERVICE_SMB
96 TORTURE_NDR_OBJ_FILES = $(addprefix $(torturesrcdir)/ndr/, ndr.o winreg.o atsvc.o lsa.o epmap.o dfs.o netlogon.o drsuapi.o spoolss.o samr.o)
98 $(eval $(call proto_header_template,$(torturesrcdir)/ndr/proto.h,$(TORTURE_NDR_OBJ_FILES:.o=.c)))
100 [MODULE::torture_rpc]
101 OUTPUT_TYPE = MERGED_OBJ
102 # TORTURE_NET and TORTURE_NBT use functions from torture_rpc...
103 #OUTPUT_TYPE = MERGED_OBJ
104 SUBSYSTEM = smbtorture
105 INIT_FUNCTION = torture_rpc_init
106 PRIVATE_DEPENDENCIES = \
107 NDR_TABLE RPC_NDR_UNIXINFO dcerpc_samr RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
108 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
109 RPC_NDR_NETLOGON dcerpc_atsvc dcerpc_mgmt RPC_NDR_DRSUAPI \
110 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_FRSAPI RPC_NDR_SPOOLSS \
111 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
112 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER RPC_NDR_NTSVCS WB_HELPER LIBSAMBA-NET \
113 LIBCLI_AUTH POPT_CREDENTIALS TORTURE_LDAP TORTURE_LDB TORTURE_UTIL TORTURE_RAP \
114 dcerpc_server service process_model ntvfs SERVICE_SMB RPC_NDR_BROWSER
116 torture_rpc_OBJ_FILES = $(addprefix $(torturesrcdir)/rpc/, \
117 join.o lsa.o lsa_lookup.o session_key.o echo.o dfs.o drsuapi.o \
118 drsuapi_cracknames.o dssync.o spoolss.o spoolss_notify.o spoolss_win.o \
119 unixinfo.o samr.o samr_accessmask.o wkssvc.o srvsvc.o svcctl.o atsvc.o \
120 eventlog.o epmapper.o winreg.o initshutdown.o oxidresolve.o remact.o mgmt.o \
121 scanner.o autoidl.o countcalls.o testjoin.o schannel.o netlogon.o remote_pac.o samlogon.o \
122 samsync.o bind.o dssetup.o alter_context.o bench.o samba3rpc.o rpc.o async_bind.o \
123 handles.o frsapi.o object_uuid.o ntsvcs.o browser.o)
125 $(eval $(call proto_header_template,$(torturesrcdir)/rpc/proto.h,$(torture_rpc_OBJ_FILES:.o=.c)))
127 #################################
128 # Start SUBSYSTEM TORTURE_RAP
129 [MODULE::TORTURE_RAP]
130 OUTPUT_TYPE = MERGED_OBJ
131 SUBSYSTEM = smbtorture
132 INIT_FUNCTION = torture_rap_init
133 PRIVATE_DEPENDENCIES = TORTURE_UTIL LIBCLI_SMB
134 # End SUBSYSTEM TORTURE_RAP
135 #################################
137 TORTURE_RAP_OBJ_FILES = $(torturesrcdir)/rap/rap.o
139 $(eval $(call proto_header_template,$(torturesrcdir)/rap/proto.h,$(TORTURE_RAP_OBJ_FILES:.o=.c)))
141 #################################
142 # Start SUBSYSTEM TORTURE_AUTH
143 [MODULE::TORTURE_AUTH]
144 OUTPUT_TYPE = MERGED_OBJ
145 SUBSYSTEM = smbtorture
146 PRIVATE_DEPENDENCIES = \
147 LIBCLI_SMB gensec auth KERBEROS \
148 POPT_CREDENTIALS SMBPASSWD torture
149 # End SUBSYSTEM TORTURE_AUTH
150 #################################
152 TORTURE_AUTH_OBJ_FILES = $(addprefix $(torturesrcdir)/auth/, ntlmssp.o pac.o)
154 $(eval $(call proto_header_template,$(torturesrcdir)/auth/proto.h,$(TORTURE_AUTH_OBJ_FILES:.o=.c)))
156 mkinclude local/config.mk
158 #################################
159 # Start MODULE TORTURE_NBENCH
160 [MODULE::TORTURE_NBENCH]
161 OUTPUT_TYPE = MERGED_OBJ
162 SUBSYSTEM = smbtorture
163 INIT_FUNCTION = torture_nbench_init
164 PRIVATE_DEPENDENCIES = TORTURE_UTIL
165 # End MODULE TORTURE_NBENCH
166 #################################
168 TORTURE_NBENCH_OBJ_FILES = $(addprefix $(torturesrcdir)/nbench/, nbio.o nbench.o)
170 $(eval $(call proto_header_template,$(torturesrcdir)/nbench/proto.h,$(TORTURE_NBENCH_OBJ_FILES:.o=.c)))
172 #################################
173 # Start MODULE TORTURE_UNIX
174 [MODULE::TORTURE_UNIX]
175 SUBSYSTEM = smbtorture
176 OUTPUT_TYPE = MERGED_OBJ
177 INIT_FUNCTION = torture_unix_init
178 PRIVATE_DEPENDENCIES = TORTURE_UTIL
179 # End MODULE TORTURE_UNIX
180 #################################
182 TORTURE_UNIX_OBJ_FILES = $(addprefix $(torturesrcdir)/unix/, unix.o whoami.o unix_info2.o)
184 $(eval $(call proto_header_template,$(torturesrcdir)/unix/proto.h,$(TORTURE_UNIX_OBJ_FILES:.o=.c)))
186 #################################
187 # Start SUBSYSTEM TORTURE_LDAP
188 [MODULE::TORTURE_LDAP]
189 SUBSYSTEM = smbtorture
190 OUTPUT_TYPE = MERGED_OBJ
191 INIT_FUNCTION = torture_ldap_init
192 PRIVATE_DEPENDENCIES = \
193 LIBCLI_LDAP LIBCLI_CLDAP SAMDB POPT_CREDENTIALS torture
194 # End SUBSYSTEM TORTURE_LDAP
195 #################################
197 TORTURE_LDAP_OBJ_FILES = $(addprefix $(torturesrcdir)/ldap/, common.o basic.o schema.o uptodatevector.o cldap.o cldapbench.o)
199 $(eval $(call proto_header_template,$(torturesrcdir)/ldap/proto.h,$(TORTURE_LDAP_OBJ_FILES:.o=.c)))
201 #################################
202 # Start SUBSYSTEM TORTURE_LDB
203 [MODULE::TORTURE_LDB]
204 SUBSYSTEM = smbtorture
205 OUTPUT_TYPE = MERGED_OBJ
206 INIT_FUNCTION = torture_ldb_init
207 PRIVATE_DEPENDENCIES = \
208 LDB_WRAP
209 # End SUBSYSTEM TORTURE_LDB
210 #################################
212 TORTURE_LDB_OBJ_FILES = $(addprefix $(torturesrcdir)/ldb/, ldb.o)
214 $(eval $(call proto_header_template,$(torturesrcdir)/ldb/proto.h,$(TORTURE_LDB_OBJ_FILES:.o=.c)))
216 #################################
217 # Start SUBSYSTEM TORTURE_NBT
218 [MODULE::TORTURE_NBT]
219 SUBSYSTEM = smbtorture
220 OUTPUT_TYPE = MERGED_OBJ
221 INIT_FUNCTION = torture_nbt_init
222 PRIVATE_DEPENDENCIES = \
223 LIBCLI_SMB LIBCLI_NBT LIBCLI_DGRAM LIBCLI_WREPL torture_rpc
224 # End SUBSYSTEM TORTURE_NBT
225 #################################
227 TORTURE_NBT_OBJ_FILES = $(addprefix $(torturesrcdir)/nbt/, query.o register.o \
228 wins.o winsbench.o winsreplication.o dgram.o nbt.o)
230 $(eval $(call proto_header_template,$(torturesrcdir)/nbt/proto.h,$(TORTURE_NBT_OBJ_FILES:.o=.c)))
232 #################################
233 # Start SUBSYSTEM TORTURE_NET
234 [MODULE::TORTURE_NET]
235 SUBSYSTEM = smbtorture
236 OUTPUT_TYPE = MERGED_OBJ
237 INIT_FUNCTION = torture_net_init
238 PRIVATE_DEPENDENCIES = \
239 LIBSAMBA-NET \
240 POPT_CREDENTIALS \
241 torture_rpc \
242 PROVISION
243 # End SUBSYSTEM TORTURE_NET
244 #################################
246 TORTURE_NET_OBJ_FILES = $(addprefix $(torturesrcdir)/libnet/, libnet.o \
247 utils.o userinfo.o userman.o groupinfo.o groupman.o \
248 domain.o libnet_lookup.o libnet_user.o libnet_group.o \
249 libnet_share.o libnet_rpc.o libnet_domain.o libnet_BecomeDC.o)
251 $(eval $(call proto_header_template,$(torturesrcdir)/libnet/proto.h,$(TORTURE_NET_OBJ_FILES:.o=.c)))
253 #################################
254 # Start BINARY smbtorture
255 [BINARY::smbtorture]
256 INSTALLDIR = BINDIR
257 PRIVATE_DEPENDENCIES = \
258 torture \
259 LIBPOPT \
260 POPT_SAMBA \
261 POPT_CREDENTIALS \
262 dcerpc \
263 LIBCLI_SMB \
264 SMBREADLINE
265 # End BINARY smbtorture
266 #################################
268 smbtorture_OBJ_FILES = $(torturesrcdir)/smbtorture.o $(torturesrcdir)/torture.o
270 PUBLIC_HEADERS += $(torturesrcdir)/smbtorture.h
271 MANPAGES += $(torturesrcdir)/man/smbtorture.1
273 #################################
274 # Start BINARY gentest
275 [BINARY::gentest]
276 INSTALLDIR = BINDIR
277 PRIVATE_DEPENDENCIES = \
278 LIBSAMBA-HOSTCONFIG \
279 LIBSAMBA-UTIL \
280 LIBPOPT \
281 POPT_SAMBA \
282 POPT_CREDENTIALS \
283 LIBCLI_SMB \
284 LIBCLI_RAW
285 # End BINARY gentest
286 #################################
288 gentest_OBJ_FILES = $(torturesrcdir)/gentest.o
290 MANPAGES += $(torturesrcdir)/man/gentest.1
292 #################################
293 # Start BINARY masktest
294 [BINARY::masktest]
295 INSTALLDIR = BINDIR
296 PRIVATE_DEPENDENCIES = \
297 LIBSAMBA-HOSTCONFIG \
298 LIBSAMBA-UTIL \
299 LIBPOPT \
300 POPT_SAMBA \
301 POPT_CREDENTIALS \
302 LIBCLI_SMB
303 # End BINARY masktest
304 #################################
306 masktest_OBJ_FILES = $(torturesrcdir)/masktest.o
308 MANPAGES += $(torturesrcdir)/man/masktest.1
310 #################################
311 # Start BINARY locktest
312 [BINARY::locktest]
313 INSTALLDIR = BINDIR
314 PRIVATE_DEPENDENCIES = \
315 LIBPOPT \
316 POPT_SAMBA \
317 POPT_CREDENTIALS \
318 LIBSAMBA-UTIL \
319 LIBCLI_SMB \
320 LIBSAMBA-HOSTCONFIG
321 # End BINARY locktest
322 #################################
324 locktest_OBJ_FILES = $(torturesrcdir)/locktest.o
326 MANPAGES += $(torturesrcdir)/man/locktest.1
328 GCOV=0
330 ifeq ($(MAKECMDGOALS),gcov)
331 GCOV=1
332 endif
334 ifeq ($(MAKECMDGOALS),lcov)
335 GCOV=1
336 endif
338 ifeq ($(MAKECMDGOALS),testcov-html)
339 GCOV=1
340 endif
342 ifeq ($(GCOV),1)
343 CFLAGS += --coverage
344 LDFLAGS += --coverage
345 endif
347 COV_TARGET = test
349 gcov: test
350 for I in $(sort $(dir $(ALL_OBJS))); \
351 do $(GCOV) -p -o $$I $$I/*.c; \
352 done
354 samba.info: test
355 -rm heimdal/lib/*/{lex,parse}.{gcda,gcno}
356 lcov --base-directory `pwd` --directory . --capture --output-file samba.info
358 lcov: samba.info
359 genhtml -o coverage $<
361 testcov-html:: lcov
363 clean::
364 @rm -f samba.info