r11244: Relative path names in .mk files
[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                 basic/scanner.o \
8                 basic/utable.o \
9                 basic/charset.o \
10                 basic/mangle_test.o \
11                 basic/denytest.o \
12                 basic/aliases.o \
13                 basic/locking.o \
14                 basic/secleak.o \
15                 basic/rename.o \
16                 basic/dir.o \
17                 basic/delete.o \
18                 basic/unlink.o \
19                 basic/disconnect.o \
20                 basic/delaywrite.o \
21                 basic/attr.o \
22                 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                 raw/qfsinfo.o \
33                 raw/qfileinfo.o \
34                 raw/setfileinfo.o \
35                 raw/search.o \
36                 raw/close.o \
37                 raw/open.o \
38                 raw/mkdir.o \
39                 raw/oplock.o \
40                 raw/notify.o \
41                 raw/mux.o \
42                 raw/ioctl.o \
43                 raw/chkpath.o \
44                 raw/unlink.o \
45                 raw/read.o \
46                 raw/context.o \
47                 raw/write.o \
48                 raw/lock.o \
49                 raw/rename.o \
50                 raw/eas.o \
51                 raw/streams.o \
52                 raw/acls.o \
53                 raw/seek.o \
54                 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                 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                 rpc/join.o \
75                 rpc/lsa.o \
76                 rpc/session_key.o \
77                 rpc/echo.o \
78                 rpc/dcom.o \
79                 rpc/dfs.o \
80                 rpc/drsuapi.o \
81                 rpc/drsuapi_cracknames.o \
82                 rpc/dssync.o \
83                 rpc/spoolss.o \
84                 rpc/unixinfo.o \
85                 rpc/samr.o \
86                 rpc/wkssvc.o \
87                 rpc/srvsvc.o \
88                 rpc/svcctl.o \
89                 rpc/atsvc.o \
90                 rpc/eventlog.o \
91                 rpc/epmapper.o \
92                 rpc/winreg.o \
93                 rpc/initshutdown.o \
94                 rpc/oxidresolve.o \
95                 rpc/remact.o \
96                 rpc/mgmt.o \
97                 rpc/scanner.o \
98                 rpc/autoidl.o \
99                 rpc/countcalls.o \
100                 rpc/testjoin.o \
101                 rpc/xplogin.o \
102                 rpc/schannel.o \
103                 rpc/netlogon.o \
104                 rpc/samlogon.o \
105                 rpc/samsync.o \
106                 rpc/rot.o \
107                 rpc/bind.o \
108                 rpc/dssetup.o \
109                 rpc/alter_context.o \
110                 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                 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                 auth/ntlmssp.o \
136                 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                 local/iconv.o \
147                 ../lib/talloc/testsuite.o \
148                 local/messaging.o \
149                 local/binding_string.o \
150                 local/idtree.o \
151                 local/socket.o \
152                 local/irpc.o \
153                 local/registry.o \
154                 local/resolve.o \
155                 local/util_strlist.o \
156                 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                 nbench/nbio.o \
169                 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                 ldap/common.o \
178                 ldap/basic.o \
179                 ldap/cldap.o \
180                 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                 nbt/query.o \
191                 nbt/register.o \
192                 nbt/wins.o \
193                 nbt/winsbench.o \
194                 nbt/winsreplication.o \
195                 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                 libnet/userinfo.o \
206                 libnet/userman.o \
207                 libnet/domain.o \
208                 libnet/libnet_lookup.o \
209                 libnet/libnet_user.o \
210                 libnet/libnet_share.o \
211                 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.o \
223                 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 = man/smbtorture.1
240 # End BINARY smbtorture
241 #################################
242
243 #################################
244 # Start BINARY gentest
245 [BINARY::gentest]
246 INSTALLDIR = BINDIR
247 OBJ_FILES = \
248                 gentest.o \
249                 torture_util.o
250 REQUIRED_SUBSYSTEMS = \
251                 LIBSMB \
252                 CONFIG \
253                 LIBBASIC \
254                 LIBCMDLINE \
255                 RPC
256 MANPAGE = man/gentest.1
257 # End BINARY gentest
258 #################################
259
260 #################################
261 # Start BINARY masktest
262 [BINARY::masktest]
263 INSTALLDIR = BINDIR
264 OBJ_FILES = \
265                 masktest.o
266 REQUIRED_SUBSYSTEMS = \
267                 LIBSMB \
268                 CONFIG \
269                 LIBBASIC \
270                 LIBCMDLINE \
271                 RPC
272 MANPAGE = man/masktest.1
273 # End BINARY masktest
274 #################################
275
276 #################################
277 # Start BINARY locktest
278 [BINARY::locktest]
279 INSTALLDIR = BINDIR
280 OBJ_FILES = \
281                 locktest.o \
282                 torture_util.o
283 REQUIRED_SUBSYSTEMS = \
284                 LIBSMB \
285                 CONFIG \
286                 LIBBASIC \
287                 LIBCMDLINE \
288                 RPC
289 MANPAGE = 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