70e41467c7f9676d08dd01190048e220705871be
[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_RAW
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 include smb2/config.mk
61
62 #################################
63 # Start SUBSYSTEM TORTURE_COM
64 [SUBSYSTEM::TORTURE_COM]
65 ADD_OBJ_FILES = \
66                 com/simple.o
67 REQUIRED_SUBSYSTEMS = \
68                 COM DCOM
69 # End SUBSYSTEM TORTURE_COM
70 #################################
71
72 #################################
73 # Start SUBSYSTEM TORTURE_RPC
74 [SUBSYSTEM::TORTURE_RPC]
75 ADD_OBJ_FILES = \
76                 rpc/join.o \
77                 rpc/lsa.o \
78                 rpc/session_key.o \
79                 rpc/echo.o \
80                 rpc/dcom.o \
81                 rpc/dfs.o \
82                 rpc/drsuapi.o \
83                 rpc/drsuapi_cracknames.o \
84                 rpc/dssync.o \
85                 rpc/spoolss.o \
86                 rpc/unixinfo.o \
87                 rpc/samr.o \
88                 rpc/wkssvc.o \
89                 rpc/srvsvc.o \
90                 rpc/svcctl.o \
91                 rpc/atsvc.o \
92                 rpc/eventlog.o \
93                 rpc/epmapper.o \
94                 rpc/winreg.o \
95                 rpc/initshutdown.o \
96                 rpc/oxidresolve.o \
97                 rpc/remact.o \
98                 rpc/mgmt.o \
99                 rpc/scanner.o \
100                 rpc/autoidl.o \
101                 rpc/countcalls.o \
102                 rpc/testjoin.o \
103                 rpc/schannel.o \
104                 rpc/netlogon.o \
105                 rpc/samlogon.o \
106                 rpc/samsync.o \
107                 rpc/rot.o \
108                 rpc/bind.o \
109                 rpc/dssetup.o \
110                 rpc/alter_context.o \
111                 rpc/bench.o
112 REQUIRED_SUBSYSTEMS = \
113                 NDR_ALL RPC_NDR_UNIXINFO RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
114                 RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
115                 RPC_NDR_MGMT RPC_NDR_NETLOGON RPC_NDR_ATSVC RPC_NDR_DRSUAPI \
116                 RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
117                 RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
118                 RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER 
119 # End SUBSYSTEM TORTURE_RPC
120 #################################
121
122 #################################
123 # Start SUBSYSTEM TORTURE_RAP
124 [SUBSYSTEM::TORTURE_RAP]
125 ADD_OBJ_FILES = \
126                 rap/rap.o
127 REQUIRED_SUBSYSTEMS = \
128                 LIBSMB
129 # End SUBSYSTEM TORTURE_RAP
130 #################################
131
132 #################################
133 # Start SUBSYSTEM TORTURE_AUTH
134 [SUBSYSTEM::TORTURE_AUTH]
135 ADD_OBJ_FILES = \
136                 auth/ntlmssp.o \
137                 auth/pac.o
138 REQUIRED_SUBSYSTEMS = \
139                 LIBSMB GENSEC AUTH
140 # End SUBSYSTEM TORTURE_AUTH
141 #################################
142
143 include local/config.mk
144
145 #################################
146 # Start SUBSYSTEM TORTURE_NBENCH
147 [SUBSYSTEM::TORTURE_NBENCH]
148 ADD_OBJ_FILES = \
149                 nbench/nbio.o \
150                 nbench/nbench.o
151 # End SUBSYSTEM TORTURE_NBENCH
152 #################################
153
154 #################################
155 # Start SUBSYSTEM TORTURE_LDAP
156 [SUBSYSTEM::TORTURE_LDAP]
157 ADD_OBJ_FILES = \
158                 ldap/common.o \
159                 ldap/basic.o \
160                 ldap/cldap.o \
161                 ldap/cldapbench.o
162 REQUIRED_SUBSYSTEMS = \
163                 LIBCLI_LDAP LIBCLI_CLDAP
164 # End SUBSYSTEM TORTURE_LDAP
165 #################################
166
167 #################################
168 # Start SUBSYSTEM TORTURE_NBT
169 [SUBSYSTEM::TORTURE_NBT]
170 ADD_OBJ_FILES = \
171                 nbt/query.o \
172                 nbt/register.o \
173                 nbt/wins.o \
174                 nbt/winsbench.o \
175                 nbt/winsreplication.o \
176                 nbt/dgram.o
177 REQUIRED_SUBSYSTEMS = \
178                 LIBSMB LIBCLI_NBT LIBCLI_WREPL
179 # End SUBSYSTEM TORTURE_NBT
180 #################################
181
182 #################################
183 # Start SUBSYSTEM TORTURE_NET
184 [SUBSYSTEM::TORTURE_NET]
185 ADD_OBJ_FILES = \
186                 libnet/userinfo.o \
187                 libnet/userman.o \
188                 libnet/domain.o \
189                 libnet/libnet_lookup.o \
190                 libnet/libnet_user.o \
191                 libnet/libnet_share.o \
192                 libnet/libnet_rpc.o
193 REQUIRED_SUBSYSTEMS = \
194                 NDR_ALL RPC_NDR_SAMR LIBNET
195 # End SUBSYSTEM TORTURE_NET
196 #################################
197
198 #################################
199 # Start BINARY smbtorture
200 [BINARY::smbtorture]
201 INSTALLDIR = BINDIR
202 OBJ_FILES = \
203                 torture.o \
204                 torture_util.o
205 REQUIRED_SUBSYSTEMS = \
206                 TORTURE_BASIC \
207                 TORTURE_RAW \
208                 TORTURE_SMB2 \
209                 TORTURE_RPC \
210                 TORTURE_RAP \
211                 TORTURE_AUTH \
212                 TORTURE_LOCAL \
213                 TORTURE_NBENCH \
214                 TORTURE_LDAP \
215                 TORTURE_COM \
216                 TORTURE_NBT \
217                 TORTURE_NET \
218                 CONFIG \
219                 LIBCMDLINE \
220                 LIBBASIC
221 MANPAGE = man/smbtorture.1
222 # End BINARY smbtorture
223 #################################
224
225 #################################
226 # Start BINARY gentest
227 [BINARY::gentest]
228 INSTALLDIR = BINDIR
229 OBJ_FILES = \
230                 gentest.o \
231                 torture_util.o
232 REQUIRED_SUBSYSTEMS = \
233                 LIBSMB \
234                 CONFIG \
235                 LIBBASIC \
236                 LIBCMDLINE \
237                 LIBRPC
238 MANPAGE = man/gentest.1
239 # End BINARY gentest
240 #################################
241
242 #################################
243 # Start BINARY masktest
244 [BINARY::masktest]
245 INSTALLDIR = BINDIR
246 OBJ_FILES = \
247                 masktest.o
248 REQUIRED_SUBSYSTEMS = \
249                 LIBSMB \
250                 CONFIG \
251                 LIBBASIC \
252                 LIBCMDLINE \
253                 LIBRPC
254 MANPAGE = man/masktest.1
255 # End BINARY masktest
256 #################################
257
258 #################################
259 # Start BINARY locktest
260 [BINARY::locktest]
261 INSTALLDIR = BINDIR
262 OBJ_FILES = \
263                 locktest.o \
264                 torture_util.o
265 REQUIRED_SUBSYSTEMS = \
266                 LIBSMB \
267                 CONFIG \
268                 LIBBASIC \
269                 LIBCMDLINE \
270                 LIBRPC
271 MANPAGE = man/locktest.1
272 # End BINARY locktest
273 #################################
274
275 GCOV_FLAGS = -ftest-coverage -fprofile-arcs
276 GCOV_LIBS = -lgcov
277
278 gcov: 
279         @$(MAKE) test \
280                 CFLAGS="$(CFLAGS) $(GCOV_FLAGS)" \
281                 LD_FLAGS="$(LD_FLAGS) $(GCOV_FLAGS)" \
282                 LIBS="$(LIBS) $(GCOV_LIBS)"
283         for I in $(sort $(dir $(ALL_OBJS))); \
284                 do $(GCOV) -p -o $$I $$I/*.c; \
285         done