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